Chinaunix

标题: 纯网桥模式+双交换机,stp不起作用,怎么办? [打印本页]

作者: dongaima    时间: 2003-05-15 16:27
标题: 纯网桥模式+双交换机,stp不起作用,怎么办?
两台linux双口pc机,由两台交换机连接。
配置为:
brctl addbr br0

brctl addif eth0
brctl addif eth1

ifconfig eth0 0.0.0.0
ifconfig eth1 0.0.0.0

ifconfig br0 up

brctl stp br0 on

brctl setbridgeprio br0 0/100  #主从由此区别
brctl setageing br0 30
brctl sethello br0 0.1
brctl setmaxage br0 0.4
brctl setfd br0 0.4
brctl setgcint br0 0.4

结果不起作用,当拨掉主机网线时,无法按照设定时间切换到从机。
如果是一台交换机和一个hub就行。

请高手帮忙解决,谢谢。

急~~~~~~~
作者: dongaima    时间: 2003-05-16 13:40
标题: 纯网桥模式+双交换机,stp不起作用,怎么办?
我已经解决了:)

看了一天的maillist

使用一条心跳线,
brctl setpathcost br0 eth0/1 50  (main)
brctl setpathcost br0 eth0/1 200(backup)
作者: JohnBull    时间: 2003-05-16 13:47
标题: 纯网桥模式+双交换机,stp不起作用,怎么办?
你的brctl源码哪里下载的?我怎么也连不上bridge.sourceforge.net
给咱共亨一下吧!
作者: wind521    时间: 2003-05-16 14:25
标题: 纯网桥模式+双交换机,stp不起作用,怎么办?
这个东东不错的
:)
可以共享一下你的经验吗?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2