[lug] Network Routes

Kyle Moore kmoore at trustamerica.com
Thu Sep 14 09:55:48 MDT 2000


I have a network card supporting two different networks. I want to use
two different gateways (and didn't plan for a default gateway). The way
the routing table looks is a little strange so I wanted to ask if there
is a problem. The thing is...it seems to work. I'm new to anything but
the most basic networking so I'm hoping the people with more experience
can help. This is on the August KRUD release. NOTE: I changed the IP's
so please forgive any typos.

eth0    10.0.0.1
eth0:0  192.168.1.1

netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.1.1     0.0.0.0         255.255.255.255 UH        0 0          0
eth0
10.0.0.1	0.0.0.0         255.255.255.255 UH        0 0          0 eth0
10.0.0.0	0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.1.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
0.0.0.0         192.168.1.254  	0.0.0.0         UG        0 0          0
eth0
0.0.0.0         10.0.0.253	0.0.0.0         UG        0 0          0 eth0
------------------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.0.0.1
NETMASK=255.255.255.0
GATEWAY=10.0.0.253
HOSTNAME=tux.domain.com
DOMAIN=domain.com
-------------------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
-------------------------------------------------------------------------
I thought routing table should look something like this:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.1.1     192.168.1.0     255.255.255.255 UH        0 0          0
eth0
10.0.0.1	10.0.0.0        255.255.255.255 UH        0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
lo
10.0.0.0	10.0.0.253      255.255.255.0   UG        0 0          0 eth0
192.168.1.0     192.168.1.254   255.255.255.0   UG        0 0          0
eth0

-- 

----
Kyle Moore




More information about the LUG mailing list