NETWORK_NAMESPACES(7) Linux Programmer's Manual NETWORK_NAMESPACES(7)NAME
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. In addition, network namespaces isolate the UNIX domain abstract socket
namespace (see unix(7)).
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)Linux 2018-02-02 NETWORK_NAMESPACES(7)
Check Out this Related Man Page
veth(4) Linux Programmer's Manual veth(4)NAME
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 https://www.kernel.org/doc/man-pages/.
Linux 2018-02-02 veth(4)
Hi,
I am an NT MCSE who has decided to abandon the MSCE Win2K path and take the UNIX/Linux Path.
But since I am very new to that field, I am not sure exactly what Certification I should get that would cover the biggest area of that field as possible. Not to mention if I should got with... (10 Replies)
Good day!
Im interested with unix application, however i don't have any idea on how to configure network on unix applicaton(server) to have a connection with windows operating system (worksatation).
Please give me some facts how network works between unix and windows. (4 Replies)
Hi All...
I have never really touched any form of unix so any help would be appraciated.
I am looking at creating/building another PC to add to my network for storage purposes only.
Would unix be the best OS to use in this situation as all I have available to me is a very low end PC.
As... (10 Replies)
I have been serching for a guide to unix C network programming everywhere but I have found only some tuorials, very useful but a little bit poors.
My question is if exist a network domain all over the world where C socket is treated with examples.
Programs i have looked into is hard to... (4 Replies)
Does anyone know of any way to share storage between 2 machines without networking?
I have a server that is constantly connected to a VPN that cuts off network access to every non-VPN network. This presents a problem when I have to transfer big files off of that server on to my internal... (7 Replies)
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)
hi all
i am new in unix programming i want some help from this forum, i want to know how to get user name of other machine in local network from its ip address or suggest any books for networking programming on unix
sachin (6 Replies)
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)
I have purchased a Dec unix Ver 3.2c machine that is about ten years old. I need to get this machine on our network (windows 2003 domain) so I can copy files to it. I know I need to change the IP address, but where and how do I change it? What else do I chang?
Thanks Randy (8 Replies)
I have three network cards in my unix box. I need to figure out which card corresponds to an assigned IP address. If there some command in unix I can use to make an ethernet interface blink?
Any advice would be appreciated. (6 Replies)
Hi Experts,
Can we use some command from unix to find the available network interface? I did tried
Its listing following, however how can I decide the which vender card is attached
e.g. if its hme , bge or some thing else
Thanks (7 Replies)
I have a network connection problem in unix. I am trying to access to LAN in unix but unfortunately it doesn't work. For example, if I ping from Unix to windows it says 'the network is unreacable'. Also, I can't ping in windows to unix.
I would be glad if someone could help me.
Thanks.
... (5 Replies)
I want to build a network, in this network there is only one PC and 50 terminals, 50 students can use this system to study UNIX/Linux.
In the old days, computer was very expensive, many scientists shared a computer with terminals, that means a terminal has no cpu, memory and hardisk.
In... (5 Replies)
Hello All
I am trying to get a list of process or applications runninging on the network only. I should emphasize that im not interested in the application or process if its not using the network.
I tried the good old netstat comand, but im not able to figure out how to list the running... (8 Replies)
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)