router doesn't work if rebooted while network is down

Pierre Abbat phma at bezitopo.org
Sat Jun 15 20:36:55 PDT 2013


On Saturday, June 15, 2013 11:55:01 Matthew Dillon wrote:
>     What is happening is that the cable modem is serving a non-routable
>     IP address to your computer when the cable modem does not have
>     connectivity, instead of the routable address it would normally serve
>     out.
> 
>     The easiest solution is to tell your computer's dhclient to not accept
>     that broken address, so dhclient just tries forever until it gets the
>     real address.
> 
>     You can do this via /etc/dhclient.conf like this:
> 
> # specify the correct interface here
> #
> interface "em0" {
>         supersede routers 10.0.0.1;
>         request subnet-mask;
>         require subnet-mask;
>         reject 192.168.100.1;
>         reject 192.168.100.10;
> }
> 
>     Where you have a reject line for the IP the cable modem would otherwise
>     try to assign you.

If I do that, will it stick for hours in the boot sequence until the cable 
signal comes back? Or will the pf rules fail because em0 has no address?

The lease time for 100.1 is a minute. When the signal comes back, I get a real 
address shortly.

Pierre
-- 
loi mintu se ckaji danlu cu jmaji



More information about the Users mailing list