Not found locally for network_namespaces. Try Google search
network_namespaces - overview of Linux network namespaces
| Use Case | Command | Description |
|---|---|---|
| π Create new network namespace | ip netns add <name> | Create a named network namespace for isolation |
| βΆοΈ Run command in namespace | ip netns exec <name> <cmd> | Execute command within a specific network namespace |
| π Link veth pair | ip link add veth0 type veth peer name veth1 | Create virtual ethernet pair to connect namespaces |
| π¦ Move device to namespace | ip link set <dev> netns <name> | Assign a network device to a namespace |
| π List namespaces | ip netns list | Show all network namespaces on the system |
Network namespaces provide isolation of the system resources associated with networking:
/proc/net directory (symbolic link to /proc/PID/net)/sys/class/net directory/proc/sys/netA physical network device can live in exactly one network namespace. When a network namespace is freed (i.e., when the last process in the namespace terminates), its physical network devices are moved back to the initial network namespace (not to the parent of the process).
A virtual network (veth(4)) device pair provides a pipe-like abstraction that can be used to create tunnels between network namespaces, and can be used to create a bridge to a physical network device in another namespace. When a namespace is freed, the veth(4) devices that it contains are destroyed.
Use of network namespaces requires a kernel that is configured with the CONFIG_NET_NS option.
This page is part of release 5.10 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
Generated by phpman v4.10.0-16-g1a0e228 Author: Che Dong Under GNU General Public License
2026-09-22 17:26 @216.73.217.0
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)