Danny, <div><br></div><div>I wrote a pile of code that does exactly this sort of thing.  If you need to reset hardware when the internet goes down, this might help. <div><div><br><div>First, find/buy an el-cheapo baytech power controller (like the RPC-3.) It's a power controler that you can control over the network. I see see these things on eBay all the time: <a href="http://www.ebay.com/sch/i.html?_trksid=p5197.m570.l1313&_nkw=baytech+rpc-3&_sacat=0">http://www.ebay.com/sch/i.html?_trksid=p5197.m570.l1313&_nkw=baytech+rpc-3&_sacat=0</a></div>
<div><br></div><div>Then, download software out of my Github repo, configure the power controller and using my check_dsl script, you'll have a took for instant DSL modem restarting should you lose network connectivity. That's here:</div>
<div><a href="https://github.com/netik/rpc3control">https://github.com/netik/rpc3control</a></div><div><br></div><div>WRT to DHCP, Configure two DHCP servers with DHCP Load balancing. Then, if you lose one server, you'll still be able to service the pool: <a href="http://www.ipamworldwide.com/dhcp-failover-a-load-balancing/dhcp-load-balancing.html">http://www.ipamworldwide.com/dhcp-failover-a-load-balancing/dhcp-load-balancing.html</a></div>
<div><br></div><div>-john</div><div><br></div><div><div class="gmail_quote">On Mon, Jun 4, 2012 at 9:02 PM, Danny O'Brien <span dir="ltr"><<a href="mailto:dannyobrien@gmail.com" target="_blank">dannyobrien@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Summary: my suspicion is that our DHCP server is still on the fritz,<br>
but we got sidetracked. see<br>
<a href="https://www.noisebridge.net/pipermail/rack/2012-May/001543.html" target="_blank">https://www.noisebridge.net/pipermail/rack/2012-May/001543.html</a> for<br>
rebooting DHCP server<br>
<br>
1. Somebody says to me "oh the Internet is down"<br>
2. I say, in a friendly tone, "Do I look like I'm in charge?"<br>
3. Person says, also friendly, "No-one is in charge, but you look like<br>
somebody who might know someone who can get the Internet back up" <--<br>
10 anarchist hackerspace points!<br>
4. I loudly say "Is the Internet down for everyone?"<br>
5. Everyone mutters yes.<br>
6. I loudly say "who wants to help fix it?"<br>
7. General roar of acclaim, followed by hesitancy<br>
8. Me and (Paula?) start loudly troubleshooting the Wall of Tubes,<br>
surrounded by people standing around trying to work out how to be<br>
useful.<br>
9. I fail to make everyone useful. Minus ten anarchist hackers points to me.<br>
10. Me and Paula decide to try powercycling the DSL modem, followed by<br>
resetting the DSL modem, because it only has 3 lights green and the<br>
Internet light is unlit<br>
11. This turns out to be wrong thing to do. Much of what I do next is<br>
based on getting us back out of this error.<br>
11.5 I bug SuperQ about various things. He has a cold and is working,<br>
but is helpful.<br>
12. Meanwhile, Hal turns up and notes that he can't get onto the<br>
network via an AP.<br>
13. We work out that this is because he isn't getting an IP. Wired<br>
devices are also not getting IPs.<br>
14. Hal learns about netmasks and /24s<br>
15. I call up Sonic and they are awesome. They explain how to fix DSL<br>
modem. I leave note on modem instructing future noisebridgers not to<br>
reset DSL modem, and that 3 lights is fine.<br>
16. Once that is fixed, people get on Internet again. I suspect DHCP<br>
server magically resolved itself.<br>
<br>
I will try and think of ways we can detect when stuff goes down. It's<br>
very hard for people in the space to know where to start, especially<br>
when all the docs about the network are a) only on the internets, and<br>
b) a bit out of date (are they out of date?). It's also a bit unfair<br>
on both SuperQ and Jof to depend on them to troubleshoot this stuff.<br>
Anyways.<br>
<br>
d.<br>
_______________________________________________<br>
Noisebridge-discuss mailing list<br>
<a href="mailto:Noisebridge-discuss@lists.noisebridge.net">Noisebridge-discuss@lists.noisebridge.net</a><br>
<a href="https://www.noisebridge.net/mailman/listinfo/noisebridge-discuss" target="_blank">https://www.noisebridge.net/mailman/listinfo/noisebridge-discuss</a><br>
</blockquote></div><br></div></div></div></div>