Re: [問題] 有關bsd用來當bridge的問題

看板FreeBSD作者時間20年前 (2005/12/11 11:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/5 (看更多)
※ 引述《koach342.bbs@ptt.cc (koach)》之銘言: > [fxp1]Router[fxp0] <-> [fxp0]Bridge[fxp1] <-> LAN > Router的/var/log/message摘要 > Dec 10 09:33:41 Router /kernel: arp: my_bridge_ip moved from 00:90:27:a0:d7:e1 to 00:d0:b7:90:13:a8 on fxp0 > Dec 10 09:56:41 Router /kernel: arp: my_bridge_ip moved from 00:d0:b7:90:13:a8 to 00:90:27:a0:d7:e1 on fxp0 > Dec 10 10:15:23 Router /kernel: arp: my_bridge_ip moved from 00:90:27:a0:d7:e1 to 00:d0:b7:90:13:a8 on fxp0 > Dec 10 10:22:54 Router /kernel: arp: my_bridge_ip moved from 00:d0:b7:90:13:a8 to 00:90:27:a0:d7:e1 on fxp0 [CUT] > Router的ifconfig摘要 > fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > Bridge的/var/log/message摘要 > Dec 10 20:37:59 Bridge /kernel: -- loop (0) 00.c0.9f.04.03.11 to fxp1 from fxp0 (active) > Dec 10 20:37:59 Bridge /kernel: -- loop (1) 00.c0.9f.04.03.11 to fxp0 from fxp1 (active) > Dec 10 20:38:02 Bridge /kernel: -- loop (0) 00.c0.9f.04.03.11 to fxp1 from fxp0 (active) [CUT] > Bridge的ifconfig摘要 > fxp0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 > fxp1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 > 註1:00.c0.9f.04.03.11是我router的fxp0的MAC > 註2:00:90:27:a0:d7:e1 和 00:d0:b7:90:13:a8 分別是我Bridge兩張卡的MAC > 註3:我的Bridge的rc.conf設定是 ifconfig_fxp0="inet 163.32.58.2 netmask 255.255.255.0" >    而fxp1沒設(Bridge應該是只設一張卡的ifconfig就可以了沒錯吧..!) >    我也反過來設,結果也是一樣 [CUT] > 當我今早在bridge下 > arp -S my_bridge_ip 00:d0:b7:90:13:a8 > (我的目的是要bridge將自己的mac和ip對照記著) > 結果 > 我router的主機就不再有上述的訊息了,但Bridge的訊息仍一直持續 > bridge的sysctl -a|grep bridge結果是 > net.link.ether.bridge_cfg: fxp0,fxp1 > net.link.ether.bridge: 1 > net.link.ether.bridge_ipfw: 1 > net.link.ether.bridge_ipf: 0 > net.link.ether.bridge_ipfw_drop: 0 > net.link.ether.bridge_ipfw_collisions: 0 > netstat -rn大致是 > 163.xx.yy.1 00:c0:9f:04:03:11 UHLW 0 5714 fxp0 1199 > 163.xx.yy.2 00:d0:b7:90:13:a8 UHLS 0 0 lo0 > 其中.1是我的router, .2是我的bridge 我建議你換一顆 switch hub 試試,很有可能是你的 switch hub 將 bridge 送出去的 frame 又送回來 (loopback). bridge(4) 有一段話: Also, bridg- ing is not compatible with interfaces which use hardware loopback, because there is no way to tell locally generated packets from externally generated ones. 我查過 EEPRO100 的 driver,已設為不作 loopback,應該不會有這個問題, 也許是 switch hub 的問題。 -- ※ Origin: SayYA 資訊站 <bbs.sayya.org> ◆ From: 219-84-63-121-adsl-tpe.dynamic.so-net.net.tw
文章代碼(AID): #13cvsq00 (FreeBSD)
文章代碼(AID): #13cvsq00 (FreeBSD)