Here is an example:

piper:~# ip a flush dev eth0                                                    
                #[318]
piper:~# ip a s dev eth0                                                        
                #[319]
5: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 4e:80:ba:7e:34:14 brd ff:ff:ff:ff:ff:ff
piper:~# ip a a 10.0.0.1/16 dev eth0                                            
                #[320]
piper:~# ip a a 10.0.0.1/32 dev eth0
piper:~# ip a a 172.16.0.100/12 dev eth0                                        
                #[321]
piper:~# ip a a 172.16.0.200/12 dev eth0                                        
                #[322]
piper:~# ip a a 192.168.128.127/24 dev eth0                                     
                #[323]
piper:~# ip a a 192.168.128.129/25 dev eth0                                     
                #[324]
piper:~# ip a s dev eth0                                                        
                #[327]
5: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 4e:80:ba:7e:34:14 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/16 scope global eth0
    inet 10.0.0.1/32 scope global eth0
    inet 172.16.0.100/12 scope global eth0
    inet 172.16.0.200/12 scope global secondary eth0
    inet 192.168.128.127/24 scope global eth0
    inet 192.168.128.129/25 scope global eth0

Note how only 172.16.0.200/12 is a secondary address. I can remove
every address individually, but if I remove 172.16.0.100/12, then
172.16.0.200/12 is also deleted. This seems to be because they are
both in the same network, 172.16.0.0/12.

I don't understand the rationale. Either this is a feature, then the
manpage should explain the motivation. Or it's a bug, then it should
be fixed. I hope it's the latter.

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to