https://notesail.com/posts/macvlan-host.html
# 以下操作都在宿主机上运行,新增一个叫mynet(不要和容器的macvlan重名)的macvlan接口
ip link add mynet link eth0 type macvlan mode bridge
# 为该接口分配ip,并启用
ip addr add 192.168.0.10 dev mynet
ip link set mynet up
# 修改路由,使宿主机到192.168.0.100的通信全部经由mynet进行
ip route add 192.168.0.100 dev mynet