docker pull piaoyizy/openwrt-x86
sudo ip link set ovs_eth0 promisc on
docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.3 -o parent=ovs_eth0 macnet
docker run -d --name=openwrt --restart always --privileged --network macnet --ip 192.168.1.199 piaoyizy/openwrt-x86
docker exec -it openwrt bash
vim /etc/config/network
作者:是喻先森 https://www.bilibili.com/read/cv16049652/?spm_id_from=333.788.0.0#reply108556634688 出处:bilibili
视频教程
https://www.bilibili.com/video/BV1d3411J7bp/?vd_source=a76d8a93c0c784b5e3e90438be605617
版权说明
本文地址:https://www.ictzz.com/post-20.html
未标注转载均为本站远程,转载请注明文章出处: