|
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内网和外网都不行,非常无语,照理应该这三步之后,主机能正常上网才对吧。
麻烦高手来解决。 |
|