Package: ifupdown
Version: 0.6.4-4.12
Severity: normal

Abstract:

    "ifup -a" does not handle all interfaces defined with their
              own "auto" stanza.

Workaround:

    Add all interfaces into a single "auto" stanza.

Detailed report:

interfaces(5) says:

       Stanzas beginning with the word "auto" are used to identify the
       physical interfaces to be brought up when ifup is run with  the
       -a option.  (This option is used by the system boot scripts.)
       
       Physical interface names should follow the word "auto" on the
       same line.  There can be multiple "auto" stanzas. ifup brings
       the named interfaces up in the order listed.

So it should not make a difference whether the interfaces are defined
within the same "auto" stanza or in seperate stanzas.

In our case, we have the interfaces lo, eth0 and sixxs defined within
one "auto" stanza for each in /etc/network/interfaces - but "ifup -a"
only brings up lo and eth0 and does not touch sixxs.

The /etc/network/interfaces (with the addresses changed):

-------<snip>----------------------------------------------------------
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address   10.0.0.1
        netmask   255.0.0.0
        network   10.0.0.0
        broadcast 10.255.255.255
                                
auto sixxs
iface sixxs inet6 v4tunnel
        address  2001:1111:1111:2222::2
        netmask  64
        local    10.0.0.1
        endpoint 10.0.0.2
        ttl      64
        up       ip link set mtu 1280 dev sixxs
        up       ip -6 route add default via 2001:1111:1111:2222::1 dev sixxs
-------<snip>----------------------------------------------------------

If, however, we comment out all those "auto" stanzas and add a single
one

     auto lo eth0 sixxs
     
at the beginning of the /etc/network/interfaces file, "ifup -a" now
brings up all three devices lo, eth0, and sixxs.

A comparison test with "ifdown -a" suggests that "ifdown -a" behaves
according to interfaces(5) and does not make that distinction.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages ifupdown depends on:
ii  debconf [debconf-2.0]       1.4.30.11    Debian configuration management sy
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  net-tools                   1.60-10      The NET-3 networking toolkit

-- debconf information:
  ifupdown/convert-interfaces: true


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to