2017年4月14日

bridge

安裝套件
sudo apt-get install bridge-utils
sudo apt-get install uml-utilities
增加權限
sudo chmod 666 /dev/net/tun

編輯網路界面

在檔案裡面增加下列的字
auto br0
iface br0 inet dhcp
    bridge_ports eth0
auto eth0
iface eth0 inet manual
    up ifconfig $IFACE 0.0.0.0 up
    up ip link set $IFACE promisc on
    down ip link set $IFACE promisc off
    down ifconfig $IFACE down

重啟網路
sudo /etc/init.d/networking restart

沒有留言: