• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

system default route compared to default routes on each interface in redhat

I have always worked in an environment where we set a system wide default gateway.

  when would you and why would you use gateways per interface ( like you would do if you fully populated the system-config-network-tui interface )

Redhat 5/6
0
TIMFOX123
Asked:
TIMFOX123
  • 3
1 Solution
 
TIMFOX123Author Commented:
Also what is the result of setting you dns per interface ?
0
 
Duncan RoeSoftware DeveloperCommented:
You can only usefully set one default route for 0.0.0.0 (0/0). If you set more than 1, the 1st one will always be used. But if, for instance, you have a network 10 VPN on the non-default interface, you might configure a different gateway for 10.0.0.0 (10/8). The VPN would have its own DNS, so you would configure a DNS in the 10/8 network as well as your regular DNS in network 0/0. Both DNS addresses would appear in /etc/resolv.conf and a gethostbyname() call would try both of them.
0
 
TIMFOX123Author Commented:
great answer, I am going to keep this open for a little longer to see what else is posted.
0
 
TIMFOX123Author Commented:
thx
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now