[NTLUG:Discuss] routing to temp dial up connection and permanent connection

Seth Daniel seth at ti.com
Sat May 13 22:30:53 CDT 2000


All,

I have a permanent connection to the internet via ADSL.  I also dial-in
occasionally to work using a 56k modem w/ ppp.  

Whenever I have to dial-in I need to take down my eth0 interface otherwise
the routing becomes messed up.  My question is this: how do I have this
temporary dial-up *and* still be able to access the outside world through the
DSL while I'm dialed up?  

Something related to this is the pppd usepeerdns option.  From what I can tell
it makes a backup of /etc/resolv.conf and then proceeds to make a new resolv.conf
file with the dns ip numbers for the dial-up.  Is there anyway to tell pppd to
append this information to the current resolv.conf?  Otherwise I'll need to make 
some script which does this for me. 

Pertinant info:
--this is the routing before I dial-up:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         10.0.0.1        0.0.0.0         UG    1      0        0 eth0

--this is the routing after dial-up if I have not brought down eth0
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.134.1   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         10.0.0.1        0.0.0.0         UG    1      0        0 eth0


--relavent pppd options
defaultroute
noipdefault
usepeerdns

-- 
seth daniel  |  Texas Instruments DMOS4/5
seth at ti.com  |   Automation Engineering




More information about the Discuss mailing list