[Bug 1295371] Re: ifup activates wrong interfaces

Stéphane Graber stgraber at stgraber.org
Thu Mar 20 21:26:20 UTC 2014


** Package changed: ifupdown (Ubuntu) => vlan (Ubuntu)

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

Title:
  ifup activates wrong interfaces

Status in “vlan” package in Ubuntu:
  New

Bug description:
  
  When using ifup to activate one vlan interface defined in /etc/network/interfaces, ifup brings up all the vlan interfaces even if ifup -a was not issued. This is trivial to reproduce. Expectation is that ifup ethX.Y will only bring up ethX.Y and not ethX.Z as well.

  1- Started with the following in /etc/network/interfaces:

  auto lo
  iface lo inet loopback

  auto eth0
  iface eth0 inet dhcp

  auto eth0.101
  iface eth0.101 inet static
          address 192.168.200.2
          netmask 255.255.255.0

  2- Added more vlans to the file

  auto eth0.102
  iface eth0.102 inet static
          address 192.168.201.2
          netmask 255.255.255.0

  auto eth0.103
  iface eth0.103 inet static
          address 192.168.202.2
          netmask 255.255.255.0

  auto eth0.104
  iface eth0.104 inet static
          address 192.168.203.2
          netmask 255.255.255.0

  3- Upped only eth0.102

  root at dixie:~# ifup eth0.102
  Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
  Added VLAN with VID == 102 to IF -:eth0:-
   * Setting up iSCSI targets
     ...done.
  ssh stop/waiting
  ssh start/running, process 2224

  4- Then when upping the other interfaces obtained error that they were
  already up:

  root at dixie:~# ifup eth0.103
  ifup: interface eth0.103 already configured
  root at dixie:~# vi /etc/network/interfaces
  root at dixie:~# ifup eth0.103
  ifup: interface eth0.103 already configured
  root at dixie:~# ifup eth0.104
  ifup: interface eth0.104 already configured

  5- klog shows they were added all on the same second:

  Mar 20 20:45:56 dixie kernel: [12270.182797] eth0.103: no IPv6 routers present
  Mar 20 20:45:56 dixie kernel: [12270.742537] eth0.102: no IPv6 routers present
  Mar 20 20:45:56 dixie kernel: [12270.798510] eth0.104: no IPv6 routers present

  6- Added more interfaces to the interfaces file:

  auto eth0.105
  iface eth0.105 inet static
          address 192.168.205.2
          netmask 255.255.255.0

  auto eth0.106
  iface eth0.106 inet static
          address 192.168.206.2
          netmask 255.255.255.0

  auto eth0.107
  iface eth0.107 inet static
          address 192.168.207.2
          netmask 255.255.255.0

  7- Upped only eth0.105, but eth0.106 and eth0.107 also come up:

  root at dixie:~# ifup eth0.105
  Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
  Added VLAN with VID == 105 to IF -:eth0:-
   * Setting up iSCSI targets
     ...done.
  ssh stop/waiting
  ssh start/running, process 2619

  root at dixie:~#
  Mar 20 20:52:14 dixie ntpdate[2574]: step time server 91.189.89.199 offset -0.009063 sec
  Mar 20 20:52:16 dixie kernel: [12650.777148] eth0.105: no IPv6 routers present
  Mar 20 20:52:16 dixie kernel: [12650.809124] eth0.106: no IPv6 routers present
  Mar 20 20:52:17 dixie kernel: [12651.336879] eth0.107: no IPv6 routers present

  8- Sys info:

  root at dixie:~# apt-cache policy ifupdown
  ifupdown:
    Installed: 0.7~beta2ubuntu10
    Candidate: 0.7~beta2ubuntu10
    Version table:
   *** 0.7~beta2ubuntu10 0
          500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       0.7~beta2ubuntu8 0
          500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
  root at dixie:~# cat /etc/lsb-release 
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=12.04
  DISTRIB_CODENAME=precise
  DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"

  9- messages:

  root at dixie:~# for file in /var/log/upstart/network-interface-eth0.10*; do echo "--- $file"; cat $file; done
  --- /var/log/upstart/network-interface-eth0.101.log
  ifup: interface eth0.101 already configured
  --- /var/log/upstart/network-interface-eth0.102.log
  ifup: interface eth0.102 already configured
  --- /var/log/upstart/network-interface-eth0.103.log
  Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
   * Setting up iSCSI targets
     ...done.
  ssh stop/waiting
  ssh start/running, process 2438
  --- /var/log/upstart/network-interface-eth0.104.log
  Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
   * Setting up iSCSI targets
     ...done.
  --- /var/log/upstart/network-interface-eth0.105.log
  ifup: interface eth0.105 already configured
  --- /var/log/upstart/network-interface-eth0.106.log
  Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
   * Setting up iSCSI targets
     ...done.
  ssh stop/waiting
  ssh start/running, process 2932
  --- /var/log/upstart/network-interface-eth0.107.log
  Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
   * Setting up iSCSI targets
     ...done.

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



More information about the foundations-bugs mailing list