This is a discussion on Re: modem = default route within the Linux Networking forums, part of the Linux Forums category; Gary Armstrong <garyarm@testedgeinc.com> wrote: > Yup I'm a newbie. I have successfully brought up a ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Gary Armstrong <garyarm@testedgeinc.com> wrote:
> Yup I'm a newbie. I have successfully brought up a RH9 host on my lan. > I would also like to be able to dial into an ISP from this host. Using > Kppp from the desktop menus, I'm able to define and establish a > conection with the ISP. Here's my problem: > Even after the connection, the default route remains the lan gateway it > doesn't become the modem. Where and how do I configure that? Along with > the default route, it would be nice if the resolver would use DNS from > the ISP. > Once disconnected, I'd like it to switch back. So am I looking at > writing my own scripts or is there some easy way to do this? Do you *know* you need a default route to the LAN "gateway?" If you have but one LAN and the "gateway" is the RH9 host's IP address then you don't need the default route - in fact it's silly - and the most sensible thing would be to configure it out entirely. If you do need actually need it then add /sbin/route add default $IFNAME to /etc/ppp/ip-up (RH probably obfuscates things by calling a shell script named something like /etc/ppp/ip-up.local from /etc/ppp/ip-up instead, also silly). The PPP default route disappears when the PPP link is brought down and the original default route becomes the active one again. See man pppd for information about IFNAME. -- Clifford Kite Email: "echo xvgr_yvahk-ccc@ri1.arg|rot13" PPP-Q&A links, downloads: http://ckite.no-ip.net/ /* For every credibility gap, there is a gullibility fill. -- R. Clopton */ |