public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* Problem with tap interface: link is not ready
@ 2013-09-23 15:51 Dani Camps
  2013-09-23 16:14 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Dani Camps @ 2013-09-23 15:51 UTC (permalink / raw)
  To: netdev@vger.kernel.org



Dear all,

I am not sure that I am addressing the correct mailing list. In case I am not, please accept my apologies.

I am trying to create a virtual tap device that I want to add later on to a bridge. My problem is that the tap interface always appears with state disabled if I do a ´brctl showstp br0´, and no traffic reaches the bridge. After some investigation I found out that the tap interface is never up. How can I bring the tap interface up?

These are my detailed steps:

sudo tunctl -t tap0
sudo ifconfig tap0 192.168.0.2/24 up

But when I look at dmesg I get:

 ADDRCONF(NETDEV_UP): tap0: link is not ready


Nevertheless if I do 'ifconfig tap0' it seems to indicate that the interface is up:

tap0      Link encap:Ethernet  HWaddr 72:a0:fb:88:95:44
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

But I never see a message in dmesg saying "tap0: link becomes ready." And when I add the tap0 interface it always appears disabled, so I think that the interface is never really up.

My kernel is 3.0

Any help to bring up the tap interface is much appreciated.

Best Regards

Daniel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-23 16:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-23 15:51 Problem with tap interface: link is not ready Dani Camps
2013-09-23 16:14 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox