Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

network_namespaces(7) [opendarwin man page]

NETWORK_NAMESPACES(7)					     Linux Programmer's Manual					     NETWORK_NAMESPACES(7)

network_namespaces - overview of Linux network namespaces DESCRIPTION
Network namespaces provide isolation of the system resources associated with networking: network devices, IPv4 and IPv6 protocol stacks, IP routing tables, firewall rules, the /proc/net directory (which is a symbolic link to /proc/PID/net), the /sys/class/net directory, various files under /proc/sys/net, port numbers (sockets), and so on. 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). 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. SEE ALSO
nsenter(1), unshare(1), clone(2), veth(4), proc(5), sysfs(5), namespaces(7), user_namespaces(7), brctl(8), ip(8), ip-address(8), ip- link(8), ip-netns(8), iptables(8), ovs-vsctl(8) COLOPHON
This page is part of release 4.15 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 Linux 2018-02-02 NETWORK_NAMESPACES(7)

Check Out this Related Man Page

veth(4) 						     Linux Programmer's Manual							   veth(4)

veth - Virtual Ethernet Device DESCRIPTION
The veth devices are virtual Ethernet devices. They can act as tunnels between network namespaces to create a bridge to a physical network device in another namespace, but can also be used as standalone network devices. veth devices are always created in interconnected pairs. A pair can be created using the command: # ip link add <p1-name> type veth peer name <p2-name> In the above, p1-name and p2-name are the names assigned to the two connected end points. Packets transmitted on one device in the pair are immediately received on the other device. When either devices is down the link state of the pair is down. veth device pairs are useful for combining the network facilities of the kernel together in interesting ways. A particularly interesting use case is to place one end of a veth pair in one network namespace and the other end in another network namespace, thus allowing communi- cation between network namespaces. To do this, one first creates the veth device as above and then moves one side of the pair to the other namespace: # ip link set <p2-name> netns <p2-namespace> ethtool(8) can be used to find the peer of a veth network interface, using commands something like: # ip link add ve_A type veth peer name ve_B # Create veth pair # ethtool -S ve_A # Discover interface index of peer NIC statistics: peer_ifindex: 16 # ip link | grep '^16:' # Look up interface 16: ve_B@ve_A: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc ... SEE ALSO
clone(2), network_namespaces(7), ip(8), ip-link(8), ip-netns(8) COLOPHON
This page is part of release 4.15 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 Linux 2018-02-02 veth(4)
Man Page

15 More Discussions You Might Find Interesting

1. IP Networking


Hey everybody.... I have an Intel machine and i'm planning to install Red hat Linux next step will be to create a small network with 2-3 computers...does anyone know any good links with step-by-step info of how to do this... Thanx in advance... (2 Replies)
Discussion started by: Petza
2 Replies

2. UNIX for Dummies Questions & Answers

More on Write & Talk

Thanks for the comments, but I am still having problems. Certainly I did consult the man pages, but they didn't seem to help. So here is the scenario: Two computers are running Linux on a network, each assigned IP addresses & subnet masks from DHCP (NT Server). Both computers have a... (3 Replies)
Discussion started by: ssbrady
3 Replies

3. UNIX for Advanced & Expert Users

ufsrestore accross the network

I am trying to do a ufsrestore accross the network and can't quite seem to get the syntax of the command correct. The manual says its possible to do this althought the man pages seem to only refer to a dump file when mentioing the network. I have the appropriate entrles in the .rhosts file and the... (5 Replies)
Discussion started by: Henrik
5 Replies

4. IP Networking

private network to private network gateway

i have one private network with one ip address, and i have a seperate network on a seperate ip address. now, each network is behind a firewall/router. now what i want to do is be able to access one server on the second network from a computer on the first., but with the private ip address, (this... (2 Replies)
Discussion started by: norsk hedensk
2 Replies

5. UNIX for Dummies Questions & Answers

Linux as a Domain Controller

First question, can Linux be configured to be the domain controller on a network with Microsoft computers? If so, where can I find information about configuring Linux for this purpose? (4 Replies)
Discussion started by: cstovall
4 Replies

6. UNIX for Advanced & Expert Users

Find LAN Address

Hi, I am wondering how I can find the network address under following situation. Things available: 1. An active network drop without knowing any details about the network. 2. I have windows, Linux, and Solaris machine available to use. Things to achieve: 1. Find out the... (5 Replies)
Discussion started by: jiashi2
5 Replies

7. IP Networking

Private network

Hi all, Currently we are in the progress of setting up a private network on all of our Sun Solaris servers. Purpose is to move all backup tasks to the private, hence reduce load on public network. Some of our servers only consists of 1 network card but with several ports. Shall we purchase... (10 Replies)
Discussion started by: *Jess*
10 Replies

8. Solaris

Solaris 10 network, process, database related comands

Hi everbody, Can anyone let me know the resources for list of network, process, database related commands of solaris10 possibly with little bit of explanation. Thanks in advance, Chandra Sekhar. (1 Reply)
Discussion started by:
1 Replies

9. UNIX for Advanced & Expert Users

Network interface in Linux kernel

Hi, I wrote some network modules to 2.6.x Linux kernel. Im useing sock_recvmsg / sock_sendmsg (linuxsrc/include/linux/net.h ) interface to receiving and sending data in TCP mode. Im cooperating with HTTP protocol and I have a question. Supose that I have buffer I have connection client -... (2 Replies)
Discussion started by: marcintom
2 Replies

10. IP Networking

Can AnyOne Help Me (connect two network)

Hi.. I have problem about connecting two network. First let me tell about my project. I use Quagga to build up IPv6 Island Network. At first, i build one (1) PC Router or one (1) network, i call it as Network A. All PC's or Laptop's (node's) that connect to Network A can communicated to each other... (4 Replies)
Discussion started by: Lieyza
4 Replies

11. UNIX for Advanced & Expert Users

Linux: monitor memory used for network buffers

/proc/net/sockstat has mem value, Is it memory used for network buffers? Is it KB or MB? $ cat /proc/net/sockstat sockets: used 8278 TCP: inuse 1090 orphan 2 tw 18 alloc 1380 mem 851 UDP: inuse 6574 RAW: inuse 1 FRAG: inuse 0 memory 0 or any other command to montior network... (3 Replies)
Discussion started by: honglus
3 Replies

12. IP Networking

Local network?

I have two PCs, witch have Linux Ubuntu. I want to connect those computers by a local network, but I know right anything about the network. I have a modem (not router) and a router that i don't use. The desktop pc have 2 network cards. (eth0 eth1). The modem is on eth1. Anyone help me!... (4 Replies)
Discussion started by: mghis
4 Replies

13. AIX

Can EtherChannel be a redundancy config?

I have one p5 server, no lpar, 2 physical network adapter, bundle as one EtherChannel. The two 2 physical network adapter connect to 2 network switches. How to make this as a redundancy config? Current is if one physical network adapter down, the seond one will go through the network. but if... (2 Replies)
Discussion started by: rainbow_bean
2 Replies

14. IP Networking

Cat /proc/sys/net/ipv4/ip_local_port_range

Hello, /proc/sys/net/ipv4/ip_local_port_range returns 32000 - 61000, i have a client TCP and a Server TCP. i have used bind() only on the server, the port of socket client is given by the OS that's it ? it retrieves this port from this range (/proc/sys/net/ipv4/ip_local_port_range) ? ... (5 Replies)
Discussion started by: chercheur111
5 Replies

15. IP Networking

Unable to SSH from Windows client to Ubuntu Server

I'm trying to setup a small home network environment as a pet project. These are physical machines nothing virtual. Any help or ideas is greatly appreciated. I can ping between both machines and I have Samba established and can read/write different shares. When I try to SSH from Windows 8.1... (10 Replies)
Discussion started by: lombardi4851
10 Replies