Package: ifupdown
Version: 0.6.8
Severity: important

There is problem on etch in ifupdown that start the post-up hook of 
/etc/network/interfaces before /etc/network/if-up.d/* scripts.
Here is a exemple with a bonding interface.

/etc/network/interfaces:

auto bond0
iface bond0 inet static
        pre-up modprobe bond0 miimon=100
        slaves eth0 eth1
        address 10.10.12.2
        netmask 255.255.255.0
        post-up echo "arp"; arp -v -i $IFACE -s 10.10.12.254 00:12:F2:8F:FD:00 
|| true
        post-up echo "ip route"; ip route add default via 10.10.12.254 dev 
$IFACE table 91 || true
        pre-down ip route del default table 91 || true
        post-down rmmod bond0

I add a echo in the /etc/network/if-up.d/ifenslave script to trace ifenslave 
action. Here is the output of an networking restart:
Reconfiguring network interfaces...
arp
arp: SIOCSARP()
ip route
Slaving eth0
Slaving eth1
done.

As seeing the post-up hooks are run before ifenslave script, so I cannot do the 
arp trick as interface does not exists, and even if I force it deleted when 
interface come up.
This is maybe a wanted thing but It does not seems intuitive to me. 
(/etc/network/if-up.d/ should maybe renamed /etc/network/if-post-up.d/ ?) Or I 
just miss something...

Thanks.


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22.6-sj-std-p4-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages ifupdown depends on:
ii  debconf [debconf-2.0]  1.5.11            Debian configuration management sy
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii  lsb-base               3.1-23.2etch1     Linux Standard Base 3.1 init scrip
ii  net-tools              1.60-17           The NET-3 networking toolkit

ifupdown recommends no packages.

-- 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