All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Krishna Vamsi-B22174 <avamsi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: Network Namespace-1000 networks with Overlap Addresses
Date: Tue, 14 Apr 2009 09:37:12 -0500	[thread overview]
Message-ID: <20090414143712.GC6072@us.ibm.com> (raw)
In-Reply-To: <B2EBF6E450E65C4F8CFEE8947E1905600298E2FF-ofAVchDyotZeePcQ0jRo1pjmvxFtTJ+o0e7PPNI6Mm0@public.gmane.org>

Quoting Krishna Vamsi-B22174 (avamsi-KZfg59tc24xl57MIdRCFDg@public.gmane.org):
> 
> 
> Hi,
> 
> I am a newbie  to this list.  Here is my use case , we have  Loadable
> Kernel Module which applies security to
> the packets arriving from 1000 networks with overlap addresses. There
> are 3 different  user space process which handles 
> control traffic  from these 1000 networks .   
> 
> Please let me know
> 
> 1)How to create a Network Namespace Object ?

clone(CLONE_NEWNET)

> 2)How to delete a Network Namespace Object ?

exit

> 3)Can these 3  user space process see all the Network Namespace objects
> created in the kernel ?

No, network namespaces are fully isolated.  A virtual nic can only exist
in one network namespace, and physical nics can only exist in the
initial network namespace.

>  If so, how can they access these objects?
> 4)How to group 2-3 interfaces under a particular Network Namespace ?

I don't understand the question, but you pass a veth endpoint into a
network namespace using

	/sbin/ip link set veth1 netns $pid_in_other_netns

> Is there any patch available to achieve the above use case ?

You can use liblxc (available from lxc.sf.net) or libvirt-lxc
(libvirt.org).

-serge

  parent reply	other threads:[~2009-04-14 14:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-14  2:40 Network Namespace-1000 networks with Overlap Addresses Krishna Vamsi-B22174
     [not found] ` <B2EBF6E450E65C4F8CFEE8947E1905600298E2FF-ofAVchDyotZeePcQ0jRo1pjmvxFtTJ+o0e7PPNI6Mm0@public.gmane.org>
2009-04-14 14:37   ` Serge E. Hallyn [this message]
     [not found]     ` <20090414143712.GC6072-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-04-22 10:57       ` Eric W. Biederman
     [not found]       ` <m11vrlvtva.fsf-+imSwln9KH6u2/kzUuoCbdi2O/JbrIOy@public.gmane.org>
2009-04-23  8:26         ` Babu N
     [not found]           ` <200904230820.n3N8KgXW027602-/sMIUUHvcVm7KQohPwX1u+lZC/4ptaCc@public.gmane.org>
2009-04-23  8:39             ` Daniel Lezcano
     [not found]               ` <49F02947.3060602-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-04-23  8:58                 ` Daniel Lezcano
     [not found]                 ` <49F02DB6.8020309-GANU6spQydw@public.gmane.org>
2009-04-23  9:48                   ` Babu N

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=20090414143712.GC6072@us.ibm.com \
    --to=serue-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
    --cc=avamsi-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@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.