Re: ip address delete bug?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alexey Toptygin schrieb:
On Tue, 4 Oct 2005, Carl-Daniel Hailfinger wrote:

OK, I found out that this is documented behaviour, although the hint is not in the man page.

If it's not in the man page, then where is the below quote from?

ip-cref.tex.

"secondary --- this address is not used when selecting the default source address for outgoing packets. An IP address becomes secondary if another address within the same prefix (network) already exists. The first address within the prefix is primary and is the tag address for the group of all the secondary addresses. When the primary address is deleted all of the secondaries are purged too."

That means there is no way to change the IP of an interface if the prefix and network size stay the same. Are there any plans to fix that?

What's wrong with delete followed by add?

You are logged into the machine via ssh on eth0. You delete the ip address of eth0. How are you going to add the new address to eth0 now that your connection is gone? Go to the server room and use the console?

Normally, I would add the new IP to eth0, start another ssh to the new IP, log out from the session to the old IP, remove the old IP from eth0 and be done. If I want the server to be reachable under both IPs during a transition period, I can delay deletion of the old IP until later.

This thread started on netdev, so I'm cc-ing that, in case someone doesn't read both lists.

Didn't start there, but if netdev is interested, we can keep them in cc.


            Alexey

Regards,
Carl-Daniel
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux