Hi, I'm trying to set up vlans with proxmox, this is my network setup:
Router/Switch-(native vlan 1 and tagged vlan 100)->proxmox host
And here is my /etc/network/interfaces
If use vmbr1 on a container it works fine but if i try to use it on a VM it doesn't work:
(on the vm)
Router/Switch-(native vlan 1 and tagged vlan 100)->proxmox host
And here is my /etc/network/interfaces
auto lo
iface lo inet loopback
iface enp3s0f2 inet manual
auto enp3s0f2.100
iface enp3s0f2.100 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.0.205
netmask 255.255.255.0
gateway 192.168.0.1
bridge_ports enp3s0f2
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 192.168.2.205
netmask 255.255.255.0
gateway 192.168.2.1
bridge_ports enp3s0f2.100
bridge_stp off
bridge_fd 0
iface lo inet loopback
iface enp3s0f2 inet manual
auto enp3s0f2.100
iface enp3s0f2.100 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.0.205
netmask 255.255.255.0
gateway 192.168.0.1
bridge_ports enp3s0f2
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 192.168.2.205
netmask 255.255.255.0
gateway 192.168.2.1
bridge_ports enp3s0f2.100
bridge_stp off
bridge_fd 0
If use vmbr1 on a container it works fine but if i try to use it on a VM it doesn't work:
(on the vm)
[root@testvm ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 1c:1b:0d:91:06:c9 brd ff:ff:ff:ff:ff:ff
valid_lft forever preferred_lft forever
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 1c:1b:0d:91:06:c9 brd ff:ff:ff:ff:ff:ff
valid_lft forever preferred_lft forever