[ previous ] [ next ] [ threads ]
 
 From:  Fred Wright <fw at well dot com>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] Problems with X-Modem CE in half bridge mode
 Date:  Sun, 13 Feb 2005 18:24:50 -0800 (PST)
On Thu, 10 Feb 2005, Tim Vaughan wrote:

> I am currently using m0n0wall on a soekris net4521, 1.2b3 firmware.  I
> have been having regular breaks in my internet connection (ADSL
> provided by Force9, PPPoA).  Each time this occurs I see the
> following, or something similar, in the logs:

This was really confusing until I noticed that your log is in reverse
order.

> ==========
> 
> Feb 10 14:41:56
> dhclient: No working leases in persistent database - sleeping.
> 
> Feb 10 14:41:56
> dhclient: No DHCPOFFERS received.
> 
> Feb 10 14:41:54
> dhclient: DHCPDISCOVER on sis1 to 255.255.255.255 port 67 interval 2
> 
> Feb 10 14:41:42
> dhclient: DHCPDISCOVER on sis1 to 255.255.255.255 port 67 interval 12
> 
> Feb 10 14:41:21
> dhclient: DHCPDISCOVER on sis1 to 255.255.255.255 port 67 interval 21
> 
> Feb 10 14:41:08
> dhclient: DHCPDISCOVER on sis1 to 255.255.255.255 port 67 interval 13
> 
> Feb 10 14:40:59
> dhclient: DHCPDISCOVER on sis1 to 255.255.255.255 port 67 interval 9
> 
> Feb 10 14:40:55
> dhclient: DHCPDISCOVER on sis1 to 255.255.255.255 port 67 interval 4
> 
> Feb 10 14:40:55
> dhclient: DHCPNAK from 10.0.0.2
> 
> Feb 10 14:40:55
> dhclient: DHCPREQUEST on sis1 to 10.0.0.2 port 67
> 
> Feb 10 14:40:08
> dhclient: bound to 212.159.xxx.xxx -- renewal in 47 seconds.
> 
> ==========
> 
> The reason my internet connection drops is that m0n0wall receives
> DHCPNAK from 10.0.0.2 (the modem).  To reconnect I have currently been
> entering "route delete default" and "route add default -interface
> -link sis1" in exec.php after which the m0n0wall gets its IP address
> again and everything is fine for a while (around 15 minutes) until it
> happens again.

Is your "real" connection is via PPTP, with DHCP only being used to obtain
a private IP to talk to the modem for the PPTP link (since this is typical
of PPPoA setups)?  I hope it's not actually trying to use DHCP on a PPTP
link (at least not for address determination).

If this is the case, you should be able to avoid the trouble by statically
configuring the Ethernet IP for the WAN.  Almost anything in the 10.0.0.x
range should work, but you could look at what gets assigned by the modem.

					Fred Wright