From mboxrd@z Thu Jan 1 00:00:00 1970 From: chris-SqNQQPNds68nxqbYAscKCQ@public.gmane.org Subject: Re: Net containers config and usage Date: Mon, 12 Jan 2009 16:54:36 -0800 Message-ID: <20090113005436.GA26167@versecorp.net> References: <20090112223545.GA15781@versecorp.net> <20090112225140.GA29834@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20090112225140.GA29834-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Serge E. Hallyn" Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org List-Id: containers.vger.kernel.org On Mon, Jan 12, 2009 at 04:51:40PM -0600, Serge E. Hallyn wrote: > > > But I'm having trouble assigning an interface over to that container. > > > > I tried doing: > > # echo > /sys/class/net/eth4/new_ns_pid > > > > But there are no entries in sysfs called new_ns_pid. > > Yeah I'm not sure where that command came from. OK - just FYI, I got that command from http://lxc.sourceforge.net/network.php > To move eth4 into a new > netns, you'd want to do > > ip link set eth4 netns $pid_of_shell_in_ns > > See http://lxc.sourceforge.net/network/configuration.php for > more info. > Trying to use the "ip link set" command, I get a different problem - it reports an RTNETLINK error: [root@C100273 iproute2-2.6.25]# ps aux | grep tcsh root 21918 0.0 0.0 71036 2084 pts/1 S+ 16:47 0:00 -bin/tcsh root 22008 0.0 0.0 61144 716 pts/2 R+ 16:57 0:00 grep tcsh [root@C100273 iproute2-2.6.25]# ip/ip link set eth4 netns 21918 RTNETLINK answers: Invalid argument Any idea what could cause that error? Thanks, Chris