In article <tnemeth.93.00546EEB@immuno.imvs.sa.gov.au>, email@example.com (Tom Nemeth) writes:
> In article <firstname.lastname@example.org> email@example.com (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
> >188.8.131.52 myhost
> >184.108.40.206 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 220.127.116.11
IN A 18.104.22.168
myhost-4 IN A 22.214.171.124
myhost-160 IN A 126.96.36.199
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
> 188.8.131.52 myhost
> 184.108.40.206 myhost-1
> Trust me, I have several running.
-- George D M Ross, Department of Computer Science, University of Edinburgh Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ Mail: firstname.lastname@example.org 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