Solved

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

Posted on 2013-12-31
4
317 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
  • 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS RDS 3 69
Remove a folder in Linux 9 91
Can't See Site After DNS Resolved 7 47
How to update  and reset admin password for Linux 5 45
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now