On 06/08/10 11:29, Brett Parker wrote:
#!/bin/sh set -e
if [ "$IFACE" = "eth0" ]; then ip addr add 192.168.20.117/24 dev $IFACE fi
Just discovered that this doesn't seem to work correctly; I need ip addr add 192.168.20.117/24 dev $IFACE label $IFACE:0 In contrast, ifconfig $IFACE add 192.168.20.117 netmast 255.255.255.0 works (it creates its own label), but ifconfig $IFACE add 192.168.20.117/24 doesn't.
Odd!