From: Mathieu Lacage <mathieu.lacage-0GlwE4rufLnvuXihggDW+w@public.gmane.org>
To: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org
Subject: netns+qdisc+veth
Date: Wed, 09 Sep 2009 09:03:29 +0200 [thread overview]
Message-ID: <1252479809.3029.5.camel@localhost.localdomain> (raw)
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@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@mathieu-laptop netns]$ sudo ip link add type veth
[mathieu@mathieu-laptop netns]$ sudo tc qdisc add dev veth0 root netem
delay 100ms
[mathieu@mathieu-laptop netns]$ sudo ip link set dev veth0 netns 3104
[mathieu@mathieu-laptop netns]$
shell in other network namespace:
[mathieu@mathieu-laptop netns]$ sudo ./netunshare /bin/bash
[sudo] password for mathieu:
[root@mathieu-laptop netns]# echo $$
3104
[root@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@mathieu-laptop netns]# sudo tc qdisc add dev veth0 root netem
delay 100ms
RTNETLINK answers: Invalid argument
[root@mathieu-laptop netns]#
any kind of idea would be welcome.
Mathieu
next reply other threads:[~2009-09-09 7:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-09 7:03 Mathieu Lacage [this message]
[not found] ` <1252479809.3029.5.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-09-09 8:12 ` netns+qdisc+veth Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1252479809.3029.5.camel@localhost.localdomain \
--to=mathieu.lacage-0glwe4ruflnvuxihggdw+w@public.gmane.org \
--cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.