netdev
[Top] [All Lists]

Re: primary and secondary ip addresses

To: Andrea G Forte <andreaf@xxxxxxxxxxxxxxx>
Subject: Re: primary and secondary ip addresses
From: Henrik Nordstrom <hno@xxxxxxxxxxxxxxx>
Date: Fri, 17 Dec 2004 20:17:07 +0100 (CET)
Cc: Hasso Tepper <hasso@xxxxxxxxx>, Harald Welte <laforge@xxxxxxxxxxxx>, Neil Horman <nhorman@xxxxxxxxxx>, linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <41C314BC.3060507@xxxxxxxxxxxxxxx>
References: <41912F7A.6000408@xxxxxxxxxx> <200412161153.51251.hasso@xxxxxxxxx> <Pine.LNX.4.61.0412161103320.30452@xxxxxxxxxxxxxxxxxxxxx> <200412161302.42357.hasso@xxxxxxxxx> <41C2F6E5.5010607@xxxxxxxxxxxxxxx> <Pine.LNX.4.61.0412171621200.15793@xxxxxxxxxxxxxxxxxxxxx> <41C30212.6000906@xxxxxxxxxxxxxxx> <Pine.LNX.4.61.0412171736210.17463@xxxxxxxxxxxxxxxxxxxxx> <41C314BC.3060507@xxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Fri, 17 Dec 2004, Andrea G Forte wrote:

Well, when I assign a new IP (for a new subnet) to the same interface (using ip route add...), even though the routing table is updated, it still takes about 500ms for the change to happen. This new IP should be detected as primary, right?

If it is on a new subnet yes.

Also, am I right to say that any IP address assigned to an alias interface is a secondary IP?

It is irrelevant if you label the address or not. The "alias" labels are just a compatibility layer to work with old userspace programs (mainly ifconfig), not interfaces of their own.

See /sbin/ip addr for all the details.

Regards
Henrik


<Prev in Thread] Current Thread [Next in Thread>