man-pages/man7/network_namespaces.7.html
2021-03-31 01:06:50 +01:00

125 lines
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of NETWORK_NAMESPACES</TITLE>
</HEAD><BODY>
<H1>NETWORK_NAMESPACES</H1>
Section: Linux Programmer's Manual (7)<BR>Updated: 2018-02-02<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
network_namespaces - overview of Linux network namespaces
<A NAME="lbAC">&nbsp;</A>
<H2>DESCRIPTION</H2>
Network namespaces provide isolation of the system resources associated
with networking: network devices, IPv4 and IPv6 protocol stacks,
IP routing tables, firewall rules, the
<I>/proc/net</I>
directory (which is a symbolic link to
<I>/proc/PID/net</I>),
the
<I>/sys/class/net</I>
directory, various files under
<I>/proc/sys/net</I>,
port numbers (sockets), and so on.
In addition,
network namespaces isolate the UNIX domain abstract socket namespace (see
<B><A HREF="/cgi-bin/man/man2html?7+unix">unix</A></B>(7)).
<P>
A 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).
<P>
A virtual network
(<B><A HREF="/cgi-bin/man/man2html?4+veth">veth</A></B>(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
<B><A HREF="/cgi-bin/man/man2html?4+veth">veth</A></B>(4)
devices that it contains are destroyed.
<P>
Use of network namespaces requires a kernel that is configured with the
<B>CONFIG_NET_NS</B>
option.
<A NAME="lbAD">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?1+nsenter">nsenter</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+unshare">unshare</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?2+clone">clone</A></B>(2),
<B><A HREF="/cgi-bin/man/man2html?4+veth">veth</A></B>(4),
<B><A HREF="/cgi-bin/man/man2html?5+proc">proc</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?5+sysfs">sysfs</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?7+namespaces">namespaces</A></B>(7),
<B><A HREF="/cgi-bin/man/man2html?7+user_namespaces">user_namespaces</A></B>(7),
<B><A HREF="/cgi-bin/man/man2html?8+brctl">brctl</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+ip">ip</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+ip-address">ip-address</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+ip-link">ip-link</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+ip-netns">ip-netns</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+iptables">iptables</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+ovs-vsctl">ovs-vsctl</A></B>(8)
<A NAME="lbAE">&nbsp;</A>
<H2>COLOPHON</H2>
This page is part of release 5.05 of the Linux
<I>man-pages</I>
project.
A description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at
<A HREF="https://www.kernel.org/doc/man-pages/.">https://www.kernel.org/doc/man-pages/.</A>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">DESCRIPTION</A><DD>
<DT id="3"><A HREF="#lbAD">SEE ALSO</A><DD>
<DT id="4"><A HREF="#lbAE">COLOPHON</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:09 GMT, March 31, 2021
</BODY>
</HTML>