macvlan 配置步骤: docker network create -d macvlan --subnet=192.168.0.0/24 --ip-range=192.168.0.192/26 --gateway=192.168.0.10 --ipv6 --subnet=fd00:8::/80 --gateway=fd00:8::1 -o macvlan_mode=bridge -o parent=eth1 macnet ip link add macvlan link eth1 type macvlan mode bridge ip addr add 192.168.0.10/24 dev macvlan ip -6 addr add fd00:8::1 dev macvlan ifconfig macvlan up ip route add 192.168.0.192/26 dev macvlan ip -6 route add fd00:8::/80 dev macvlan
测试 container docker run -d --restart=always --net=macnet --ip=192.168.0.254 --name=mtool_vlan praqma/network-multitool