ubuntu 9.04 bridge的設定 - Linux

Table of Contents

由於軟體的需要 我需要將ubuntu的primary interface改為bridge

參考的設定如此網頁:https://help.ubuntu.com/community/Eucalyptus%2Bbridge

我原本的interfaces內容如下

----------------------
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
----------------------


參照以上網頁改為 設定2

------------------------
auto lo
iface lo inet loopback

auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
------------------------

此時如果重新啟動network 網路可以通

但是重開機以後 瀏覽器便找不到網頁

用sudo apt-get也連不到 似乎是連接不到DNS

ping DNS 會說destination unreachable


但假如修改為以下 設定3

-------------------------
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
--------------------------

則重開機以後依然可以上網

但是無法由別的主機 ping到這台機器了 非常詭異



我想問的是 設定2跟設定3的差別是什麼?

既然網頁上教使用設定2的方法

但為什麼我設定了之後重開機會無法上網


請大家幫忙看一下 謝謝囉

--

All Comments

Lauren avatarLauren2009-05-21
我覺得你設成2的時候應該把ifconfig的br0值show一下
還有你的routing table