Lines Matching +full:network +full:- +full:name
1 .TH IP\-NETNS 8 "16 Jan 2013" "iproute2" "Linux"
2 .SH NAME
3 ip-netns \- process network namespace management
23 .B ip [-all] netns del
49 A network namespace is logically another copy of the network stack,
50 with its own routes, firewall rules, and network devices.
52 By default a process inherits its network namespace from its parent. Initially all
53 the processes share the same default network namespace from the init process.
55 By convention a named network namespace is an object at
59 refers to the specified network namespace. Holding that file
60 descriptor open keeps the network namespace alive. The file
63 system call to change the network namespace associated with a task.
65 For applications that are aware of network namespaces, the convention
66 is to look for global network configuration files first in
72 for a network namespace used to isolate your vpn you would name it
76 automates handling of this configuration, file convention for network
78 bind mounting all of the per network namespace configure files into
82 .B ip netns list - show all of the named network namespaces
84 This command displays all of the network namespaces in /var/run/netns
87 .B ip netns add NAME - create a new named network namespace
89 If NAME is available in /var/run/netns/ this command creates a new
90 network namespace and assigns NAME.
93 .B ip [-all] netns delete [ NAME ] - delete the name of a network namespace(s)
95 If NAME is present in /var/run/netns it is umounted and the mount
96 point is removed. If this is the last user of the network namespace the
97 network namespace will be freed and all physical devices will be moved to the
98 default one, otherwise the network namespace persists until it has no more
103 .B -all
104 option was specified then all the network namespace names will be removed.
136 .B ip netns set NAME NETNSID - assign an id to a peer network namespace
138 This command assigns a id to a peer network namespace. This id is valid
139 only in the current network namespace.
146 .B ip netns identify [PID] - Report network namespaces names for process
148 This command walks through /var/run/netns and finds all the network
149 namespace names for network namespace of the specified process, if PID is
153 .B ip netns pids NAME - Report processes in the named network namespace
156 the named network namespace as their primary network namespace.
159 .B ip [-all] netns exec [ NAME ] cmd ... - Run cmd in the named network namespace
161 This command allows applications that are network namespace unaware
162 to be run in something other than the default network namespace with
163 all of the configuration for the specified network namespace appearing
164 in the customary global locations. A network namespace and bind mounts
165 are used to move files from their network namespace specific location
169 .B -all
172 will be executed synchronously on the each named network namespace even if
174 fails on some of them. Network namespace name is printed on each
179 .B ip netns monitor - Report as network namespace names are added and deleted
181 This command watches network namespace name addition and deletion events
185 .B ip netns list-id - list network namespace ids (nsid)
187 Network namespace ids are used to identify a peer network namespace. This
188 command displays nsid of the current network namespace and provides the
189 corresponding iproute2 netns name (from /var/run/netns) if any.
195 Shows the list of current named network namespaces
200 Creates a network namespace and names it vpn
205 Bring up the loopback interface in the vpn network namespace.