top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

how to set up IP forwarding on linux machines?

+2 votes
86 views

I have a IP configured which is not visible for another network (suppose IP: A).
I have a common machine/switch which is in between two networks, now need to set up IP forwarding such a way that the packets coming to IP: A should be forwarded to that machine correctly.

posted Jul 12, 2013 by Manjunath Munavalli

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
Looks that you need to setup a bridge between two network. Check this it should help...
http://beginlinux.com/sec_train_m/10-traincat/1310-set-up-the-bridge

Which Linux flavour you are using.

2 Answers

+2 votes

sysctl -a |grep forward
and then set the needed parameters to 1 for
- ipv4/ipv6
- the interface you want

using sysctl -w parameter
and you will have a router

answer Jul 12, 2013 by anonymous
+2 votes

If the output is 1 IP forwarding is enabled,

cat /proc/sys/net/ipv4/ip_forward

If the output is 0, run this command,

cat 1 > /proc/sys/net/ipv4/ip_forward

ipv4 and ipv6 directories are present inside "/proc/sys/net/".
For more, Check Kernel Doc

answer Jul 12, 2013 by Satyabrata Mahapatra
Similar Questions
0 votes

Does anybody know if it makes a difference to enable IP forwarding on the (linux) host? I know both works (enabled or disabled), but is there a good choice regarding the use of virtio_net inside the (linux) guests?

+8 votes

How to make of use of GNUPLOT in Linux for plotting graphs by taking input from files? Data in one file represents X-axis and other file data represents Y-axis. Can anyone help me out?

+2 votes

I am used to traditional update-rc.d et all.

Now I wonder how to add a a script that used to called by init.d (with start/sop ..) to the new "service start xx" regime.

All the tutorials I found talk about how to use update-rc.d..

+1 vote

Can someone describe in detail about the Ghost security hole. And is there any patch or a solution to fix it?

+1 vote

I am a newbie and using fedora machine, please help with point by point C programming setup.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...