Re: [問題] ubuntu 9.04 bridge的設定

看板Linux作者 (henry)時間16年前 (2009/05/19 22:05), 編輯推噓0(005)
留言5則, 2人參與, 最新討論串2/2 (看更多)
附上設定2跟設定3的ifconfig以及route資訊 設定2時 經過重開機後 ping不到 DNS server ifconfig: br0 Link encap:Ethernet HWaddr 00:24:8c:1b:66:f5 inet addr:10.6.31.202 Bcast:10.6.31.255 Mask:255.255.255.0 inet6 addr: fe80::224:8cff:fe1b:66f5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:146 errors:0 dropped:0 overruns:0 frame:0 TX packets:39 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:9239 (9.2 KB) TX bytes:5917 (5.9 KB) eth0 Link encap:Ethernet HWaddr 00:24:8c:1b:66:f5 inet addr:10.6.31.202 Bcast:10.6.31.255 Mask:255.255.255.0 inet6 addr: fe80::224:8cff:fe1b:66f5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:147 errors:0 dropped:0 overruns:0 frame:0 TX packets:161 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11355 (11.3 KB) TX bytes:16759 (16.7 KB) Interrupt:252 Base address:0xa000 下略.. route: Destination Gateway Genmask Flags Metric Ref Use Iface 10.6.31.0 * 255.255.255.0 U 0 0 0 br0 10.6.31.0 * 255.255.255.0 U 1 0 0 eth0 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 link-local * 255.255.0.0 U 1000 0 0 br0 default 10.6.31.1 0.0.0.0 UG 0 0 0 eth0 default 10.6.31.1 0.0.0.0 UG 100 0 0 br0 使用設定3 經過重開機後 ping不到DHCP server ping的到DNS server 別台電腦ping不到這台機器 但是如果經過 sudo /etc/init.d/networking restart 則ping的到DHCP server 別台電腦也ping的到他了 剛剛的新發現 ifconfig: br0 Link encap:Ethernet HWaddr 00:24:8c:1b:66:f5 inet addr:10.6.31.202 Bcast:10.6.31.255 Mask:255.255.255.0 inet6 addr: fe80::224:8cff:fe1b:66f5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:58 errors:0 dropped:0 overruns:0 frame:0 TX packets:41 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5924 (5.9 KB) TX bytes:6214 (6.2 KB) eth0 Link encap:Ethernet HWaddr 00:24:8c:1b:66:f5 inet addr:10.6.31.202 Bcast:10.6.31.255 Mask:255.255.255.0 inet6 addr: fe80::224:8cff:fe1b:66f5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:63 errors:0 dropped:0 overruns:0 frame:0 TX packets:64 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7600 (7.6 KB) TX bytes:10749 (10.7 KB) Interrupt:252 Base address:0xe000 以下省略.. route:(這是經過重新啟動networking的) Destination Gateway Genmask Flags Metric Ref Use Iface 10.6.31.0 * 255.255.255.0 U 0 0 0 br0 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 link-local * 255.255.0.0 U 1000 0 0 eth0 default my.router 0.0.0.0 UG 100 0 0 br0 route:(未重新啟動networking) Destination Gateway Genmask Flags Metric Ref Use Iface 10.6.31.0 * 255.255.255.0 U 0 0 0 eth0 10.6.31.0 * 255.255.255.0 U 0 0 0 br0 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 link-local * 255.255.0.0 U 1000 0 0 eth0 default my.router 0.0.0.0 UG 100 0 0 br0 default my.router 0.0.0.0 UG 100 0 0 eth0 額外資訊:使用brctl show所看到的東西 設定2跟設定3都是一樣的 我想問的是 為什麼我用網站上教的設定方法會出現上網問題 另外 假如像我使用設定3的話 有成功的把primary interface設定成bridge嗎? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.175.115

05/19 23:08, , 1F
把eth0的dhcp改成manual後重新restart
05/19 23:08, 1F

05/19 23:08, , 2F
至於2的部分,你可以看一下route表跟3有什麼不一樣
05/19 23:08, 2F

05/20 01:10, , 3F
我看差別好像就是default是10.6.31.1和my.route的差別
05/20 01:10, 3F

05/20 01:10, , 4F
想請問一下這兩者有什麼差別嗎?
05/20 01:10, 4F

05/20 01:10, , 5F
我不太清楚什麼事my.route 謝謝回答
05/20 01:10, 5F
文章代碼(AID): #1A4ho-e9 (Linux)
文章代碼(AID): #1A4ho-e9 (Linux)