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

Facebook Login
Site Registration
Print Preview

how to set up IP forwarding on linux machines?

+2 votes
53 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 Google+ Share Button LinkedIn Share Button Multiple Social 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?

+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..

+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?

+1 vote

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

0 votes

I have an existing system which contains a LAN connected disk drive. I have added a new computer on which I installed Ubuntu (this is my first linux experience). From the Ubuntu computer I can read the files on the samba connected drive but I can not write to those files. I have tried to change the permissions but can not locate where the drive is mounted. So my question ishow do I change the permissions?


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...