Two NICs, two networks

Russell Starr rstarr at kcpeople.net
Tue May 4 21:30:18 CDT 2004


It may not be a big deal depending on your setup, but the broadcast
address for eth0 should be 10.77.255.255.

Are you wanting to do routing?  If so, try:

echo "1" > /proc/sys/net/ipv4/ip_forward

If not, try flushing or checking your iptables rules, they might be
blocking something like icmp.

Can you bring up one interface at a time to see if they work by
themselves?

Good luck

-Russ

On Tue, 4 May 2004, Dave Hull wrote:

> 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