[Bug 4862] New: ip: incorrect handling of "ip link add link" with address set

bugzilla at busybox.net bugzilla at busybox.net
Tue Mar 6 18:05:32 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=4862

           Summary: ip: incorrect handling of "ip link add link" with
                    address set
           Product: Busybox
           Version: 1.19.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: d77190 at mail.ru
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


using busybox 1.19.4:

iputils ip:
#/usr/sbin/ip link add link eth0.143 address 00:22:76:13:E8:C1 eth0.143e0 type
macvlan
#ifconfig eth0.143e0
eth0.143e0 Link encap:Ethernet  HWaddr 00:22:76:13:E8:C1
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

#ip link del eth0.143e0

busybox ip:
#ip link add link eth0.143 address 00:22:76:13:E8:C1 eth0.143e0 type macvlan
#ifconfig eth0.143e0
eth0.143e0 Link encap:Ethernet  HWaddr D6:F1:73:D0:24:55
                                ^^^^^^^^^^^^^^^^^^^^^^^^ - random ether instead
of specified one
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

#ip link del eth0.143e0

if we need to set address in busybox, we will need to specify it one more time:
#ip link set eth0.143e0 address 00:22:76:13:E8:C1

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list