On 28-Apr-99 Curt McNamee wrote:
> I have a question about routing with a masq'd box. I have a network at my
> home with 4 computers on it and they all point at my masq'd linux box for
> their default gateway to get onto the net. Everythig works fine and all,
> but the only problem I have is that when I boot my linux box the default
> route is ETH0 set to the netware server I had acting as an IP router, and
> then when I dialup and connect to the internet the ppp link is not set as
> the default route so nothing mapsqd will work. What I ended up having to
> do was kill the default route for eth0 and then dial up and connect and
> then the default route now becomes the ppp link and evetything works,
> except when I traceroute it tries to use eth0 and not ppp0 to do the
> traceroute. Is that what I am supposed to do is kill the default route
> for eth0 and then enable it for ppp0? Would tahe fix my traceroute
> problem? Thanks in advance for the help! I am sorry this email sounds
> odd, lack of sleep will do that to you.
There can be only one default route, because that is where everything that
isn't explicitly routed will go. You need to make specific route entries for
the subnets that are permanent, and leave the default route for the ppp. You
must have some idea of what subnets to throw at the netware server, so just
add the necessary static-routes to /etc/sysconfig/static-routes.
Something like this:
eth0 net 192.168.1.0 netmask 255.255.255.0
The parameter for defining the default gateway (GATEWAY) is in
/etc/sysconfig/network -- so you should probably get rid of that. So you can
use either admin tools to change these things, or just edit the files. Those
are the files used in Red Hat derivatives and a few other distributions.
Others may just set that junk up in the rc.net scripts.
As far as traceroute trying to use eth0, that is a "feature" ;) You'll have
to specify the device to use with the -i switch.
/* Chris Faherty <[EMAIL PROTECTED]>, finger for PGP */
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
http://tiffany.indyramp.com/mailman/listinfo/masq
Admin requests can be handled by web (above) or [EMAIL PROTECTED]