2022 Developer Survey is open! Take survey.

Questions tagged [virtual-interface]

The tag has no usage guidance.

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

Use virtual wlan iface in monitor mode with physical iface in managed mode

I want to run Open Wireless Link, but it requires my device to be in active monitor mode. I am wondering if it is possible to use a virtual interface created with mac80211_hwsim, connect that to my ...
user avatar
  • 101
0 votes
0 answers
57 views

how to create virtual interface without ip address and without link to base interface in /etc/network/interfaces on Ubuntu/Debian

I have these two virtual interfaces test1 and test2 without ip addresses through this command: ip link add test2 type veth peer name test1 root@ubuntu:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu ...
user avatar
0 votes
3 answers
117 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 ...
user avatar
0 votes
0 answers
38 views

Open vSwitch inter bridge communication

want to ping different Open vSwitch bridges via a physical interface. My host has an eth1 and a wlan0 interface. I have created 3 OVS bridges and assigned IP addresses to them. wlan0 added to br0. Two ...
user avatar
1 vote
1 answer
937 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 ...
user avatar
  • 355
25 votes
8 answers
3k 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 ...
user avatar
  • 1,844
1 vote
1 answer
767 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 ...
user avatar
5 votes
2 answers
508 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: -...
user avatar
  • 123
0 votes
1 answer
141 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 ...
user avatar
  • 1
2 votes
2 answers
3k 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 ...
user avatar
  • 23
0 votes
1 answer
154 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 ...
user avatar
2 votes
1 answer
2k 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 ...
user avatar
  • 297
0 votes
2 answers
263 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 ...
user avatar
  • 155
2 votes
1 answer
749 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. "...
user avatar
  • 1,019
3 votes
5 answers
2k 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 ...
user avatar
  • 133
1 vote
1 answer
900 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 ...
user avatar
  • 111
4 votes
1 answer
46k 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 ...
user avatar
11 votes
4 answers
83k views

How to find IP of virtual machine?

If I have a VM (using VirtualBox, for instance) running inside my main OS; how can I identify the virtual interface and IP address (of the VM) from within the original (host) OS? I thought I could ...
user avatar
  • 1,092
5 votes
1 answer
3k views

Is it possible to implement IPv6 on a virtual interface (eth0:1 interface) in Linux?

If I assign an IPV6 address to the virtual interface created like eth0:1, then it gets automatically assigned to its real interface eth0. It's all working fine on IPv4, but I need IPv6 on the ...
user avatar
  • 317
13 votes
2 answers
60k views

How can we create multiple dummy interfaces on Linux?

To Create a Fake Ethernet dummy Interface On Linux we First initialize the dummy interface driver using the below command: /sbin/modprobe dummy. Then we Assign Ethernet Interface alias To Dummy Driver ...
user avatar
  • 317
7 votes
2 answers
8k views

Single wifi card, Connect to multiple access points simultaneously

As we know, We can create virtual wireless interface using iw dev (1). Also, We can change it's MAC address using ifconfig <ifname> hw ether <Address>. Then We can Set two different access ...
user avatar