Another Routing problem
I've got this routing problem that I can't figure out.
And it's driving me crazy I'm using RedHat Enterprise 3 main network 192.168.0.0 machine one (subnet router) eth0 192.168.0.9 eth1 192.168.1.1 machine two eth0 192.168.1.6 MACHINE ONE ifconfig eth0 192.168.0.9 netmask 255.255.255.0 up ifconfig eth1 192.168.1.1 netmask 255.255.255.0 up route add -net 192.168.0.0 netmask 255.255.255.0 eth0 route add -net 192.168.1.0 netmask 255.255.255.0 eth1 route add default gw 192.168.0.9 netstat -rn 127.0.0.0 lo 192.168.1.0 0.0.0.0 255.255.255.0 eth1 192.168.0.0 0.0.0.0 255.255.255.0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 eth0 0.0.0.0 192.168.0.9 0.0.0.0 UG eth0 MACHINE TWO ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up route add -net 192.168.1.0 netmask 255.255.255.0 eth0 route add default gw 192.168.1.1 netstat -rn 192.168.1.0 0.0.0.0 255.255.255.0 U eth0 127.0.0.0 0.0.0.0 255.0.0.0 U lo 0.0.0.0 192.168.1.1 255.255.255.0 UG eth0 This is my problem: Machine Two can ping both ethernet cards on the machine one but cannot ping onto the 192.168.0.0 network Machine One can ping machine Two and the other machines on 192.168.0.0 All have same netmask 255.255.255.0 I've got ip_forwarding turned on I've got iptables turned off I've also tried on machine one route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.0.0 dev eth0 Am I missing something? I'm starting to think it's not the routing but something else. |
Sorry
Sorry,I tried to draw a visual that obviously didn't work out.
I'm not sure how do people use tabs or spaces to display the routing tables on this BBS? |
answer
Just incase someone is crusing for answers to similar problems. I tried so many different routing configuations and a good explanation of routing is linked below.
But the answer to my problem was not there. The answer was: I COULD ping the network, it just couldn't ping me back. I thought that traceroute would show me what was going on but I was wrong. It was tcpdump -i ethx that showed me that the icmp packets were going through. So onward. http://www.comptechdoc.org/os/linux/...ugrouting.html |
All times are GMT -5. The time now is 10:08 AM. |