close_range.2: Glibc added a wrapper recently
[man-pages.git] / man7 / network_namespaces.7
blobaa1b045895a9ec116381af32f14cd493e357f3f5
1 .\" Copyright (c) 2017 by Michael Kerrisk <mtk.manpages@gmail.com>
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\"
26 .TH NETWORK_NAMESPACES 7 2020-06-09 "Linux" "Linux Programmer's Manual"
27 .SH NAME
28 network_namespaces \- overview of Linux network namespaces
29 .SH DESCRIPTION
30 Network namespaces provide isolation of the system resources associated
31 with networking: network devices, IPv4 and IPv6 protocol stacks,
32 IP routing tables, firewall rules, the
33 .I /proc/net
34 directory (which is a symbolic link to
35 .IR /proc/PID/net ),
36 the
37 .I /sys/class/net
38 directory, various files under
39 .IR /proc/sys/net ,
40 port numbers (sockets), and so on.
41 In addition,
42 network namespaces isolate the UNIX domain abstract socket namespace (see
43 .BR unix (7)).
44 .PP
45 A physical network device can live in exactly one
46 network namespace.
47 When a network namespace is freed
48 (i.e., when the last process in the namespace terminates),
49 its physical network devices are moved back to the
50 initial network namespace (not to the parent of the process).
51 .PP
52 A virtual network
53 .RB ( veth (4))
54 device pair provides a pipe-like abstraction
55 that can be used to create tunnels between network namespaces,
56 and can be used to create a bridge to a physical network device
57 in another namespace.
58 When a namespace is freed, the
59 .BR veth (4)
60 devices that it contains are destroyed.
61 .PP
62 Use of network namespaces requires a kernel that is configured with the
63 .B CONFIG_NET_NS
64 option.
65 .\" FIXME .SH EXAMPLES
66 .SH SEE ALSO
67 .BR nsenter (1),
68 .BR unshare (1),
69 .BR clone (2),
70 .BR veth (4),
71 .BR proc (5),
72 .BR sysfs (5),
73 .BR namespaces (7),
74 .BR user_namespaces (7),
75 .BR brctl (8),
76 .BR ip (8),
77 .BR ip\-address (8),
78 .BR ip\-link (8),
79 .BR ip\-netns (8),
80 .BR iptables (8),
81 .BR ovs\-vsctl (8)