Linux.com

Home Linux Community Forums Hardware Networking one gateway and two other networks (subnets)

one gateway and two other networks (subnets)

Link to this post 05 Sep 10

Hi all,


I have a server thats got 3 nics , eth2 internet, eth0, 1 are the different subnets and each of the subnet connections have a different dhcp scope which works fine. I have tried to route the gateway connection to the other two nics via the route and ip route command plus turning on the ip_forwarding but the clients on the different subnets can not get the internet, but i can ping the gateway ip of each subnet fine, it just wont forward the traffic though to the clients.

Do i have to use iptables etc to route the traffic aswell as using route and ip route command


Any help on this will be great


Many thanks

Link to this post 18 Sep 10

These are not subnets in the true sense of the word, but separate networks. What is the network address that each of the "subnets" that are not directly attached to the internet are using? What is their broadcast mask and gateway addresses set to? What does the output of the "route" command show?

Link to this post 08 Oct 10

First your nics are using two different dhcps. Does your gateway have a dhcp server imbedded in it. Your nic should use the dhcp service in the gateway. Second, when you say different subnets, did you subnet the main network address provided by the gateway or did you give different ip addresses to the other two nics in the server? Please give as much information as possible.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board