Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have:
1- RHEL5 on desktop that has 2 NIC's,
eth0 -> 10.10.10.10/8
eth1 -> 172.10.10.10/16
2- RHEL4 on desktop with eth0 -> 10.10.10.11/8
3- FC5 on laptop with eth0 -> 172.10.10.11
I configured a static route on the 10.10.10.11 desktop like:
route add -net 172.10.0.0 netmask 255.255.0.0 gw 10.10.10.10
and I could ping 172.10.10.10 (2nd NIC on RHEL5) successfully, but couldnt ping the 172.10.10.11 (FC5), at the (RHEL5):I configured the ip_forwarding in the /etc/sysctl.conf and by echo "1" > net.ipv4.ip_forward. And also I couldnt ping the FC5.
Did I miss something to do?
and
Could I configure the 2 IP's on RHEL5 in the same subnet (like 192.168.1.1 and 192.168.1.2)??
I appreciate your help nut i dont think that is the solution, rhel4 desktp should ping the FC5 if I dont do the static route on FC5.
Guys its really driving me crazy, routng is pretty straight froward and it just cant be done.
If I put the RHEL5 the default gateway for the 2 networks, the clients in the 2 networks should ping each other without static routing but it also dont work.
Whats the ****?
what I have to check? the types of the NICs or the version of my kernel?
Routing is a two way street. Both endpoints of the connection have to know how to get to each other. You only added a static route on the RHEl4 host. You need a second static route, on the FC5 host.
Try running this on the FC5 host:
route add -net 10.0.0.0/8 gw 172.10.10.10
then do your ping again.
If that still doesn't work, run "netstat -rn" on all three hosts, and post the results here.
Yes guys, framp and whistl, you were right.
I just configured the static route on the other side and the packets flowed. I thought I should configure it from one side.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.