uuair | docker 用macvlan建立的网络,无法访问宿主。网上说增加一个macvlan的虚拟网卡可以解决,但最后说道把设置网卡这部放到了rc.local里面开机启动哦,但ubuntu20已经没有这个文件了,你们是怎么处理的? | 16:52 |
---|---|---|
uuair | ip link add mynet link eth0 type macvlan mode bridge | 16:52 |
uuair | ip addr add 192.168.0.10 dev mynet | 16:52 |
uuair | ip link set mynet up | 16:52 |
uuair | 这三个放到rc.local | 16:52 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!