Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Eric Smith <eric@brouhaha.com>
Subject: Re: IP aliasing
Date: 6 Aug 1997 16:47:09 -0000	[thread overview]
Message-ID: <7fab231cb5161a626f80f2177dcc15a8.axp-list@archive.invalid> (raw)

> I assign an IP address to my alpha, say XXX.yyy.zzz.80, then alias 81 82 and 
> 83.  From the outside world, I can ping, telnet to, ftp to, httpd to any of
> the IP address with no problem.  I have a nameserver running on the machine
> and I can only use the 80 (real ethernet) address in resolv.conf on other
> machines on the same network that don't have named running. If I try any of
> the alias address it hang and will not resolv.
>     
> I moved the nameserver over to my intel box, did the same thing with the
> aliasing and it work perfectly, I can use any of the alias address for the 
> nameserver on my remote machines and they work.

I brought this very same subject up in Sept. '96, and no one seemed to care.

There's a bug in BIND 4.9.3 (and perhaps later versions) in the way that the
interfaces are enumerated.  In the fine named/ns_main.c, the line

             cp += sizeof (ifr->ifr_name) + my_size(ifr->ifr_addr)) {

should be changed to

             cp += sizeof (struct ifreq)) {

I don't know why they are assuming that the increment should be just the
size of the ifr_name and ifr_addr fields, or whether this change will break
on non-Linux platforms, so I changed it to

#ifdef linux
             cp += sizeof (struct ifreq)) {
#else
             cp += sizeof (ifr->ifr_name) + my_size(ifr->ifr_addr)) {
#endif

The net result is that when they scan the list of interfaces, they don't get
all of them, and they get some bogus ones.

In my case, I only want named to respond on one IP alias, and it happened to
be an IP alias that named wasn't finding at all.  So I fixed the bug described
above, and I added a feature to allow a single IP address to be used.  I
think BIND version 8 may have that capability as a standard feature.

Cheers,
Eric

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-08-06 16:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-06 16:47 Eric Smith [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-10-03 11:40 IP aliasing Alan Wood
1997-10-02 18:44 Chang Shen
1997-10-02 17:38 John Banghart
1997-10-02 16:17 Alpha Linux
1997-08-05 23:30 Dan Merillat
     [not found] <XFMail.970805160215.dawild@logicle.com>
1997-08-05 20:09 ` Steven Kokinos
     [not found] <Pine.LNX.3.95.970805125724.3880A-100000@michael.webdevelop.com>
1997-08-05 19:56 ` David Wild
     [not found] <XFMail.970805123905.dawild@logicle.com>
1997-08-05 16:59 ` Steven Kokinos
1997-08-05 16:37 David Wild
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox