ubuntu 9.04 bridge的設定 - Linux

By Gilbert
at 2009-05-19T22:05
at 2009-05-19T22:05
Table of Contents
附上設定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嗎?
謝謝
--
設定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嗎?
謝謝
--
Tags:
Linux
All Comments

By Irma
at 2009-05-21T07:08
at 2009-05-21T07:08

By Elma
at 2009-05-25T09:10
at 2009-05-25T09:10
Related Posts
Ubuntu 9.04 無法啟動 Camorama

By Yedda
at 2009-05-19T20:00
at 2009-05-19T20:00
ubuntu 9.04 bridge的設定

By Sandy
at 2009-05-19T17:34
at 2009-05-19T17:34
Canonical發表Ubuntu One線上儲存服務

By Isla
at 2009-05-19T16:52
at 2009-05-19T16:52
mandriva 2009.1的更新

By Anthony
at 2009-05-19T14:55
at 2009-05-19T14:55
ubuntu9.04多重開機問題

By Dinah
at 2009-05-19T13:50
at 2009-05-19T13:50