Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-08-2005, 01:55 PM   #1
LQ Newbie
Registered: Apr 2005
Distribution: Slackware 10.1
Posts: 9

Rep: Reputation: 0
Eth0 and Eth1 config

First of all, thanks for even looking. This isn't so much of a problem as a request for confirmation.

The idea is that this 'intranet' box will be accessible internally as well as externally. The in-house DNS server points the URL to, but externally the DNS record is an external IP. As you can see this shortcuts directly to the box if you are in-house - seemingly a standard practice.

However, I had a slight problem with my setup. I have not setup more than one interface before so it was all trial and error. My first attempt worked breifly, till I realized that I could not resolve externally:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth1
iface eth1 inet static
  address *my-ip-here*
  gateway *my-gateway-here*

auto eth0
iface eth0 inet static
So I thought, "It has two gateways... maybe it's getting confused." I took out the second gateway ( and it works! I can resolve externally and internally.

My question: Is this the proper way to have this set up? Thank you.
Old 04-09-2005, 08:18 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Yes that is correct.

By definition you can really only have one "default". Default in this case really means "if all else fails" - ie no other specific route could be matched.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use eth1 instead of eth0 WindozeFREE Linux - Networking 8 03-22-2005 03:04 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 07:32 PM

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration