I'm trying to route traffic from subnet 192.168.2.x to subnet 192.168.3.x with limited success. Sometimes it works, sometimes not.
My Ethernet ports are configured as follows on box-3 (Fedora 5)....
Code:
[root@box-3 toms]# ifconfig
eth1 Link encap:Ethernet
inet addr:192.168.2.42 Bcast:192.168.2.255 Mask:255.255.255.0
eth2 Link encap:Ethernet
inet addr:192.168.3.43 Bcast:192.168.3.255 Mask:255.255.255.0
The route table is set up, and shows....
Code:
[root@box-3 toms]# route del default
[root@box-3 toms]# route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.2.42
[root@box-3 toms]# service network restart
[root@box-3 toms]# route -ee
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface MSS Window irtt
192.168.36.0 box-3 255.255.255.0 UG 0 0 0 eth1 0 0 0
192.168.3.0 * 255.255.255.0 U 0 0 0 eth2 0 0 0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1 0 0 0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth2 0 0 0
default box-3 0.0.0.0 UG 0 0 0 eth1 0 0 0
The network restart reinserts the default gateway.
Why do I keep getting the default gateway? Do I need it?
With only eth2 enabled on box-3, I can ping box-4 (Fedora 3) at 192.168.3.63. With eth1 and eth2 enabled, pinging box-4 is iffy.
All iptables are off.
What should I be checking, or restarting?
The ultimate objective is to pass traffic through four boxes.
Thanks!
Tom D.