ubuntu如何搭建網橋
ubuntu搭建網橋ubuntu網橋
先安裝 bridge-utils
#sudo apt-get install bridge-utils
#sudo gedit /etc/network/interfaces
在後面加上這個:
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 10.65.160.104
network 10.65.128.0
netmask 255.255.128.0
broadcast 10.65.255.255
gateway 10.65.156.27
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
sudo /etc/init.d/networking restart (或 sudo restart network-manager)