Package: ifenslave
Version: 2
Severity: wishlist
Tags: patch

Hi,

a small script in /etc/network/if-up.d would make it possible to put the
slaves list into /etc/network/interfaces. Example:

iface bond0 inet static
        address 192.168.48.157
        netmask 255.255.252.0
        broadcast 192.168.48.255
        gateway 192.168.48.1
        slaves eth0 eth1

So
ifup bond0
would automatically configure the interface, and enslave eth0 and eth1. This is 
the script in
/etc/network/if-up.d:

nimrod:/etc/network# cat if-up.d/ifenslave
#!/bin/sh

if [ -n "$IF_SLAVES" ] ; then
        for S in $IF_SLAVES ; do
                ifconfig $S down
                /sbin/ifenslave $IFACE $S
        done
fi

The script must be executable.


Greetings,
Oliver


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.28
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages ifenslave depends on:
ii  ifenslave-2.4              0.07+2.5.15-7 Attach and detach slave interfaces

-- no debconf information


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

Reply via email to