HP switch intervlan routing & pfsense

  • Hi,

    I have a PFSense Running and a HP 1920 layer 3 switch.
    I would like to implement the layer 3 functionality of my switch. I have certain vlans I would like the switch to route.
    My pfsense has a LAG to the switch, and all vlans are setup on my pfsense and trunked to my switch.

    I configured a couple of vlans with an IP address. This as I read it should be enough to enable the L3 functionality and perform interVLAN routing.
    I removed vlan160 (192.168.160.x) as interface from pfsense. So the switch/router is now the one that knows about vlan160. PFsense doesn't know it.

    Now when I connect a client from that vlan to the internet I see the following.

    My client has IP and has default gw which is the switch
    The switch has IP and has a default route to which is the interface on pfsense of my managament network (mgmt interface).

    I actually see DNS traffic and HTTPS traffic happening on my PFSense. Sourced going out the mgmt interface to the internet.
    However when I allow that traffic nothing happens.

    From PFSense I cannot ping to I think it just doesn't have the route. But how can I create the proper route on PFSense?

    My idea is that PFSense firewalls some of the vlans. and the rest of the routing happens internally on the L3 switch.

    Hope my story makes sense. Can somebody give me some guidance?


  • So I found the option to add a virtual IP to PFSense.

    I added

    I then was able to add a gateway to my pfsense. So I added on my MGMT interface gateway

    I then added the static route to gateway

    However still no luck. I am not able to ping my switch

    root: ping
    PING ( 56 data bytes
    ping: sendto: No route to host
    ping: sendto: No route to host
    ping: sendto: No route to host

  • If you want your switch to do L3 routing for you then you don't need to setup the VLANs in pfSense. Just run a single transit network from pfSense to your switch and you're fine.

    …except for you want your pfSense to be the DHCP server for those subnets. Then don't get rid of the VLANs. But still create a transit network between your switch and a pfSense interface. A /30 is sufficient for that.

  • Hi Chris,

    I was under the assumption that routing it all through my management network would work. But I must have introduces something assymetric there I think.
    I followed your advices and created a seperate vlan on my PFSense for transit. Configured it on my switch with vlan interface IP.
    I then created the gateway on pfsense and was able to route the network I created as a test.

    Next step is reconfiguring all servers with their new default gateway.

    Thanks you so much. very happy.

Log in to reply