2 nics, 2 networks, 2 problemas
hello. I'm attempting to replace my Linksys POS router with a more reliable linux box (fedora 1). First though, i'd like to setup my linux box as a router between my two subnets and im having problems.
I have two nics in my box. # ifconfig eth0 link encap: ethernet HWaddr 00:03:6D:1E:CA:7D inet addr: 192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0 eth1 link encap: ethernet HWaddr 00:40:05:85:EC:95 inet addr: 192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0 ---and---- # route Destination Gateway ... Iface default 192.168.2.1 eth0 192.168.2.0 * eth0 192.168.1.0 * eth1 169.254.0.0 * eth1 when i ping anything on the 192.168.1.0 subnet, everything is peachy. but if i attempt to ping anything on the 192.168.2.0 subnet i get "Destination Host is Unreachable." I'm guessing its some sort of routing problem. I can ping the 192.168.1.100 address from that subnet, but the 192.168.2.1 address times out... Any ideas? |
I think you need to fet that fedora box to route traffic.
echo "1" > /proc/sys/net/ipv4/ip_forward to enable it to route traffic between the two cards. Else it will not be a router. |
All times are GMT -5. The time now is 08:05 AM. |