[plug] Initialisation and default routes

Anthony J. Breeds-Taurima tony at cantech.net.au
Thu Aug 3 13:32:59 WST 2000


On Thu, 3 Aug 2000, John Breen wrote:

> .... So, the question I have is how do I stop the startup making the
> default route out through my ethernet card, and instead get it to put
> in something more sensible, like a route to my local network?

Look at /etc/sysconfig/network

The format will vary from version to version BUT:
setting:
GATEWAYDEV=
GATEWAY=

Should tell it NOT to install a default gateway at boot.

You can 
/etc/rc.d/init.d/network stop
/sbin/route -n
/etc/rc.d/init.d/network start
/sbin/route -n

To confirm it is working correctly without rebooting, the seconf route should
look like:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.1     0.0.0.0         255.255.255.255 UH    0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo


HTH

Yours Tony.

/*
 * "The significant problems we face cannot be solved at the 
 * same level of thinking we were at when we created them."
 * --Albert Einstein
 */




More information about the plug mailing list