- Posts: 8
- Thank you received: 0
Routing between two separate networks
18 years 7 months ago #14047
by alerizwe
Routing between two separate networks was created 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.
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.
18 years 7 months ago #14050
by nske
Replied by nske on topic Re: Routing between two separate networks
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:
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.153 seconds