Bluehost.com Web Hosting $6.95

Re: modem = default route

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 ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-17-2003
Clifford Kite
 
Posts: n/a
Default Re: modem = default route

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 */
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:49 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0