[1863] in linux-net channel archive
Re: new ip-alias in 1.3.59
daemon@ATHENA.MIT.EDU (Juan Jose Ciarlante)
Tue Feb 6 09:17:19 1996
Date: Tue, 6 Feb 1996 09:58:59 +0400 (MDZ)
From: Juan Jose Ciarlante <jjciarla@raiz.uncu.edu.ar>
To: Eric Hester <erich@basenet.com>
cc: linux-net@vger.rutgers.edu
In-Reply-To: <199602040526.AAA16942@basenet.basenet.com>
On Sun, 4 Feb 1996, Eric Hester wrote:
> I just starting playing with the alias support in 1.3.59.. I figured out
> that you do ifconfig eth0:1 a.b.c.d to setup the device, but the problem
> is.. I do that (with the right netmask and broadcast commands) and when I
> try a telnet to the address assigned to the alias I get a timeout... do I
> have to put a static route in or an arp entry or something? (I dont think
> the arp is neccesary since it seems to proxy arp off the real eth0)... can
> anybody help?
>
Don't forget that if you don't add a *route* to the device, the ip layer
will ignore it. No arp entries are needed, net_alias implementation handles
arp.
_If_ the new alias belongs to the same eth0 logical network (eg a.b.c.0
through eth0) when you send a pkt to a.b.c.d, it will be handled by
eth0. This will result in an ARP request, and the ARP layer will complain
"ARP request for own IP address".
You must:
# route add -host a.b.c.d dev eth0:1
~~~~~~ -> may be unnecessary
Of course, if a.b.c.0 _IS_ a diff. logical network,
# route add -net a.b.c.0 dev eth0:1
Cheers ...
2
-- Juanjo, J C