Bug 71469 - default route to internet magically disappears with multihomed server
Summary: default route to internet magically disappears with multihomed server
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-07 18:10 UTC by Meulemans Jeroen
Modified: 2018-11-06 14:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Meulemans Jeroen 2004-09-07 18:10:20 UTC
Have server with 3 network cards:
* rl0: cable
* rl1 => tun0: ADSL
* xl0: internal

Made a script that makes you able to switch between ADSL and cable internet. The switch works perfectly, but after 5-7 days the default route magically disappears (route get default). If the server gets restarted and the ADSL is active from the start, then it will work forever. If I use the switch script it doesn't.

How-To-Repeat: Have tried it on FreeBSD 4.8-4.10 (problem is always there)

killall -KILL dhclient
killall -KILL natd
ifconfig rl0 delete
ppp -ddial ADSL_ISP > /dev/null
natd -dynamic -f /etc/natd.conf -n tun0
internet works perfectly but goes down after 5-7 days
if I switch from ADSL to cable same problem
Comment 1 Gleb Smirnoff freebsd_committer freebsd_triage 2004-09-08 09:36:15 UTC
  Meulemans,

On Tue, Sep 07, 2004 at 05:01:59PM +0000, Meulemans Jeroen wrote:
M> ppp -ddial ADSL_ISP > /dev/null
M> natd -dynamic -f /etc/natd.conf -n tun0
M> internet works perfectly but goes down after 5-7 days
M> if I switch from ADSL to cable same problem

check ppp.log pls. I suspect ppp deletes the route, which it created before.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
Comment 2 Meulemans Jeroen 2004-09-10 15:39:52 UTC
Last log in ppp.log always dates from the moment the succesfull connection
was made. 5-7 days later, the default route fails (disappears) without any
notice in any log files (neither in ppp.log) .

Thanks,

Meulemans Jeroen
Comment 3 ru freebsd_committer freebsd_triage 2004-09-10 16:08:47 UTC
On Fri, Sep 10, 2004 at 02:40:31PM +0000, Jeroen Meulemans wrote:
> Last log in ppp.log always dates from the moment the succesfull connection
> was made. 5-7 days later, the default route fails (disappears) without any
> notice in any log files (neither in ppp.log) .
>  
Bringing an interface down will blow away all routes through this interface,
including "default".  Are you using the "sticky" default route in ppp(8)?


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
Comment 4 Meulemans Jeroen 2004-09-10 16:35:29 UTC
I am using the sticky default route, here is my ppp.conf:

default:
  set log Phase tun command # you can add more detailed logging if you wish
  set ifaddr 10.0.0.1/0 10.0.0.2/0
SCARLET:
  set device PPPoE:rl1
  set authname USERNAME
  set authkey PASSWORD
  set dial
  set login
  add default HISADDR

Thanks,

Meulemans Jeroen
Comment 5 Bruce Cran freebsd_committer freebsd_triage 2009-01-30 23:15:29 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:17 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 7 Eugene Grosbein freebsd_committer freebsd_triage 2018-02-02 23:00:04 UTC
Is this problem still relevant?