Skip to main content

Routing between two separate networks

More
18 years 5 months ago #14047 by alerizwe
I have a linux servr running fc3 i have two netwrk cards in that server
like one has ip address 192.168.5.1 and the other 192.168.2.1
i wanted to inquire are they inter-routable by default like a pc on 192.168.2.1 network can ssh and ping a pc on 192.168.5.1 by default or do i have to sdo something else to make it work.
More
18 years 5 months ago #14050 by nske
Hello,

Provided the hosts on both networks are configured to use your fc3 box as a gateway (for the appropriate subnets), you should only have to enable "IP forwarding" on your linux box to have this working. You can do this by issuing:

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

Time to create page: 0.114 seconds