Package: iproute2
Version: 3.10.0-1
Severity: normal
Tags: upstream

Hi.

Not sure wheter this is actually an issue or not:

When using ifconfig, respectively the old schema via /e/n/interfaces
to set up secondary IP addresses like this:
iface eth0:1 inet static
        address 84.16.242.145
        netmask 255.255.255.0

it will also automatically calculate the broadcast address:
e.g.
eth0:1    Link encap:Ethernet  HWaddr 82:a7:3a:36:38:27  
          inet addr:84.16.242.145  Bcast:84.16.242.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1


It seems that with iproute/ip this no longer happens for such secondary 
addresses,
i.e. when doing:
 ip addr add 1.2.3.4/27 dev eth0 label eth0:0
I'd get:
    inet 1.2.3.4/27 brd 0.0.0.0 scope global secondary eth0:0
       valid_lft forever preferred_lft forever

I really have to set it manually as in
ip addr add 1.2.3.4/27 broadcast 1.2.3.4 dev eth0 label eth0:0
to get
    inet 1.2.3.4/27 brd 1.2.3.223 scope global secondary eth0:0
       valid_lft forever preferred_lft forever


But as said... I'm not sure whether this is intended at all or a feature.

Cheers,
Chris.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to