[PVE-User] Proxmox 5 (LACP/Bridge/VLAN120)
Lutz Willek
lutz.willek at belug.de
Sat Jan 27 11:03:44 CET 2018
Am 23.08.2017 um 03:40 schrieb Devin Acosta:
> I need to configure Proxmox 5.x with the following.
>
> Bond of 2 interfaces using LACP
> Bridge off Bond0, with IP on VLAN 120 (10.100.100.8/24)
> The network switch doesn’t have native VLAN, so the IP has to be on the
> TAGGED VLAN 120.
>
> Please help. ;)
Hi Devin,
This is easy. The external interfaces in the example below are named
eno1 and eno2. The interfaces using LACP -> bond0.
The example below I use more than one vlan, just adapt to your needs:
* vlan 1 (used for "foo" purpose)
* vlan 10 (used for "blah" purpose)
* vlan 100 (used for "blubb" purpose)
* vlan 120 (used for "administration",i.e. the proxmox server is
accessible via this vlan)
If you are using comments in the configuration file (like I did) in
exact this order/placement, then the same comment will also be shown via
web GUI.
Regards Lutz
Example config:
root at proxmox:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual
auto bond0
iface bond0 inet manual
slaves eno1 eno2
bond_miimon 100
bond_mode 802.3ad
# LACP eno1 and eno2
auto vlan1
iface vlan1 inet manual
vlan_raw_device bond0
# VLAN1: FOO
auto vlan10
iface vlan10 inet manual
vlan_raw_device bond0
# VLAN10: BLAH
auto vlan100
iface vlan100 inet manual
vlan_raw_device bond0
# VLAN100: BLUBB
auto vlan120
iface vlan120 inet manual
vlan_raw_device bond0
# VLAN120: ADMINISTRATION
auto vmbr1
iface vmbr1 inet manual
bridge_ports vlan1
bridge_stp off
bridge_fd 0
up ifup ip l set up vmbr1 || true
down ip l set down vmbr1 || true
# FOO Network (Default)
auto vmbr10
iface vmbr10 inet manual
bridge_ports vlan10
bridge_stp off
bridge_fd 0
up ifup ip l set up vmbr10 || true
down ip l set down vmbr10 || true
# BLAH Network
auto vmbr100
iface vmbr100 inet manual
bridge_ports vlan100
bridge_stp off
bridge_fd 0
up ifup ip l set up vmbr100 || true
down ip l set down vmbr100 || true
# BLUBB Network
auto vmbr120
iface vmbr120 inet static
address 10.100.100.8
netmask 255.255.255.0
gateway 10.100.100.1
bridge_ports vlan120
bridge_stp off
bridge_fd 0
up ifup ip l set up vmbr120 || true
down ip l set down vmbr120 || true
# ADMINISTRATION Network
# END OF FILE
#EOF
More information about the pve-user
mailing list