但是别的机器连不上openwrt,我安装的命令在下面,
有兴趣的朋友可以试试
sudo ip link set eth0 promisc on
docker pull sulinggg/openwrt:x86_64
docker run -d --name=openwrt --restart always --privileged --network br0 --ip 192.168.31.253 sulinggg/openwrt:x86_64 /sbin/init
docker exec -it openwrt bash
vim /etc/config/network
config interface 'lan'
option ifname 'eth0'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.31.253'
option gateway '192.168.31.1'
option dns '192.168.31.1'
/etc/init.d/network restart
有兴趣的朋友可以试试
sudo ip link set eth0 promisc on
docker pull sulinggg/openwrt:x86_64
docker run -d --name=openwrt --restart always --privileged --network br0 --ip 192.168.31.253 sulinggg/openwrt:x86_64 /sbin/init
docker exec -it openwrt bash
vim /etc/config/network
config interface 'lan'
option ifname 'eth0'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.31.253'
option gateway '192.168.31.1'
option dns '192.168.31.1'
/etc/init.d/network restart