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.
this doesn't make sense. you can't route TO a local subnet, it's already there.... sounds to me like you want to enable ip forwarding to make it actually route between the networks it is directly attached to.
Thanks! I do agree with you. Now I am looking in to how to setup IPforward. Any suggestion on how to enable IP forwarding feature. I recently installed fedora core 5 and it seem it does not have command “ipfwadm”. Any help I appreciated.
Please help with my router. I have 2 computers I want to connect both on internet using linux router(one of the computer). I added the line
net.ipv4.ip_forward = 1
to /etc/sysctl.conf file. Only one of my network card let me activated it (the one that is connect to the modem: internet eth1). The other card eth0 won't let me activated it. eth0 is connect to a switch that connect my windows XP computer. I am doing something wrong? Please help.
Thank everyone
Thanks for your support. I am still stuck on same problem. I may have missed something else. I have in Linux box with two Ethernet port Eth1 and Eth2. All I want to do is ping from PC1 to PC2 so I can insert delay and jitter on each port. First step is to get the IP forward working correctly then I can move forward.
In Linux box IP address as follow.
Eth1: IP address is 192.168.5.1/24 gw 192.168.5.2
Eth2: IP address is 192.168.1.1//24 gw 192.168.1.2
I also typed following command in Linux box.
echo 1 > /proc/sys/net/ipv4/ip_forward
Here is my overall configuration IP address.
PC1 (192.168.5.2 gw 192.168.5.1) Linux Eth1(192.168.5.1 gw 192.168.5.2) Linux (192.168.1.3 gw 192.168.1.1) PC 2 (192.168.1.1 gw 192.168.1.3)
My routing table below from Linux box
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.5.2 0.0.0.0 UG 0 0 0 eth1
I also have tried route add insert proper gateway in both interfaces. (example: 192.168.5.0 192.168.5.2)
I also add route in PC.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.