4

When creating a namespace with ip netns add <namespace> the namespace and it's related config is deleted on reboot along with created interfaces like veth pairs. What is the correct way to:

  1. Create network namespaces on boot (or create persistent namespace configuration if that's a more correct way to put it?)

  2. Create veth pairs on boot, set them to the appropriate namespace, bring them up and configure IP address?

  3. Bring a physical interface up without assigning it an IP address so I can add it to an Open vSwitch (I have added iface <name> inet manual to /etc/network/interface, is this the right way?)

Any help would be appreciated along with references to proper documentation or explanations.

  • Which distro are you running? – derobert May 16 '16 at 15:47
  • Ubuntu server 16.04 – evgeni tsvetanov May 19 '16 at 8:12
  • I do not know specifically about Ubuntu but all distributions allow you normally to attach hooks to interfaces/network being put up or down, so you should use that to run a script of yours that would setup the namespace on the other things you need. – Patrick Mevzek Nov 26 '17 at 16:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.