[ previous ] [ next ] [ threads ]
 
 From:  Ethan Bonick <ethan at networkinggeeks dot com>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] Problem with 1.2b10: PPPoE causes router to stop responding
 Date:  Sat, 01 Oct 2005 21:35:30 -0500
Frank Zavelberg wrote:

>Hello!
>
>
>  
>
>>Could it be that your other router is assigning the 10.0.0.1 address
>>after the monowall isnt able to connect PPPOE through the DSL modem?
>>    
>>
>
>Nope,    definitely    not.    The    other    router    is   offering
>10.0.0.100-10.0.0.199   as   DHCP   range.  None  of  those  are  used
>statically.
>
>  
>
>>I  haven't  seen a case of a router getting asigned a dummy ip after
>>it  can't connect over pppoe or dhcp, I have only seen it get a 169.
>>something address or an address of 0.0.0.0.
>>    
>>
>
>As I said, I suppose some script does that, like in fli4l. I found the
>following on the m0n0wall CD image. See the "set iface addrs" command?
>Those are exactly the IPs my WAN interface gets assigned. :)
>
>
>function interfaces_wan_pppoe_configure() {
>        global $config, $g;
>        
>        $wancfg = $config['interfaces']['wan'];
>        $pppoecfg = $config['pppoe'];
>        
>        /* generate mpd.conf */
>        $fd = fopen("{$g['varetc_path']}/mpd.conf", "w");
>        if (!$fd) {
>                printf("Error: cannot open mpd.conf in interfaces_wan_pppoe_configure().\n");
>                return 1;
>        }
>        
>        $idle = 0;
>        
>        if (isset($pppoecfg['ondemand'])) {
>                $ondemand = "enable";
>                if ($pppoecfg['timeout'])
>                        $idle = $pppoecfg['timeout'];
>        } else {
>                $ondemand = "disable";
>        }
>        
>        $mpdconf = <<<EOD
>pppoe:
>        new -i ng0 pppoe pppoe
>        set iface route default
>        set iface {$ondemand} on-demand
>        set iface idle {$idle}
>        set iface up-script /usr/local/sbin/ppp-linkup
>
>EOD;
>        
>        if (isset($pppoecfg['ondemand'])) {
>                $mpdconf .= <<<EOD
>        set iface addrs 10.0.0.1 10.0.0.2
>
>EOD;
>
>[...]
>
>  
>
Since Frank and I have been conversing off list because the mailer isn't 
setup so you can just reply to messages. This makes it a real pain to 
use the lit because you have to type out the monowal list every time.

It seems like the wan interface gets assigned 10.0.0.1 if a pppoe link 
set up for dial on demand is down/unreachable. Wouldn't it be better to 
set it to 0.0.0.0 or a 169. address to show that the link is down? If 
there any justification to setting it to 10.0.0.1?

Thanks,
Ethan