[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 16:27:24 +0100 (CET)
Cc: Hasso Tepper <hasso@xxxxxxxxx>, Harald Welte <laforge@xxxxxxxxxxxx>, Neil Horman <nhorman@xxxxxxxxxx>, linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <41C2F6E5.5010607@xxxxxxxxxxxxxxx>
References: <41912F7A.6000408@xxxxxxxxxx> <200412161153.51251.hasso@xxxxxxxxx> <Pine.LNX.4.61.0412161103320.30452@xxxxxxxxxxxxxxxxxxxxx> <200412161302.42357.hasso@xxxxxxxxx> <41C2F6E5.5010607@xxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Fri, 17 Dec 2004, Andrea G Forte wrote:

Yes, using the same concept used in Junos would make things much easier. On top of this, when I change the primary IP, it takes about 500ms to see the change applied which is critical for real time applications. Using more than one primary IP would solve this as well.

Also it seems that if I have a primary address and a secondary one (alias), even though I make the primary address invalid (trying to force the kernel to use the secondary first), the kernel still tries the primary first regardless of its validity (I set the primary IP to

Which source IP is used by the kernel is determined primary by your routing tables.

The requirements for an IP address to be allowed to be used in the routing table is that the IP address does exists on any of your interfaces, either as primary or secondary.

When you add/delete a primary address to a interface the kernel automatically adds/deletes routes accordingly, including source IP address selection.

If the routing table does not have information about which source IP address to use for this traffic then the kernel searches the interface for a valid primary address.


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