TAP interfaces Disabled in Linux bridge-carrier (iff_running) __linux

Source: Internet
Author: User


Https://serverfault.com/questions/540831/tap-interfaces-always-disabled-in-linux-bridge


TAP interfaces always disabled in Linux Bridge I have a physical interface eth0, and I want to create two virtual interfaces and bridge them with eth0. For this purpose I do:

#Create the virtual interfaces
tunctl-t tap0 tunctl-t tap1 ifconfig the up tap0 ifconfig up

#Creat E The bridge
brctl ADDBR br0
brctl stp br0 off
brctl addif br0
eth0 brctl addif br0 tap0 brctl addif
Br0 Tap1

#Turning up the bridge
ifconfig br0 up

However my problem if this tap interfaces always appear disabled in the bridge, and no traffic flows to them.

$brctl show Br0 bridge name Bridge ID STP enabled interfaces br0 8000.080027cabeba no eth2 Tap0 tap1 $brctl SHOWSTP br0 br0 Bridge ID 80          00.080027cabeba designated root 8000.080027cabeba root Port 0 Path cost 0 Max Age        20.00 Bridge max Age 20.00 Hello time 2.00 Bridge Hello time 2.00 forward delay 15.00 Bridge forward Delay 15.00 ageing time 300.01 Hello timer 0.00 TCN Tim        ER 0.00 Topology Change timer 0.00 GC Timer 298.42 flags eth2 (1) Port ID 8001 state Forwarding designated root 8000.080027cabeba path cost 4 designated BR Idge 8000.080027cabeba Message Age timer 0.00 designated Port 8001 forward delay timer 12.97 des    ignated Cost 0        Hold timer 1.24 flags TAP0 (2) Port ID 8002 State disabled de signated root 8000.080027cabeba path cost designated bridge 8000.080027CABEBA message age timer 0         Designated port 8002 forward Delay Timer 0.00 designated cost 0 hold Timer 0.00 Flags TAP1 (3) Port ID 8003 State disabled designated root 8000.0800 27cabeba path cost designated bridge 8000.080027CABEBA Message Age timer 0.00 designated Port 80     Forward Delay timer 0.00 designated Cost 0 hold timer 0.00 Flags

Are there any way to set the TAP interfaces into forwarding state? I don't understand why they are not because STP is disabled.

Cheers

Daniel ==========================================================================================

Answer

Carrier (iff_running) is only set on a tap when a user has the device handle open.

For a persistent tap created and tunctl, you are need an application which to the tap, attaches 2010/03/26/tuntap-interface-tutorial/or

http://blog.csdn.net/ztguang/article/details/72890346


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.