*** This bug is a duplicate of bug 876829 ***
    https://bugs.launchpad.net/bugs/876829

Björne asked net-tools upstream about this bug, I asked him to open an
Ubuntu bug. Here is my analysis about this problem, which seems to be a
regression if ifupdown:

----
I have looked at your [Blörne's] provided files. The problem we are seeing here 
is the fact, that ifconfig is not able to list multiple ip addresses added to a 
single network interface. This is a known problem and will likely not be fixed 
in ifconfig, since the new tool "ip addr" is supposed to replace it.
 
However, with named alias interfaces (eth0:0) it is supposed to work. The ifup 
configuration you have does however not create a named interface but adds two 
addesses to the primary interface:
 
>From your output files:
 
Wrong:
 
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
    inet 192.168.0.13/24 brd 192.168.0.255 scope global eth0
    inet 172.16.1.13/24 brd 172.16.1.255 scope global eth0
 
Correct (after using ifconfig):
 
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
    inet 192.168.0.13/24 brd 192.168.0.255 scope global eth0
    inet 172.16.1.13/24 brd 172.16.1.255 scope global eth0:0
 
ifupdown is using "ip addr" command. However even with the "ip addr" command it 
is possible to set up a "working" alias interface:
 
"ip addr add 172.16.1.13 dev eth0:0" creates a wrong configuration (adds second 
ip address but does not set the correct label)
 
"ip addr add 172.16.1.13 dev eth0 label eth0:0" (adds correct label to second 
ip address)
 
I have tried it on a ubuntu machine, the follwing commands will be used:
 
# root@ip-10-98-135-84:/etc/network# ifup -n -a -v
# Configuring interface eth0:0=eth0:0 (inet)
# run-parts --verbose /etc/network/if-pre-up.d
# ip addr add 172.16.1.13/255.255.255.0 broadcast 172.16.1.255     dev eth0:0
# ip link set dev eth0:0   up
# run-parts --verbose /etc/network/if-up.d
 
So it looks like this is a problem in the ifupdown package of ubuntu.
 
I know there was a network-script used to call "ip" in debian and it had 
support for $ALIAS. It looks like the latest version on ubuntu does not use 
that script anymore.
 
I will copy this text to your ubuntu launchpad report, since it is to be fixed 
in the ifupdown package of ubuntu.
 
Gruss
Bernd

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/913858

Title:
  ifconfig don't show all nics when using alias like eth0:0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/913858/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to