Re: SUMMARY: 2 ethernet boards in a SPARC

From: George Ross (gdmr@dcs.ed.ac.uk)
Date: Wed Nov 30 1994 - 04:13:31 CST


In article <tnemeth.93.00546EEB@immuno.imvs.sa.gov.au>, tnemeth@immuno.imvs.sa.gov.au (Tom Nemeth) writes:
> In article <frala.101.00094347@mem.unibe.ch> frala@mem.unibe.ch (Frank Langlotz) writes:
> >You cannot have the same hostname on the 2 ethernet ports, in the same
> >way that you can't have the same IP address.

Well, that depends on how you interpret the question and which name resolution
system you use. If you use the DNS it's quite reasonable to have the same
name refer to all the interfaces on a machine. A reasonable resolver would
then choose the nearest one.

> >In /etc you should have 2 files called hostname.le0 and hostname.le1
> >these should contain the names for the 2 ports eg mayhost and myhost-1.
> >then in the /etc/hosts file you would have:
>
> >127.0.0.0 localhost
> >141.241.4.36 myhost
> >141.241.160.8 myhost-1
>
> >This should then resolve any conflicts in addressing.

This is a different interpretation of the question. What you're actually
doing here is associating *addresses* with the interfaces, not names. Stated
that way, if you prefer to have symbolic names for those addresses then
obviously you need to have different symbolic names.

What we do is have the canonical name translate to all the addresses, together
with additional interface-specific names. Something like:

myhost IN A 141.241.4.36
                IN A 141.241.160.8
myhost-4 IN A 141.241.4.36
myhost-160 IN A 141.241.160.8

and in your reverse zone:

36.4 IN PTR myhost.my.dom.ain.
8.160 IN PTR myhost.my.dom.ain.

> On the right track, but it won't work properly. Somewhere in the manual it
> says that you must have the SAME HOST NUMBER on both networks. So, the above
> example must be changed to:
>
> 127.0.0.0 localhost
> 141.241.4.36 myhost
> 141.241.160.36 myhost-1
>
> Trust me, I have several running.

Rubbish!

-- 
George D M Ross, Department of Computer Science, University of Edinburgh
     Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ
Mail: gdmr@dcs.ed.ac.uk   Voice: +44 131 650 5147   Fax: +44 131 667 7209



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:16 CDT