You are not logged in.

#1 2007-11-30 18:13:29

lang2
Member
Registered: 2006-02-10
Posts: 386

ip forwarding howto?

Hi all,

I have to admit this is not Arch specific. But hopefully someone is willing to help a networking newbie. smile

I have two private network consisted of 3 boxes with a Linux box in the middle. The Linux box is configured as a PPP dial up server to form one network and directly (cross over cable) connected to the other box. How do I enable ip forwarding so that the two end node can communicate with each other freely?

Any suggestion appreciated.

I've turned off firewall and done "echo '1' > /proc/sys/net/ip4v/ip_forward"

Offline

#2 2007-11-30 18:28:28

VikM
Member
Registered: 2007-11-10
Posts: 50

Re: ip forwarding howto?

Add routes on the two other boxes.
On the box connected with cross-over:

route add -net 1.2.3.0/24 gw 1.1.1.1

where 1.2.3.0/24 is the network assigned by ppp and 1.1.1.1 is the linux in the middle.
If it is just for testing, (you didn't mentioned any internet) just make the linux ip the default gateway.

On the ppp client I suppose the default gateway is already set.

Search for the meaning of netmask and gateway.

Offline

#3 2007-11-30 20:01:04

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: ip forwarding howto?

thanks,

Offline

Board footer

Powered by FluxBB