Unix and Linux Discussions Tagged with network |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
24 |
25,248 |
AIX |
|
|
|
2 |
5,684 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,150 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,569 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
31,669 |
Cybersecurity |
|
|
|
13 |
19,060 |
Programming |
|
|
|
2 |
2,666 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
17,967 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
3,117 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
20,853 |
Solaris |
|
|
|
0 |
2,907 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
19,658 |
Debian |
|
|
|
2 |
1,486 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,700 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,386 |
Solaris |
|
|
|
11 |
4,465 |
Shell Programming and Scripting |
|
|
|
8 |
9,032 |
AIX |
|
|
|
6 |
1,798 |
Shell Programming and Scripting |
|
|
|
2 |
5,142 |
Shell Programming and Scripting |
|
|
|
0 |
1,965 |
Shell Programming and Scripting |
|
|
|
3 |
23,486 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
1,886 |
Shell Programming and Scripting |
|
|
|
12 |
22,241 |
IP Networking |
|
|
|
1 |
3,778 |
AIX |
|
|
|
3 |
19,768 |
Emergency UNIX and Linux Support |
|
|
|
0 |
2,638 |
IP Networking |
|
|
|
20 |
6,762 |
IP Networking |
|
|
|
3 |
3,083 |
Shell Programming and Scripting |
|
|
|
5 |
3,094 |
Shell Programming and Scripting |
|
|
|
10 |
7,892 |
Cybersecurity |
|
|
|
5 |
5,246 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,574 |
Linux |
|
|
|
1 |
3,152 |
Red Hat |
|
|
|
1 |
2,385 |
SCO |
|
|
|
11 |
4,865 |
Solaris |
|
|
|
4 |
2,447 |
Solaris |
|
|
|
17 |
4,990 |
Solaris |
|
|
|
7 |
64,612 |
IP Networking |
|
|
|
0 |
5,486 |
Solaris |
|
|
|
4 |
4,743 |
Red Hat |
IP-NETNS(8) Linux IP-NETNS(8)
NAME
ip-netns - process network namespace management
SYNOPSIS
ip [ OPTIONS ] netns { COMMAND | help }
ip netns { list }
ip netns { add | delete } NETNSNAME
ip netns exec NETNSNAME command ...
DESCRIPTION
A network namespace is logically another copy of the network stack, with it's own routes, firewall rules, and network devices.
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 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 the network namespace associated with a task.
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 different version of /etc/resolv.conf for a network namespace used to isolate your vpn you would name it
/etc/netns/myvpn/resolv.conf.
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 per network namespace configure files into their traditional location in /etc.
ip netns list - show all of the named network namespaces
ip netns add NAME - create a new named network namespace
ip netns delete NAME - delete the name of a network namespace
ip netns exec NAME cmd ... - Run cmd in the named network namespace
EXAMPLES
SEE ALSO
ip(8)
AUTHOR
Original Manpage by Eric W. Biederman
iproute2 20 Dec 2011 IP-NETNS(8)