Two NICs, two networks

Dave Hull dphull at insipid.com
Tue May 4 13:06:41 CDT 2004


I've done this once before, but it's been more than a year ago and the box is
long gone. I'm attempting to configure a RH box to sit on two different
networks using one ethernet card for each network.

eth0 is currently working with no problems, here's the ifcfg-eth0 from
/etc/sysconfig/network-scripts:
DEVICE=eth0
BOOTPROTO=static
BROADCAST=10.77.0.255
IPADDR=10.77.0.1
NETMASK=255.255.0.0
NETWORK=10.77.0.0
GATEWAY=
ONBOOT=yes

When I try and ifup eth1, ifconfig shows the both eth1 and eth0 being up. I can
ping hosts on the 10.77.0.0/16 network via eth0, but I can't reach anything on
eth1's network. Here's the ifcfg-eth1 from /etc/sysconfig/network-scripts:
DEVICE=eth1
BOOTPROTO=static
BROADCAST=192.168.4.255
IPADDR=192.168.4.99
NETMASK=255.255.255.0
GATEWAY=192.168.4.254
ONBOOT=yes

Here's the output of netstat -rn:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.4.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
10.77.0.0       0.0.0.0         255.255.0.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.4.254   0.0.0.0         UG        0 0          0 eth1

What am I missing? Any help is greatly appreciated.

--
Dave Hull
http://insipid.com




More information about the Kclug mailing list