Questions tagged [virtual-interface]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
59 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 ...
  • 101
0 votes
0 answers
245 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 ...
0 votes
3 answers
352 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 ...
1 vote
1 answer
1k 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 ...
  • 395
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 ...
  • 1,854
1 vote
1 answer
1k 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 ...
5 votes
2 answers
624 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: -...
  • 123
0 votes
1 answer
173 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 ...
  • 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 ...
  • 23
0 votes
1 answer
162 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 ...
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 ...
  • 307
0 votes
2 answers
321 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 ...
  • 165
2 votes
1 answer
918 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. "...
  • 1,049
3 votes
5 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 ...
  • 133
1 vote
1 answer
949 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 ...
  • 111
6 votes
1 answer
50k 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 ...
13 votes
4 answers
87k 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 ...
  • 1,152
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 ...
  • 317
13 votes
2 answers
63k 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 ...
  • 317
8 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 ...