Skip to main content

Questions tagged [virtual-interface]

The tag has no usage guidance.

2 votes
1 answer
3k views

Understanding packet flow through iptables rules for docker container bridge network?

Background I want to understand the relationships between docker container networks and iptables, and generally understand how packets flow from the eth0 interface (in a container), through the ...
akastack's user avatar
0 votes
3 answers
1k views

How to create Ethernet interface at a specific IP address that I can ping and force to sometimes reply and sometimes not?

I'd like to do some experiments to test the ping and fping commands (see: Equivalent of `ping -o` on Linux), but I need a local virtual Ethernet interface to test this. I'd like to have a scenario ...
Gabriel Staples's user avatar
4 votes
1 answer
4k views

docker interface tears down wifi internet

I see this problem on my laptop: when I docker run a Docker container, then after a few seconds my WiFi internet stops working. I don't have an Ethernet connection to test that side of things. I don't ...
TPPZ's user avatar
  • 567
26 votes
8 answers
6k views

What's the best way to actually "type" special UTF-8 chars?

Everything on my system (that needs it) supports UTF-8 just fine. That's all nice when you want output... But what if you want easy input ? At the moment the only non-ASCII chars I can easily type are ...
Garo's user avatar
  • 2,069
1 vote
2 answers
2k views

Cannot ping second IP address on another machine's interface

I have an OpenVPN client connected to an OpenVPN server. The server has the following routes: default via 10.109.185.65 dev eth0 proto dhcp src 10.109.185.84 metric 100 10.8.0.0/24 dev tun0 proto ...
pacoverflow's user avatar
6 votes
2 answers
1k views

Unable to connect vm to IPv6 internet via virtual tap interface

I'm having trouble connecting a vm to the IPv6 internet through a virtual tap device on the host. I.e., I cannot ping ipv6.google.com or the public IPv6 host global primary interface address. Ex: -...
waffles's user avatar
  • 133
0 votes
1 answer
305 views

How to send ethernet frames from one veth to another?

I have two veth pairs (veth1, veth1_0) and (veth2, veth2_0). veth1_0 and veth2_0 are in the default namespace ns0, veth1 is in namespace ns1 and veth2 in namespace ns2. I want to communicate between ...
gcc17's user avatar
  • 1
2 votes
2 answers
4k views

Veth interface configuration persistent

How to configure the veth interface on CentOS 7 in such a way to make it state persistent after system reboot? For example: veth configuration: # create veth pair and assing IP address. ip link add ...
mg3's user avatar
  • 23
0 votes
1 answer
220 views

Run script when virtual interface is up

I have /sbin/ifup-local set to execute and it works but my virutal interface eth0.2 (vlan2) is the one that gets the IP address I need to run the script . How can i run a bash script when eth0.2 is ...
user3265051's user avatar
2 votes
1 answer
3k 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 ...
dippynark's user avatar
  • 327
0 votes
2 answers
388 views

Why I cannot initialize dummy interface at bashrc?

I did try to initialize a dummy interface in shell manually without no problem. In order to bring up this interface at every boot up process, then i tried to add it to /etc/bashrc or /etc/profile as ...
VSB's user avatar
  • 175
2 votes
1 answer
2k views

Detecting that a network interface is "physical" or "virtual" using only RTNETLINK on Linux?

I would like to detect whether a network interface is "physical" or "virtual", where "physical" means that the interface has hardware attached, even if that "hardware" is virtualized by a hypervisor. "...
TheDiveO's user avatar
  • 1,337
3 votes
7 answers
3k views

How to show only interfaces starting with a certain pattern

Open-Vswitch creates virtual interfaces, they all have this pattern: s[digit]-eth[digit] For example: s1-eth1, s1-eth2, s12-eth3, s2-eth3 ... I want to show information of -for example- all ...
Dimareal's user avatar
  • 133
1 vote
1 answer
1k views

How to use different virtual network interfaces for different processes?

The solution to non-virtual network interfaces is here: https://unix.stackexchange.com/a/210992 But the problem is I have multiple IPs on one network interface and I'd like to be able to assign each ...
sojim2's user avatar
  • 143
7 votes
1 answer
71k views

How to properly configure a tun/tap Interface in linux?

Basically I am trying to create a custom TCP Stack. As you might know I cant use eth0 because linux kernel TCP stack uses that, Due to that I need to create a tun/tap interface and use it for my ...
Mr. Nobody's user avatar

15 30 50 per page