Comment 46 for bug 889423

Revision history for this message
Stéphane Graber (stgraber) wrote :

Here's a quick example of how to test the new vlan package:

 - Make sure uml-utilities and vlan are installed
 - Add the following entry to /etc/network/interfaces:
auto eth9.1010
iface eth9.1010 inet static
    address 192.168.1.1
    netmask 255.255.255.0
 - Create the tap device: tunctl -t eth9
 - Check that the vlan interface has been created and configured correctly: ifconfig eth9.1010
eth9.1010 Link encap:Ethernet HWaddr ce:51:62:98:16:78
          inet addr:192.168.1.1 Bcast:0.0.0.0 Mask:255.255.255.0
          UP 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)

Prior to this update, vlan interface creation would be racy as it'd depend on the catch all networking.conf job to initialise eth9.1010 with the race being that this job would be triggered before eth9 actually exists.