How Many Default Gateways A System/Server Should Have?

0 comments

I have a system with two Lan cards
Eth0 is assigned with 10.22.33.21 IP address and default gateway is
10.22.33.1
Eth1
is assigned with 192.168.0.1 IP address and default gateway is
192.168.0.100
Now the system communicate with any system in these networks(10.22.33.0 and 192.168.0.0). The answer is no.
Never try to assign multiple gateways to a system if it have more than one LAN card.
Just assign a single gateway for effective communication.

So in this example we can have two scenarios:
Either you can assign Eth0 10.22.33.21 IP address with default gateway as 10.22.33.1 and Eth1 should have just an IP 192.168.0.1 no default gate for this Eth1 interface

Or

Eth0 10.22.33.21 IP address without default gateway and Eth1 IP address 192.168.0.1 with default gateway as 192.168.0.100.

You may get doubt if I assign multiple default gateways what will happen?
Ans :
You cannot communicate/ping properly to other networks. If you want to try this out try on a test network and feel the difference.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Archive

    Translate this page

     

    The Linux Juggernaut | Copyright 2006-2009 Surendra Kumar Anne | Surendra's Home Page | Give us feedback how we are doing, Click here