[H-GEN] routing problems

Michael Anthon mca at tams.com.au
Sun Oct 3 19:55:19 EDT 1999


[ Humbug *General* list - semi-serious discussions about Humbug and
Unix-related topics. ]

Assuming that you have a single physical subnet for your LAN and it has a
network address of 192.168.0.0/255.255.255.0 
(or 1100000010101000000000 for the more pedantic 8^) then you do not need
the default route for the LAN.  Actually, the gateway for that default route
is itself, so it's pretty useless anyway.  To prevent this route, simply
edit /etc/sysconfig/network-scripts/ifcfg-eth0 and change the "DEFROUTE=yes"
(or remove it I think works too).  Alternatively, for the CLI challenged,
you could use the RedHat "netcfg" program.  To remove the active route, the
command would be something (untested) like "route del default gw
192.168.0.2"

Cheers
Michael Anthon

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
255.255.255.255 *               255.255.255.255 UH    0      0        0 eth0
203.12.164.16   *               255.255.255.255 UH    0      0        0 ppp0
192.168.0.2     *               255.255.255.255 UH    0      0        0 eth0
192.168.0.100   *               255.255.255.255 UH    0      0        0 sl0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         203.12.164.16   0.0.0.0         UG    0      0        0 ppp0
default         192.168.0.2     0.0.0.0         UG    0      0        0 eth0

--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.



More information about the General mailing list