issue with netdevices_up and squeeze

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Mon Dec 13 16:47:57 CET 2010


On Mon, 13 Dec 2010, Thomas Lange wrote:
>
> Below is the output on Debian lenny with iproute  20080725-2.
>
> malzmuehle[~]> ip link show help
> Usage: ip link set DEVICE { up | down |
>                              arp { on | off } |
>                              dynamic { on | off } |
>                              multicast { on | off } |
>                              allmulticast { on | off } |
>                              promisc { on | off } |
>                              trailers { on | off } |
>                              txqueuelen PACKETS |
>                              name NEWNAME |
>                              address LLADDR | broadcast LLADDR |
>                              mtu MTU }
>                              netns PID }
>        ip link show [ DEVICE ]
> malzmuehle[~]> ip link show up
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
>     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
>     link/ether 20:cf:11:44:31:5d brd ff:ff:ff:ff:ff:ff
>
>
> So, even the help does not show that up is supported it works.

'up' above, according to the documentation, is the DEVICE.

So the script uses undocumented features?
In that case a comment saying exactly that would be nice :)
But you don't need it, as the filter removes all but the LOWER_UP
interfaces.

And, by the way... By association the 'down' argument should also
work, shouldn't it?  But it doesn't:

$ ip link show down
Device "down" does not exist.


Cheers,

-- 
Cristian


More information about the linux-fai mailing list