Pfsense Vlan, Cisco SG350 problem

shetu

New Member
Jul 3, 2023
3
0
1
Hello,
I can not fix my vlan problem. I want to use pfsense vm dhcp for my device. Proxmox vm get ip from pfsense vm but not client behing Cisco Switch. I do not understand is this Switch problem or Proxmox Vlan problem.

LAN Card: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)

I crate a vlan (60) in Cisco switch, port 2 is Trunk port and port 18 is Access port.
I connect proxmox host to port 2 and wifi device to port 18.
Cisco DHCP.jpg
port vlan.jpg
vlan60.jpg
Pfsense VM.jpg
Here is my pve network config:
Code:
auto lo
iface lo inet loopback

iface enp2s0 inet manual

auto vmbr0
iface vmbr0 inet manual
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 1-4092

auto vmbr0.10
iface vmbr0.10 inet static
        address 192.168.10.30/24
#vlan10

auto vmbr0.60
iface vmbr0.60 inet manual

source /etc/network/interfaces.d/*
 
You have connected pfSense to vmbr0 which means it will be getting the tagged traffic (i.e. trunk port).

You need to either connect the pfSense NIC to the vmbr0.60 (access port) or configure VLAN 60 in the pfSense.
 
  • Did you add this VLAN to pfSense just now, or was it in place?
  • For the VMs that get an IP from the pfSense, do you configure them with a VLAN tag on their vNIC?
  • If you assign the device on VLAN 60 with a static IP address, are you able to ping the pfSense VM?
  • Have you done a packet capture on the pfSense VM?
  • Not likely related but you should use the VirtIO (paravirtualized) vNIC with pfSense.
 
  • Did you add this VLAN to pfSense just now, or was it in place?
  • For the VMs that get an IP from the pfSense, do you configure them with a VLAN tag on their vNIC?
  • If you assign the device on VLAN 60 with a static IP address, are you able to ping the pfSense VM?
  • Have you done a packet capture on the pfSense VM?
  • Not likely related but you should use the VirtIO (paravirtualized) vNIC with pfSense.
1. Yes, I add this vlan to pfsense
2. Yes i configure them with a Vlan tag on their vNIC.
3. No
4. No
5. I use VirtIO vNic with pfsense.
 
I believe you have an error in your interfaces file. You have:

Code:
auto vmbr0
iface vmbr0 inet manual
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 1-4092

The default PVID for Linux bridges is 1 . You have included VLAN 1 in your bridge-vids statement. Your switch is passing VLAN 1 untagged.

Try this code instead:

Code:
auto vmbr0
iface vmbr0 inet manual
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

Note that I have included 4093 and 4094. If you purposely excluded them previously, you must adjust that.
 
  • Not likely related but you should use the VirtIO (paravirtualized) vNIC with pfSense.
Not sure if this helps, but for me the dhcp server in pfSense did not work with "VirtIO (paravirtualized)".
Other vm's were only getting a dhcp address once I switched it to "rtl8139".
 
Not sure if this helps, but for me the dhcp server in pfSense did not work with "VirtIO (paravirtualized)".
Other vm's were only getting a dhcp address once I switched it to "rtl8139".
I have never seen an issue with VirtIO NICs not working pfSense. Netgate recommends them too. Might be something with your setup.
 
  • Like
Reactions: shetu

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!