LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 831|回复: 1

debian下设置桥接失败

[复制链接]
发表于 2009-5-21 13:24:58 | 显示全部楼层 |阅读模式
1. First install the bridge utilities (bridge-utils). package. You can do this from
the command line as follows:

sudo apt-get install bridge-utils

2. Next, you must add an entry to the file /etc/network/interfaces to de-
scribe the bridge. The following sample entry creates a bridge called br0, adds
the host ethernet interface eth0 to it and tells it to obtain an IP address using
DHCP so that the host remains able to access the network.

auto br0
iface br0 inet dhcp
bridge_ports eth0

You will probably want to change this to suit your own networking needs. In
particular, you may want to assign a static IP address to the bridge. You will find
more documentation in the files
3. Restart networking on the host:

sudo /etc/init.d/networking restart

After this the bridge will be recreated every time you boot your host system.


这3步操作后,br0和eth0的地址都一样的,网络连接显示正常,但是连主机都ping内网和外网都不行,非常无语,照理应该这三步之后,主机能正常上网才对吧。

麻烦高手来解决。
 楼主| 发表于 2009-5-25 00:46:54 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表