Questions tagged [veth]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Veth and Cisco nx-os

Ok, so I've been toying with veth links for my Cisco routers and they have been working fine. However when you throw in a virtual switch like the Cisco nx-osv or vios l2 image, using veth interfaces ...
5
votes
0answers
160 views

Opening /proc/<pid>/net/dev prevents network namespace from expiring, is this expected?

I'm looking for input whether the following observation related to network namespace expiration is expected, or should be reported as bug? When some process opens /proc/<pid>/net/dev it can ...
4
votes
0answers
91 views

veth interfaces performance problem

On a fast AWS machine (m5.2xlarge), I am creating around 600 veth interfaces, each one having a little server (with socat) running on a port. I then start sending around 7kb/second of data per server....
3
votes
0answers
174 views

I can ping across namespaces, but not connect with TCP

I'm trying to set up two network namespaces to communicate with eachother. I've set up two namespaces, ns0 and ns1 that each have a veth pair, where the non-namespaced side of the veth is linked to a ...
1
vote
0answers
125 views

Identifying physical network devices using /sys/class/net/<iface>

I wanted to know if there is a way to differentiate physical and virtual network devices. ip a doesn't have an option. So I am trying /sys/class/net/<iface>. There are 2 attributes ...
0
votes
1answer
206 views

No ICMP response for veth devices in same namespace

I have created a veth device pair as follows in Ubuntu 16.04: $ sudo ip link add veth1 type veth peer name veth2 $ sudo ip link set dev veth1 up $ sudo ip link set dev veth2 up $ sudo ip address add ...
0
votes
1answer
144 views

Is veth layer 2 or layer 3 device?

Veth device pairs allow creation of a virtual ethernet tunnel on a linux system. I want to ask whether a veth device should be considered a layer 2 or layer 3 device ? Based on my understanding veth ...
0
votes
1answer
596 views

Route from netns through a veth link

I have created a network namespace (with ip netns add) and a pair of veth links, virt-a and virt-b. The physical link in the root namespace is named eth0. virt-a is in the root namespace and virt-b is ...
1
vote
1answer
673 views

Is it possible to send packets between network namespaces using only TUN/TAP interfaces?

I am trying to understand the difference between different types of (virtual) interfaces (e.g. TUN/TAP, veth etc.) and was studying some of these types within the context of containers. Is it ...
2
votes
1answer
720 views

Identify if a network interface is a `veth` using `/sys/class/net`?

Is it possible to unambiguously identify that a given network interface, such as eth1, is actually a type veth network interface? Please note that in containers, their network interface names ...
7
votes
3answers
8k views

How to find the network namespace of a veth peer ifindex?

Task I need to unambiguously and without "holistic" guessing find the peer network interface of a veth end in another network namespace. Theory ./. Reality Albeit a lot of documentation and also ...
3
votes
0answers
1k views

Limit on number of virtual interfaces in linux?

I am running some automated tests with docker containers, and this includes creating a lot of veth interfaces (about 2 per container, ~1000 containers). Whenever I do this, the system shuts down. ...
2
votes
1answer
160 views

veth between two network process namespaces?

I created two namespaces: unshare -mnpf bash --norc -is host1 (& host2) At the prompt of host1, I run: ip link add name host1-eth0 type veth peer name host2-eth0 netns <host2-pid> But it ...
-1
votes
1answer
499 views

Bridging two virtual machines on difference bridges

I have two VMs: vm1 & vm2. The host and VMs both are Ubuntu 14.04 LTS. Each VM "connects" to a bridge which connects to a virtual ethernet interface and end up at eth0 i.e. vm1 (192.168.0.23) -&...
1
vote
1answer
244 views

Using a VPN for certain applications via a network namespace

I am trying to use a network namespace for VPN-specific traffic, using this guide: https://schnouki.net/posts/2014/12/12/openvpn-for-a-single-application-on-linux/ on Debian. Everything works with ...
4
votes
0answers
456 views

Is there a thing like “veth”, but without link-level headers?

When I use separate network namespace, I often set up networking there using veth: ip link add type veth ip link set veth0 netns 1 ifconfig veth1 192.168.60.2 ip route add default via 192.168.60.1 ...