netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* add ip to interface as primary ip address, not secondary ip when there is alreadly primary ip?
@ 2013-09-17 22:31 Vincent Li
  2013-09-18  0:29 ` Cong Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Vincent Li @ 2013-09-17 22:31 UTC (permalink / raw)
  To: netdev@vger.kernel.org

Hi,

we need to add  more than one ip address to one interface, but want to
be able to specify which ip address to be primary and which to be
secondary (be deterministic) , what we have found out is that the
first ip address added to the interface will be always the primary ip
address, the primary or secondary is depending on which ip get added
to the interface first.

we could also delete an existing primary ip address, then the
secondary ip will be promoted to primary.

ideally though, we would like to have the capability in
kernel/userspace  to specify a flag or something to add any ip as
primary even if there is already existing primary ip address (could
downgrade the existing primary to secondary ip). does this make sense
?

Vincent

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-20  3:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 22:31 add ip to interface as primary ip address, not secondary ip when there is alreadly primary ip? Vincent Li
2013-09-18  0:29 ` Cong Wang
2013-09-19 16:54   ` Vincent Li
2013-09-20  2:28     ` Cong Wang
2013-09-20  3:53       ` Vincent Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).