IbuildDW
June 1st, 2009, 09:42 PM
I have what I think is an issue with IP forwarding.
Machine 1
eth0 192.168.1.1 gw 192.168.1.254
eth1 192.168.2.1
Machine 2
eth0 192.168.1.2
eth0:0 192.168.2.2 gw 192.168.2.1
I need to be able to get to the Internet (Machine 1's gw) from Machine 2.
I have on Machine 1:
~# cat /proc/sys/net/ipv4/ip_forward
1
I can ping other machines on the 192.168.1.0 network and the 192.168.2.0 network from Machine 2, but can't get to any other addresses from Machine 2.
Please let me know if you have ANY ideas, I've been trying to get this working for several days and haven't made any progress. From all I've read, I should only need ip forwarding enabled. I have that, but it doesn't appear to be working.
TIA
Machine 1
eth0 192.168.1.1 gw 192.168.1.254
eth1 192.168.2.1
Machine 2
eth0 192.168.1.2
eth0:0 192.168.2.2 gw 192.168.2.1
I need to be able to get to the Internet (Machine 1's gw) from Machine 2.
I have on Machine 1:
~# cat /proc/sys/net/ipv4/ip_forward
1
I can ping other machines on the 192.168.1.0 network and the 192.168.2.0 network from Machine 2, but can't get to any other addresses from Machine 2.
Please let me know if you have ANY ideas, I've been trying to get this working for several days and haven't made any progress. From all I've read, I should only need ip forwarding enabled. I have that, but it doesn't appear to be working.
TIA