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 17:39:47 +0100 (CET)
Cc: Hasso Tepper <hasso@xxxxxxxxx>, Harald Welte <laforge@xxxxxxxxxxxx>, Neil Horman <nhorman@xxxxxxxxxx>, linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <41C30212.6000906@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>
Sender: netdev-bounce@xxxxxxxxxxx
On Fri, 17 Dec 2004, Andrea G Forte wrote:

This does not help, since if I want to use my secondary IP address instead of my primary, I cannot delete the primary otherwise all of my secondary IPs are lost as well (and since I can only have only one primary IP address).

Why change the primary address? What is wrong with simply changing the route to use the other source IP?

-If I use a secondary IP and try to invalidate the primary (i.e. by removing its routing table entry), it takes about 500ms for the actual change (data packets sent on the secondary IP instead of the primary) to take effect.

This is most likely the routing cache or something.

I honestly do not understand what harm could do to have more than one primary address, especially on different subnets.

How it works today is that the first IP you add in a subnet becomes a primary, any additional IPs you add in the same subnet becomes secondary. You can have any number of primary IPs with each any number of secondary IPs, the primary IPs just can't be in the same subnet.

Regards
Henrik


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