Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tap interface not coming up

I decided to add a tap interface and use it in my code , but I am able to get its state UP.

sudo ip -f link tuntap add tap10 mode tap
sudo ip link set tap10 up

After this when I do "ip link"

tap10: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 500
link/ether 26:cc:d2:b4:37:ea brd ff:ff:ff:ff:ff:ff

state DOWN: How to get this state UP ? I am trying to send packets to it and nothing is received .

like image 570
Curious Guy 007 Avatar asked Mar 21 '14 22:03

Curious Guy 007


People also ask

How do I find my tap interface?

The tap interface information can be used to debug connectivity issues using tools such as tcpdump. Navigate to http:// <openstak-ip> /horizon/admin/instances / and note the following: IP address of the VM/Interface for which the associated tap interface is to be found.

What is TAP network interface?

Virtual network tap interfaces give daemons and clients in the host operating system access to send and receive network traffic through TNSR to other networks. A tap interface can carry layer 2 and layer 3 frames between the host OS and TNSR, and be a bridge member.


1 Answers

It turns out that you need to have a proccess that uses your tap interface in order for it to be active.

This means that you need to write or use a program that connects to the interface file descriptor, then it will change its state to "RUNNING".

like image 112
dream-weaver Avatar answered Oct 05 '22 13:10

dream-weaver