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

Posted on 2013-12-31
Medium Priority
Last Modified: 2014-01-01
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
Question by:TIMFOX123
  • 3

Author Comment

ID: 39749292
Also what is the result of setting you dns per interface ?
LVL 35

Accepted Solution

Duncan Roe earned 2000 total points
ID: 39749345
You can only usefully set one default route for (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/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.

Author Comment

ID: 39750000
great answer, I am going to keep this open for a little longer to see what else is posted.

Author Closing Comment

ID: 39750353

Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Virtualization software lets you run different versions of Windows, Ubuntu Linux and other versions of Linux all at the same time, rather than running each one directly from your computer's hard drive.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

586 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question