G
G
Gring762016-01-28 11:46:56
Network administration
Gring76, 2016-01-28 11:46:56

How to set up vlan in Proxmox 4?

Hello.
Faced the problem of setting up vlan in Proxmox 4.1
Previously, everything was done and worked with the vlan package.
Now, when you try to install the vlan package, proxmox-ve is deleted.
On the Proxmox forum, they told me that vlan (package) is no longer supported and needs to be done via GUI or ip.
I understand that now Open vSwith has come to replace vlan. Advise a clear
dock for settings.
###############################
Added after reading broken docks.
cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto eth1
iface eth1 inet manual
# 2 interfaces merged into 1 (LACP on DLINK)
auto bond1
iface bond1 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 4
auto bond1.1
iface bond1.1 inet manual
vlan-raw-device bond1
auto bond1.76
iface bond1.76 inet manual
vlan-raw-device bond1
auto bond1.77
iface bond1.77 inet manual
vlan-raw-device bond1
auto bond1.78
iface bond1.78 inet manual
vlan-raw-device bond1
# Это уже бридж на vlan
auto vmbr1
iface vmbr1 inet static
address 192.168.100.2
netmask 255.255.255.0
bridge_ports bond1.1
bridge_stp off
bridge_fd 0
auto vmbr76
iface vmbr76 inet static
address 10.10.76.76
netmask 255.255.255.0
bridge_ports bond1.76 bridge_stp
off bridge_fd
0
auto vmbr77 iface
vmbr77 inet static
address 0.0.0.0
netmask 0.0.0.0
bridge_ports bond1.77 bridge_stp 8 inet static address 0.0.0.0 netmask 0.0.0.0 bridge_ports bond1.78 bridge_stp off bridge_fd 0 This is what it looks like in the WEB interface.
610a354d02e04423b96dd0115be07dab.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
juffinhalli, 2016-02-04
@juffinhalli

Про Linux bridge уже не скажу - не пользуюсь.
Про OVS
Если охота заглянуть под капот то примеры тут. Реальный случай где без ОVS не обойтись это проброс VLAN через OpenVPN, но я не думаю что такое следует проворачивать на самом сервере Proxmox.
Если нет, то VLAN вполне себе настраивается из GUI. В настройках сервера привяжи к любой сетевой OVS-ку. При создании VM выбирай OVS мост и указывай нужный тебе VLAN.
Проблем с OVS пока не замечал.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question