12 Aug
2010
12 Aug
'10
12:51 p.m.
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! -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG