大网数据广告活动
服务器运维问答

VLAN not working on PFSense (SG 1100) with HP switch (HP E3500-48G-PoE yl)

· 52CE 我爱测

Recently I bought a PFSense server (SG 1100) and a HP switch (HP E3500-48G-PoE yl). My idea is to create VLANs on the PFSense server, and use them on the connected HP switch. I have found a tutorial which helped me set up ( https…

问题原文

原帖链接 · MPH · CC BY-SA 4.0

Recently I bought a PFSense server (SG 1100) and a HP switch (HP E3500-48G-PoE yl). My idea is to create VLANs on the PFSense server, and use them on the connected HP switch.

I have found a tutorial which helped me set up (https://www.youtube.com/watch?v=b2w1Ywt081o). However if I connect a device to the port which I configured as the VLAN it does not get an IP lease.

PFSense configuration:
Created VLAN under interfaces > VLANs Added the appropriate interface under interfaces > assignments Enabled the DHCP server for the VLAN interface Added the firewall rules, in order for it to have internet access Since I was not 100% sure, I also added the VLAN to the switch section under interfaces > switches (I copied the configuration of LAN since that is the port where the switch is connected to)

HP Switch configuration:

Running configuration:

; J8693A Configuration Editor; Created on release #K.16.02.0026
; Ver #10:08.03.81.30.02.34.59.2c.6b.ff.f7.fc.7f.ff.3f.ef:26
hostname "HP-Switch-3500yl-48G"
module 1 type j86yya
module 2 type j86xxa
trunk 1 trk1 trunk
snmp-server community "public" unrestricted
vlan 1
   name "DEFAULT_VLAN"
   no untagged 33
   untagged 2-32,34-48,Trk1
   ip address dhcp-bootp
   exit
vlan 2
   name "VTest"
   untagged 33
   no ip address
   exit
spanning-tree Trk1 priority 4

I also tried to set the IP config of vlan 2 to dhcp but that didn't work either.

If I connect a PC to port 2-32 / 34-48 it gets an IP address of the LAN configuration of PFSense. However if I connect a PC to port 33 it won't get an IP address assigned. I hope somebody can help me with this issue.

已采纳解答

原帖链接 · MPH · CC BY-SA 4.0

After lots of debugging, I contacted Netgate, who helped me out. All the settings are correct except the part I was not sure about.

You have to go to interfaces > switches > VLANs tab, and add your VLAN and tag both 0 (default) and 2 (LAN).

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-12-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。