|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|
|References:||<41912F7A.email@example.com> <firstname.lastname@example.org> <Pine.LNX.email@example.com> <firstname.lastname@example.org> <41C2F6E5.email@example.com>|
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 0.0.0.0).
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>|
|Previous by Date:||Re: primary and secondary ip addresses, Andrea G Forte|
|Next by Date:||Re: [Coverity] Untrusted user data in kernel, James Morris|
|Previous by Thread:||Re: primary and secondary ip addresses, Andrea G Forte|
|Next by Thread:||Re: primary and secondary ip addresses, Andrea G Forte|
|Indexes:||[Date] [Thread] [Top] [All Lists]|