Solved

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

Posted on 2013-12-31
4
323 Views
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
0
Comment
Question by:TIMFOX123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 

Author Comment

by:TIMFOX123
ID: 39749292
Also what is the result of setting you dns per interface ?
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 39749345
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
 

Author Comment

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

Author Closing Comment

by:TIMFOX123
ID: 39750353
thx
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

756 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