auto macvlan0 iface macvlan0 inet static address 192.168.143.91/32 pre-up ip link add macvlan0 link br0 type macvlan mode bridge post-down ip link del macvlan0 link br0 type macvlan mode bridge post-up ip r add 192.168.0.242 dev macvlan0 src post-up ip r add 192.168.0.241 dev macvlan0 src post-up iptables -t nat -I POSTROUTING -d 192.168.0.242 -j SNAT --to-source post-up iptables -t nat -I POSTROUTING -d 192.168.0.241 -j SNAT --to-source