Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have a FC6 machine, kernel 2.6.18. I'm trying to forward packets from my eth0 interface to eth1 interface. It is not working. I have disabled the firewall as well.
Eth0 is on the network : 192.168.11.0 , netmask - 255.255.255.0
Eth1 is on the network : 172.16.0.0, netmask - 255.255.255.0
I have done the following settings in my machine:
1. Turned ON the packet forwarding by setting net.ipv4.ip_forward to 1 in the /etc/sysctl.conf file.
2. Added static routes to the file static-routes in /etc/sysconfig. The contents of this file are as under:
any: host 172.16.0.202 dev eth0
any: host 172.16.0.203 dev eth0
any: host 172.16.0.204 dev eth0
any: host 172.16.0.205 dev eth0
any: host 172.16.0.206 dev eth0
any: host 172.16.0.207 dev eth0
any: host 172.16.0.208 dev eth0
any: host 172.16.0.209 dev eth0
any: host 172.16.0.210 dev eth0
any: host 172.16.0.211 dev eth0
any: host 172.16.0.212 dev eth0
any: host 172.16.0.213 dev eth0
any: host 172.16.0.214 dev eth0
any: host 172.16.0.215 dev eth0
any: host 172.16.0.216 dev eth0
any: host 172.16.0.217 dev eth0
The same configuration works on my other FC2 machine, kernel 2.6.5
Please suggest what's wrong with the FC6 machine. Is there any more setting to be done in the FC6 box?
When I routed my desktop through my laptop in order to have access to my wireless router, I didn't add host routes like you are doing. However, I found out that I needed to modprobe ip_conntrack before it would work.