使用電腦連接bpi-r1s,開啟http://192.168.100.1:8080
輸入帳密,再把點選[運作模式]/bridge。記得把dhcp server關掉。
這樣就可以取得上層所發的IP。至於如何回到設定呢?把網卡設成固定IP,在192.168.100.x的網段即可。網路接法不需要改變。
2017年8月14日
2017年4月14日
bridge
安裝套件
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
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
訂閱:
文章 (Atom)