Created
July 30, 2018 17:25
-
-
Save MatthaeusHarris/e7ca0e1f2221f526e931afbdfefc8fb1 to your computer and use it in GitHub Desktop.
OpenVSwitch Proxmox VLAN configuration
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 | |
allow-vmbr0 vlan4 | |
iface vlan4 inet static | |
address 172.16.4.38 | |
netmask 255.255.254.0 | |
gateway 172.16.4.1 | |
ovs_type OVSIntPort | |
ovs_bridge vmbr0 | |
ovs_options tag=4 | |
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif | |
allow-vmbr0 enp65s0 | |
iface enp65s0 inet manual | |
ovs_bridge vmbr0 | |
ovs_type OVSPort | |
auto vmbr0 | |
allow-ovs vmbr0 | |
iface vmbr0 inet manual | |
ovs_type OVSBridge | |
ovs_ports enp65s0 vlan4 vlan1 vlan2 vlan6 vlan7 vlan8 vlan16 vlan255 vlan256 vlan256 vlan258 vlan259 |
If you don't need OVS, PVE 6.3 works just fine using the stock Linux VLAN configurations too.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot.
Works perfectly on a PVE v6.3-3 with a trunk on a Cisco 2960PC12-L switch.