Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* IP aliasing
@ 1997-08-05 16:37 David Wild
  0 siblings, 0 replies; 10+ messages in thread
From: David Wild @ 1997-08-05 16:37 UTC (permalink / raw)


All,
I have something strange happening with ip aliasing that I can't figure out. 
I've tried everything and have resolved it must be something in the kernel.

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 addres
s 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 am using kernel 2.0.29 on both machines.  I tried several other kernels on the
alpha, including 2.1.47, but it still won't work.

Any help or confirmation would be appreciated.

Dave
dawild@logicle.com

--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: IP aliasing
       [not found] <XFMail.970805123905.dawild@logicle.com>
@ 1997-08-05 16:59 ` Steven Kokinos
  0 siblings, 0 replies; 10+ messages in thread
From: Steven Kokinos @ 1997-08-05 16:59 UTC (permalink / raw)


> 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 am using kernel 2.0.29 on both machines.  I tried several other kernels on the
> alpha, including 2.1.47, but it still won't work.

Name servers are tied into the reverse DNS/canonical name.  The only way
you can be sure it will work is if you use the actual ip as the name
server, otherwise internal machines may work but external one's most
likely won't.

-Steve

--
Steven Kokinos - Web Developers Network - http://www.webdevelop.com/
steve@webdevelop.com - 60 Day free trial for developers! 
Industry leading development environment, multiple T1 network.

--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: IP aliasing
       [not found] <Pine.LNX.3.95.970805125724.3880A-100000@michael.webdevelop.com>
@ 1997-08-05 19:56 ` David Wild
  0 siblings, 0 replies; 10+ messages in thread
From: David Wild @ 1997-08-05 19:56 UTC (permalink / raw)


On 05-Aug-97 Steven Kokinos wrote:
>
>Name servers are tied into the reverse DNS/canonical name.  The only way
>you can be sure it will work is if you use the actual ip as the name
>server, otherwise internal machines may work but external one's most
>likely won't.

I am using an alias as the nameserver on my intel linux with the same
configuration as I had on the alpha, and it likes it.  I can use the aliased
address as the nameserver and it will work on internal as well as external
machines.  
Are you saying that it might or might not work and if it does it's a bonus?

I can live with that, I just wondered why it worked on intel but not alpha.

BTW, I know of another person who is doing this on an intel linux machine, and
it works fine for him too.  That's where I got the idea.

Thanks,

Dave
dawild@logicle.com

--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: IP aliasing
       [not found] <XFMail.970805160215.dawild@logicle.com>
@ 1997-08-05 20:09 ` Steven Kokinos
  0 siblings, 0 replies; 10+ messages in thread
From: Steven Kokinos @ 1997-08-05 20:09 UTC (permalink / raw)


> I am using an alias as the nameserver on my intel linux with the same
> configuration as I had on the alpha, and it likes it.  I can use the aliased
> address as the nameserver and it will work on internal as well as external
> machines.  
> Are you saying that it might or might not work and if it does it's a bonus?
> 
> I can live with that, I just wondered why it worked on intel but not alpha.

That's what I've seen in my experience.  Also, before 4.2 there were some
differences in intel/alpha networking from my experience.  An example
would be the necessity of using ifconfig followed by a route add
statement, which is now needed across all platforms, but which previously
only required an ifconfig statement.  Let me know if you get it working on
the alpha, I'd be interested to know what made it work, but I wouldn't
spend too much time on it either.

-Steve

--
Steven Kokinos - Web Developers Network - http://www.webdevelop.com/
steve@webdevelop.com - 60 Day free trial for developers! 
Industry leading development environment, multiple T1 network.

--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: IP aliasing
@ 1997-08-05 23:30 Dan Merillat
  0 siblings, 0 replies; 10+ messages in thread
From: Dan Merillat @ 1997-08-05 23:30 UTC (permalink / raw)


David Wild writes:
> All,
> I have something strange happening with ip aliasing that I can't figure out. 
> I've tried everything and have resolved it must be something in the kernel.
> 
> 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 t
he 
> 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 add
res
> s it hang and will not resolv.

It can't reach the port, it's trying the wire instead of the local
address.

route add x.x.x.81 eth0:0
route add x.x.x.82 eth0:1
...

This sometimes happens on intel as well... not sure why it just works for
you.  An explicit route is the proper way, however.

I just do both in a "alias-up" script.

--Dan

--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: IP aliasing
@ 1997-08-06 16:47 Eric Smith
  0 siblings, 0 replies; 10+ messages in thread
From: Eric Smith @ 1997-08-06 16:47 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* IP aliasing
@ 1997-10-02 16:17 Alpha Linux
  0 siblings, 0 replies; 10+ messages in thread
From: Alpha Linux @ 1997-10-02 16:17 UTC (permalink / raw)


I don't know if this was ever mentioned before or not, but I set up a
couple of aliases.  Everything seems to work for machines on the local
network.  I can telnet to the aliases and lynx to them and everything.
The problem is  from networks that are across my gateway.  They do not see
the aliases.  They cannot connect to them or anything.  Does anyone know
what I need to do to get other networks to see my aliases.  I suspect
another route, but I am not really sure.

RedHat 4.2 Biltmore
Noname 266
2.0.30 kernel, net-tools-1.421.tar

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:7168  Metric:1
          RX packets:10834 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10834 errors:0 dropped:0 overruns:0 carrier:0 coll:0

eth0      Link encap:Ethernet  HWaddr 08:00:2B:E5:F0:63
          inet addr:129.89.121.10  Bcast:129.89.121.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1088964 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1959391 errors:0 dropped:0 overruns:0 carrier:0 coll:10731
          Interrupt:10 Base address:0xb000

eth0:0    Link encap:Ethernet  HWaddr 08:00:2B:E5:F0:63
          inet addr:129.89.121.12  Bcast:129.89.121.255 Mask:255.255.255.0
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref  UseIface
129.89.121.12   0.0.0.0         255.255.255.255 UH    0      0    0  eth0:0
129.89.121.0    0.0.0.0         255.255.255.0   U     0      0    97 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0    11 lo
0.0.0.0         129.89.121.1    0.0.0.0         UG    0      0    612eth0

I would really appreciate any help you can give me.

thanks 

kevin

--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: IP aliasing
@ 1997-10-02 17:38 John Banghart
  0 siblings, 0 replies; 10+ messages in thread
From: John Banghart @ 1997-10-02 17:38 UTC (permalink / raw)


Does you gateway router have an IP number aliased to it from that same
network?  129.89.121.1 for example?

--
John Banghart
Systems Administrator
Red Rose SuperNet
john@redrose.net

--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: IP aliasing
@ 1997-10-02 18:44 Chang Shen
  0 siblings, 0 replies; 10+ messages in thread
From: Chang Shen @ 1997-10-02 18:44 UTC (permalink / raw)


This is a multi-part message in MIME format.
--------------2E2D4EF0698262D5FE18E927
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I guess, just guess, the alias information is stored  in your machine or some
machine in your local network. (they act like "DNS").  If someone from outside try
to use that alias, they first need access into your local network looking for your
alias's "DNS".  Usually, your local network's private DNS it is not transparent to
the public.  In the case that
your local network's gateway has that information, the outsider may get the correct
IP of the alias.

Alpha Linux wrote:

> I don't know if this was ever mentioned before or not, but I set up a
> couple of aliases.  Everything seems to work for machines on the local
> network.  I can telnet to the aliases and lynx to them and everything.
> The problem is  from networks that are across my gateway.  They do not see
> the aliases.  They cannot connect to them or anything.  Does anyone know
> what I need to do to get other networks to see my aliases.  I suspect
> another route, but I am not really sure.
>
> RedHat 4.2 Biltmore
> Noname 266
> 2.0.30 kernel, net-tools-1.421.tar
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
>           UP BROADCAST LOOPBACK RUNNING  MTU:7168  Metric:1
>           RX packets:10834 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:10834 errors:0 dropped:0 overruns:0 carrier:0 coll:0
>
> eth0      Link encap:Ethernet  HWaddr 08:00:2B:E5:F0:63
>           inet addr:129.89.121.10  Bcast:129.89.121.255 Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:1088964 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1959391 errors:0 dropped:0 overruns:0 carrier:0 coll:10731
>           Interrupt:10 Base address:0xb000
>
> eth0:0    Link encap:Ethernet  HWaddr 08:00:2B:E5:F0:63
>           inet addr:129.89.121.12  Bcast:129.89.121.255 Mask:255.255.255.0
>           UP BROADCAST RUNNING  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0
>
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref  UseIface
> 129.89.121.12   0.0.0.0         255.255.255.255 UH    0      0    0  eth0:0
> 129.89.121.0    0.0.0.0         255.255.255.0   U     0      0    97 eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0    11 lo
> 0.0.0.0         129.89.121.1    0.0.0.0         UG    0      0    612eth0
>
> I would really appreciate any help you can give me.
>
> thanks
>
> kevin
>
> --
> 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

--------------2E2D4EF0698262D5FE18E927
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for CHANG SHEN
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             CHANG SHEN
n:              SHEN;CHANG
org:            LMMSS
email;internet: CHANG.SHEN@maf.nasa.gov
title:          Senior Engineer
tel;work:       504.257.3321
note:           My opinion is my own.  
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard

--------------2E2D4EF0698262D5FE18E927--

--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: IP aliasing
@ 1997-10-03 11:40 Alan Wood
  0 siblings, 0 replies; 10+ messages in thread
From: Alan Wood @ 1997-10-03 11:40 UTC (permalink / raw)


Kevin,

 the setup looks exactly the same as I have for the 4 aliases on our UDB, all of which 
are fully working (they mainly house the various Web identities, so they need to be
accessible from everywhere.)

 What I would suggest are things like :

    Is .12 used anywhere else ?
    Does the gateway block access to .12 ?
    If it is a problem with the lookup of the DNS, can you access by using telnet 129.89.121.12 ?
    Can they connect to the eth0 address (.10) ? If not, the alias is not the problem.

Alan Wood

----------
From:  Alpha Linux[SMTP:alphaware@soc.uwm.edu]
Sent:  02 October 1997 12:18
To:  axp-list@redhat.com
Subject:  IP aliasing

I don't know if this was ever mentioned before or not, but I set up a
couple of aliases.  Everything seems to work for machines on the local
network.  I can telnet to the aliases and lynx to them and everything.
The problem is  from networks that are across my gateway.  They do not see
the aliases.  They cannot connect to them or anything.  Does anyone know
what I need to do to get other networks to see my aliases.  I suspect
another route, but I am not really sure.

--
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1997-10-03 11:40 UTC | newest]

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

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