#Create the virtual interfacestunctl -t tap0tunctl -t tap1ifconfig tap0 upifconfig tap1 up#Create the brIDgebrctl addbr br0brctl stp br0 offbrctl addif br0 eth0brctl addif br0 tap0brctl addif br0 tap1#Turning up the brIDgeifconfig br0 up
但是我的问题是,如果tap接口总是在桥中出现禁用,并且没有流量流向它们.
$brctl show br0brIDge name brIDge ID STP enabled interfacesbr0 8000.080027cabeba no eth2 tap0 tap1$brctl showstp br0br0 brIDge ID 8000.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 timer 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 brIDge 8000.080027cabeba message age timer 0.00 designated port 8001 forward delay timer 12.97 designated cost 0 hold timer 1.24 flags tap0 (2) port ID 8002 state Disabled designated root 8000.080027cabeba path cost 100 designated brIDge 8000.080027cabeba message age timer 0.00 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.080027cabeba path cost 100 designated brIDge 8000.080027cabeba message age timer 0.00 designated port 8003 forward delay timer 0.00 designated cost 0 hold timer 0.00 flags
有没有办法将tap接口设置为转发状态?我不明白为什么他们不是因为STP被禁用.
干杯
丹尼尔
解决方法 当用户打开设备手柄时,仅在点击时设置载波(IFF_RUNNING).对于使用tunctl创建的持久性点击,您需要一个附加到点击的应用程序,例如:
> http://backreference.org/2010/03/26/tuntap-interface-tutorial/
总结以上是内存溢出为你收集整理的在linux网桥中始终禁用tap接口全部内容,希望文章能够帮你解决在linux网桥中始终禁用tap接口所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)