Last active
February 10, 2018 16:58
-
-
Save martiell/4682478 to your computer and use it in GitHub Desktop.
macvlan and bridge networking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto lo | |
iface lo inet loopback | |
iface eth0 inet manual | |
auto br0 | |
iface br0 inet dhcp | |
bridge_ports eth0 | |
auto macvlan0 | |
iface macvlan0 inet manual | |
up ip link add link br0 name macvlan0 type macvlan mode bridge | |
up ifconfig macvlan0 up | |
up route add -net 192.168.75.0/24 macvlan0 | |
up route del -net 192.168.75.0/24 br0 | |
down route add -net 192.168.75.0/24 br0 | |
down ip link delete macvlan0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment