[Devel] netns+qdisc+veth
Mathieu Lacage
mathieu.lacage at sophia.inria.fr
Wed Sep 9 00:03:29 PDT 2009
hi,
I am trying to create a network namespace with a vethX device in it and
a special qdisc but without much luck. I wonder if this is something
which is unsupported or is just a bug.
[mathieu at mathieu-laptop netns]$ uname -a
Linux mathieu-laptop 2.6.30.5-43.fc11.x86_64 #1 SMP Thu Aug 27 21:39:52
EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
shell in default namespace:
[mathieu at mathieu-laptop netns]$ sudo ip link add type veth
[mathieu at mathieu-laptop netns]$ sudo tc qdisc add dev veth0 root netem
delay 100ms
[mathieu at mathieu-laptop netns]$ sudo ip link set dev veth0 netns 3104
[mathieu at mathieu-laptop netns]$
shell in other network namespace:
[mathieu at mathieu-laptop netns]$ sudo ./netunshare /bin/bash
[sudo] password for mathieu:
[root at mathieu-laptop netns]# echo $$
3104
[root at mathieu-laptop netns]# sudo ip link show veth0
11: veth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen
1000
link/ether 9a:bb:18:b6:1b:06 brd ff:ff:ff:ff:ff:ff
[root at mathieu-laptop netns]# sudo tc qdisc add dev veth0 root netem
delay 100ms
RTNETLINK answers: Invalid argument
[root at mathieu-laptop netns]#
any kind of idea would be welcome.
Mathieu
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list