Advertisement
gregmark

OpenStack or Bust, Part 9: ubuntu ip-netns(8) manpage

Mar 15th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. IP-NETNS(8)
  2.  
  3. NAME
  4. ip-netns - process network namespace management
  5.  
  6. SYNOPSIS
  7. ip [ OPTIONS ] netns { COMMAND | help }
  8.  
  9. ip netns { list }
  10.  
  11. ip netns { add | delete } NETNSNAME
  12.  
  13. ip netns exec NETNSNAME command ...
  14.  
  15. DESCRIPTION
  16. A network namespace is logically another copy of the network stack, with it's own routes, firewall rules, and network devices.
  17.  
  18. By convention a named network namespace is an object at /var/run/netns/NAME that can be opened. The file descriptor resulting from opening /var/run/netns/NAME refers to the
  19. specified network namespace. Holding that file descriptor open keeps the network namespace alive. The file descriptor can be used with the setns(2) system call to change
  20. the network namespace associated with a task.
  21.  
  22. The convention for network namespace aware applications is to look for global network configuration files first in /etc/netns/NAME/ then in /etc/. For example, if you want a
  23. different version of /etc/resolv.conf for a network namespace used to isolate your vpn you would name it /etc/netns/myvpn/resolv.conf.
  24.  
  25. ip netns exec automates handling of this configuration, file convention for network namespace unaware applications, by creating a mount namespace and bind mounting all of the
  26. per network namespace configure files into their traditional location in /etc.
  27.  
  28. ip netns list - show all of the named network namespaces
  29. ip netns add NAME - create a new named network namespace
  30. ip netns delete NAME - delete the name of a network namespace
  31. ip netns exec NAME cmd ... - Run cmd in the named network namespace
  32. EXAMPLES
  33. SEE ALSO
  34. ip(8)
  35.  
  36. AUTHOR
  37. Original Manpage by Eric W. Biederman
  38.  
  39. iproute2 20 Dec 2011 IP-NETNS(8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement