I want to configure RHEL5 as a router using two NICs
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.
I want to configure RHEL5 as a router using two NICs
I want to configure rhel5 as a router with two nics. Eth0 IP is 192.168.100.1/24 and Eth1 IP is 192.168.1.254/24. My Internet and Present LAN is attached to Eth1. Now whatever the request coming from eth0 it should be diverted to eth1 and vice versa so that i can access internet and other from my present LAN. I tried lot of things but i am not getting at least ping also so please help out for the same!!!
OK, well the most likely trap is not your box, but the device your eth1 network uses as a default gateway to the net. Does that box know how to get to your eth1 subnet? by default it won't have a clue, so whilst your data can follow default route out, but getting back in is different altogether. you *could* do a nat on your rhel box, but that's not nice really, best to do it properly by correct routing tables.
of course this could be irrelevant... what have you actually done on the box? enabled ip_forward?
OK, well the most likely trap is not your box, but the device your eth1 network uses as a default gateway to the net. Does that box know how to get to your eth1 subnet? by default it won't have a clue, so whilst your data can follow default route out, but getting back in is different altogether. you *could* do a nat on your rhel box, but that's not nice really, best to do it properly by correct routing tables.
of course this could be irrelevant... what have you actually done on the box? enabled ip_forward?
Yes sir i have enabled ip_forward & restarted network service
right so, as above really. you might want to also run tcpdump or wireshark on the eth0 interface to see if traffic is leaving your box for the internet.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.