hosts in multihomed hosts

hosts in multihomed hosts

Post by Lee Ha » Sat, 20 Apr 2002 05:19:48



If a machine has multiple network interfaces, how should the
/etc/hosts
file be set up?

Do we need to have multiple names for the machine?
Should only one of the ip addresses be listed?

How about on a machine that listens on more than one
ip address on a single interface?

 
 
 

hosts in multihomed hosts

Post by Paul Southwor » Sat, 20 Apr 2002 05:29:57




>If a machine has multiple network interfaces, how should the
>/etc/hosts
>file be set up?

>Do we need to have multiple names for the machine?
>Should only one of the ip addresses be listed?

>How about on a machine that listens on more than one
>ip address on a single interface?

It is not strictly necessary to put the host name(s) and addresses
in /etc/hosts, although it is sometimes helpful, especially if your
system is ever rebooted without a working network or resolver
service.

You do not need multiple names for the system.

Whether the additional addresses are on separate physical interfaces
or all aliases on one interface doesn't really matter as far
as /etc/hosts entries are concerned.

It is OK to have /etc/hosts look like this:

127.0.0.1 localhost
10.0.0.1  me me.example.com
10.0.0.2  me me.example.com
10.0.0.3  me me.example.com

...where you repeat the same name for different addresses.

--Paul

 
 
 

hosts in multihomed hosts

Post by Lee Ha » Sat, 20 Apr 2002 06:01:10


Quote:> It is OK to have /etc/hosts look like this:

> 127.0.0.1 localhost
> 10.0.0.1  me me.example.com
> 10.0.0.2  me me.example.com
> 10.0.0.3  me me.example.com

> ...where you repeat the same name for different addresses.

Ok. I was just playing around with this. It seems like the first
one is the one used when resolving the name. ie, if I said:

ping me

it would start pinging 10.0.0.1

 
 
 

hosts in multihomed hosts

Post by Paul Southwor » Sat, 20 Apr 2002 06:26:49




>> It is OK to have /etc/hosts look like this:

>> 127.0.0.1 localhost
>> 10.0.0.1  me me.example.com
>> 10.0.0.2  me me.example.com
>> 10.0.0.3  me me.example.com

>> ...where you repeat the same name for different addresses.

>Ok. I was just playing around with this. It seems like the first
>one is the one used when resolving the name. ie, if I said:

>ping me

>it would start pinging 10.0.0.1

Yes, but it really doesn't matter to the FreeBSD box.
Even if interface #1 is down it'll still be able to reach
that address - it should be basically just as reliable as
pinging the loopback.
 
 
 

hosts in multihomed hosts

Post by Phillip Michae » Sat, 20 Apr 2002 10:43:06


I would run BIND9
www.isc.org

Peace,
Phil


Quote:> If a machine has multiple network interfaces, how should the
> /etc/hosts
> file be set up?

> Do we need to have multiple names for the machine?
> Should only one of the ip addresses be listed?

> How about on a machine that listens on more than one
> ip address on a single interface?

 
 
 

1. Multihomed Hosts - /etc/hosts - NIS+ Maps Question

Hey folks,

I have a question concerning multihomed hosts.  A client of mine
recently asked what was the "standard" method of implementing multihomed
hosts in the /etc/hosts and NIS+ maps.  Which of the below methods is
the prefered way of doing it:

1.2.3.4  host5 host5fd0
5.6.7.8  host5 host5le0
9.10.11.12 host5 host5le1

-- or --

1.2.3.4  host5fd0 host5
5.6.7.8  host5le0 host5
9.10.11.12 host5le1 host5

The reason I ask is that many of you may have noticed a bug in
nisaddentry if you tried to do the above.  Sun has fixed this problem.  
My client is trying to determine the best way to do this.  They have
questions (and so do I) on how applications like 'netstat' will respond
to a request for hostname 'host5'.  It should get back a multiple line
response.  Is this correct?  (That's not my question ... sorry).

What of the two methods above is the accepted "standard" to define a
multihomed host in /etc/hosts or NIS+ maps?  And please give reasons and
examples of application response to your answer.

Thanks in advance!!!

Sean O'Neill
Rapid Systems Solutions, Inc.

2. Please somebody help me?!

3. Can't ping the host name or host IP address from host.

4. Rebellion

5. can't ping host or host IP from host ?

6. does a zgrep exist? (zgrep <> zcat | grep)

7. /etc/hosts (or NIS host map): official-host-name vs nicknames

8. Pop server that supports Apop

9. Apache 1.3b2: Default Host and all virtual hosts serve only first virtual hosts pages?

10. Multihome host based routing

11. HELP please - sending UDP on multihome host

12. Multihomed host & default GW problem

13. Problem with ARP on multihomed host