SDN configuration not working

da-alb

Member
Jan 18, 2021
121
3
23
Hi,

I have installed a fresh 8.2 on a HPE server.

The networking is configured as such:

ens3f0 is the network card used.
vmbr0 is configured with the management IP and the network card use is ens3f0.
In SDN i have a zone called VlanZone and in it I have 2 VNets VL1 and VL20.
VL1 is configured with Tag: 1
VL20 is configured with Tag: 20

both are assigned to VlanZone zone.

When i configure a LXC container or VM and set its network to either VL1 or VL20 I don't have networking inside the guest.

What am I doing wrong?

Thanks
 
When i configure a LXC container or VM and set its network to either VL1 or VL20 I don't have networking inside the guest.
What exactly do you mean by that? How are you checking that? Is the interface down? Are you not able to ping? What exactly are you testing?


Can you post your SDN configuration as well as the configuration of the container / VM?

Code:
cat /etc/pve/sdn/*.cfg
pct config <ctid> # for containers
qm config <vmid> # for VMs
 
What exactly do you mean by that? How are you checking that? Is the interface down? Are you not able to ping? What exactly are you testing?


Can you post your SDN configuration as well as the configuration of the container / VM?

Code:
cat /etc/pve/sdn/*.cfg
pct config <ctid> # for containers
qm config <vmid> # for VMs

root@pms-174:~# cat /etc/pve/sdn/*.cfg
vnet: VL1
zone VlanZone
alias LAN
tag 1

vnet: VL20
zone VlanZone
alias WAN
tag 20

vlan: VlanZone
bridge vmbr0
ipam pve

root@pms-174:~# pct config 1001
arch: amd64
cores: 2
cpulimit: 2
features: nesting=1
hostname: sdn-test
memory: 2048
net0: name=eth0,bridge=VL1,firewall=1,hwaddr=BC:24:11:32:8D:11,type=veth
ostype: debian
rootfs: localzfs:subvol-1001-disk-0,size=8G
swap: 512
unprivileged: 1

I should receive DHCP but I don't and the interface is up in the guest.
 
Generally speaking, you usually don't want to use VLAN with ID 1, since it is often reserved for special purposes by vendors of switches (e.g. Cisco does recommend not using it).

Can you ping anything inside the VLAN?
How does the generated network config look like?

Code:
cat /etc/network/interfaces
cat /etc/network/interfaces.d/*
 
Generally speaking, you usually don't want to use VLAN with ID 1, since it is often reserved for special purposes by vendors of switches (e.g. Cisco does recommend not using it).

Can you ping anything inside the VLAN?
How does the generated network config look like?

Code:
cat /etc/network/interfaces
cat /etc/network/interfaces.d/*
Hi, the issue is only with VLAN 1, the other VLAN works just fine. It's a bug or it's normal?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!