ifconfig does not display sub-interfaces (aka: eth0:1 )

Bug #921280 reported by Ron
12
This bug affects 3 people
Affects Status Importance Assigned to Milestone
net-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have noticed a possible regression in ifconfig. When executing # ifconfig , only parent network interfaces are output. ifconfig is failing to display child/sub interfaces (aka. secondary interfaces.)

Also, running "# ifconfig -a" doesn't display the child/sub-interfaces. Although the secondary IP is bound to the parent interface, and functional. The child/sub-interface IP addresses *can* be properly seen on eth0 when using iproute, by running "# ip addr", as expected.

The /etc/network/interfaces file specifies two eth0 interfaces and addresses. Example: (lo entry omitted)

auto eth0
iface eth0 inet static
        address 10.10.10.10
        netmask 255.255.255.0
        broadcast 10.10.10.255
        gateway 10.10.10.1

auto eth0:2
iface eth0:2 inet static
 address 10.10.10.11
 netmask 255.255.255.0

-------------------------

I have observed this on two separate Oneiric-servers, v11.10.

::Critical Details::
Ubuntu Server: Oneiric v11.10
Package net-tools version: 1.60-23ubuntu3
Package ifupdown version: 0.7~alpha5.1ubuntu5

Tags: lucid oneiric
Revision history for this message
Ron (ron-neversleep) wrote :

One additional observation.

When an child/sub-interface is manually created by ifconfig, from the console, ifconfig *DOES* properly display this child interface.

Example Command: "# ifconfig eth0:22 10.10.10.22 netmask 255.255.255.255"

Revision history for this message
Carlos Vicente (cvicente) wrote :

I am observing the same thing.

$ cat /etc/network/interfaces
[...]
auto eth1
iface eth1 inet static
 address 10.10.0.254
 netmask 255.255.255.0
 network 10.10.0.0
 broadcast 10.10.0.255

# our noc interface
auto eth1:0
iface eth1:0 inet static
 address 10.10.0.250
 netmask 255.255.255.0
 network 10.10.0.0
 broadcast 10.10.0.255

$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:01:c0:08:be:87
          inet addr:10.0.1.20 Bcast:10.0.1.255 Mask:255.255.255.0
          inet6 addr: fe80::201:c0ff:fe08:be87/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:15065 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7988 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21580667 (21.5 MB) TX bytes:644456 (644.4 KB)
          Interrupt:40

eth1 Link encap:Ethernet HWaddr 00:01:c0:08:be:88
          inet addr:10.10.0.254 Bcast:10.10.0.255 Mask:255.255.255.0
          inet6 addr: fe80::201:c0ff:fe08:be88/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:1165 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1040 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:170646 (170.6 KB) TX bytes:631042 (631.0 KB)
          Interrupt:41 Base address:0x2000

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:45 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5701 (5.7 KB) TX bytes:5701 (5.7 KB)

wlan0 Link encap:Ethernet HWaddr 00:0d:f0:95:74:07
          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:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

$ ifconfig eth1:0
eth1:0 Link encap:Ethernet HWaddr 00:01:c0:08:be:88
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          Interrupt:41 Base address:0x2000

$ ping 10.10.0.250
PING 10.10.0.250 (10.10.0.250) 56(84) bytes of data.
64 bytes from 10.10.0.250: icmp_req=1 ttl=64 time=0.236 ms
64 bytes from 10.10.0.250: icmp_req=2 ttl=64 time=0.110 ms
64 bytes from 10.10.0.250: icmp_req=3 ttl=64 time=0.124 ms
^C

$ uname -a
Linux noc 3.0.0-12-generic-pae #20-Ubuntu SMP Fri Oct 7 16:37:17 UTC 2011 i686 i686 i386 GNU/Linux

Revision history for this message
Thomas Hood (jdthood) wrote :
Changed in net-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Thomas Hood (jdthood) wrote :

Related Debian bug report is http://bugs.debian.org/324306.

Revision history for this message
Thomas Hood (jdthood) wrote :

FWIW I couldn't immediately reproduce the problem in Quantal. First I added an "iface eth0:0" to /etc/network/interfaces and ifup'ped this and ifconfig did show both eth0 and eth0:0. Then I did "ip -4 addr add 10.0.0.67/24 dev eth0 brd + scope global label eth0:0" and once again ifconfig subsequently showed both eth0 and eth0:0.

tags: added: lucid oneiric
Revision history for this message
Ron (ron-neversleep) wrote :

This may have been fixed in an update. I found an old 11.10 server which '# ifconfig -a', displays properly, and I have also verified proper function on Quantal 12.10.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.