From owner-freebsd-net Fri Jan 4 10:20:18 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 5783237B417 for ; Fri, 4 Jan 2002 10:20:12 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020104182011.MEPC20119.rwcrmhc51.attbi.com@InterJet.elischer.org>; Fri, 4 Jan 2002 18:20:11 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA28903; Fri, 4 Jan 2002 10:15:34 -0800 (PST) Date: Fri, 4 Jan 2002 10:15:32 -0800 (PST) From: Julian Elischer To: Tim Cc: freebsd-net@FreeBSD.ORG Subject: Re: PPPoE and "carrier" lost? In-Reply-To: <20020104012836.A65890@futuresouth.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The pppoe protocol has no 'keepalives' so there is no way for the client side to know that there is a broken connection. However PPP DOES have keepalives so it should discover that it has lost connection after a while and tear down the link and restart it. In other wirds, it's not PPPOE's job but PP's job to identify teh problem. On Fri, 4 Jan 2002, Tim wrote: > We just got a DSL connection and I am having a slight problem with > ppp/PPPoE not recognizing a lost connection and renegotiate a new IP > address. For example, if I reboot the DSL modem or unplug/plug the line > back in where the remote ppp connection is lost, ppp doesn't recognize > this and still associates the old IP address with tun0. Isn't PPPoE > supposed to recognize a "carrier" lost? It seems to never notice when I > reboot the DSL modem (or just turn it off). This is obviously not ideal > if the remote ppp session ever went down. Any suggestions? This is what > we have: > > 1) FreeBSD -stable (4.5-PRE) > 2) Alcatel 1000 Ethernet DSL modem, connected to xl0 > 3) internal network connected to fxp0 > 4) my ppp.conf looks like this: > > DSL: > set device PPPoE:xl0 > # set MRU 1490 > # set MTU 1490 > set authname ... > set authkey ... > set dial > set ifaddr 10.0.0.1/0 10.0.0.2/0 > add default HISADDR > nat enable yes > # set cd off > # set crtscts off > > 5) ifconfig -a looks like this: > > tim@gw [1:23am] ~ > ifconfig -a > xl0: flags=8843 mtu 1500 > ether 00:c0:4f:bf:13:4c > media: Ethernet autoselect (10baseT/UTP) > status: active > fxp0: flags=8843 mtu 1500 > inet 192.168.0.1 netmask 0xffff0000 broadcast 192.168.255.255 > ether 00:d0:b7:18:f8:82 > media: Ethernet autoselect (10baseT/UTP) > status: active > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > ppp0: flags=8010 mtu 1500 > tun0: flags=8051 mtu 1492 > inet 66.165.196.231 --> 66.165.196.1 netmask 0xff000000 > Opened by PID 659 > > Thanks! > > Tim > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message