How to use ports as 'untagged vlan ports' aka 'vlan access' ports



  • Hi all,

    Not sure where to categorize this but here goes.

    I have a device with 8 physical interfaces.

    I've set up a WAN, and a tagged VLAN10 and VLAN 20 LAN port (trunk). Each with a g/w address and unique dhcp etc…

    What I would like to do is to use the other interfaces as simply L2 untagged vlan ports (access ports). For example.

    WAN - da internets
    LAN (Trunk) - tagged uplink w VLAN10 and VLAN20
    opt1 - untagged VLAN10
    opt2 - untagged VLAN20
    ...

    This is oh so simple on a normal switch but I can't seem to figure it out on a pfsense device.

    Any help is much appreciated!

    Cheers
    ~M


  • LAYER 8 Global Moderator

    "This is oh so simple on a normal switch but I can't seem to figure it out on a pfsense device."

    Most likely because pfsense is not a switch ;)  You can for sure use these other interfaces for other untagged vlans.  But no the ports are not switch ports..



  • Get a managed switch that can do VLANs, pfSense makes a very bad switch because it's not designed for that.



  • OK fair enough  :P

    So how would I go about using an interface as an untagged vlan port? When I go to VLANs 'area' it's just for tagging…?

    Thank you



  • @ziegi:

    OK fair enough  :P

    So how would I go about using an interface as an untagged vlan port? When I go to VLANs 'area' it's just for tagging…?

    Thank you

    You can't on pfSense because there's no PVID functionality to strip the tags on outgoing and attach tags on incoming like you would have on a VLAN capable switch. PfSense can only do tagged VLANs on an interface.



  • I've set up a WAN, and a tagged VLAN10 and VLAN 20 LAN port (trunk). Each with a g/w address and unique dhcp etc…

    I'm not sure you understand how VLANs work.  Based on your description, I think you're saying you want all 3 on the same interface.  Is that correct?  Also, a trunk port includes all VLANs, though some switches allow you to configure which VLANs are passed.  Any VLAN has a VLAN tag on it, though an access port assigned to that VLAN will strip off the tag.  You'll need a managed switch to separate the VLANs into individual networks.


  • Galactic Empire

    @kpa:

    @ziegi:

    OK fair enough  :P

    So how would I go about using an interface as an untagged vlan port? When I go to VLANs 'area' it's just for tagging…?

    Thank you

    You can't on pfSense because there's no PVID functionality to strip the tags on outgoing and attach tags on incoming like you would have on a VLAN capable switch. PfSense can only do tagged VLANs on an interface.

    You could pop an IP address on the parent interface ( via  Interfaces -> LAN ) packets will be untagged :-

    igb0: flags=8943 <up,broadcast,running,promisc,simplex,multicast>metric 0 mtu 1500
    options=500bb <rxcsum,txcsum,vlan_mtu,vlan_hwtagging,jumbo_mtu,vlan_hwcsum,vlan_hwfilter,vlan_hwtso>ether 00:08:a2:0a:9d:cb
    inet6 fe80::208:a2ff:fe0a:9dcb%igb0 prefixlen 64 scopeid 0x1
    inet 172.16.1.1 netmask 0xffffff00 broadcast 172.16.1.255
    inet6 2a02:xxxx:xxxx:1::1 prefixlen 64
    nd6 options=21 <performnud,auto_linklocal>media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active

    igb0_vlan2: flags=8943 <up,broadcast,running,promisc,simplex,multicast>metric 0 mtu 1500
    options=3 <rxcsum,txcsum>ether 00:08:a2:0a:9d:cb
    inet6 fe80::208:a2ff:fe0a:9dcb%igb0_vlan2 prefixlen 64 scopeid 0xb
    inet 172.16.2.1 netmask 0xffffff00 broadcast 172.16.2.255
    inet6 2a02:xxxx:xxxx:2::1 prefixlen 64
    nd6 options=21 <performnud,auto_linklocal>media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
    vlan: 2 vlanpcp: 0 parent interface: igb0

    igb0_vlan3: flags=8943 <up,broadcast,running,promisc,simplex,multicast>metric 0 mtu 1500
    options=3 <rxcsum,txcsum>ether 00:08:a2:0a:9d:cb
    inet6 fe80::208:a2ff:fe0a:9dcb%igb0_vlan3 prefixlen 64 scopeid 0xc
    inet 172.16.3.1 netmask 0xffffff00 broadcast 172.16.3.255
    inet6 2a02:xxxx:xxxx:3::1 prefixlen 64
    nd6 options=21 <performnud,auto_linklocal>media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
    vlan: 3 vlanpcp: 0 parent interface: igb0

    Then do something like this on your switch, I've changed the untagged VLAN from VLAN 1 and connect igb0 to GE1 :-


    </full-duplex></performnud,auto_linklocal></rxcsum,txcsum></up,broadcast,running,promisc,simplex,multicast></full-duplex></performnud,auto_linklocal></rxcsum,txcsum></up,broadcast,running,promisc,simplex,multicast></full-duplex></performnud,auto_linklocal></rxcsum,txcsum,vlan_mtu,vlan_hwtagging,jumbo_mtu,vlan_hwcsum,vlan_hwfilter,vlan_hwtso></up,broadcast,running,promisc,simplex,multicast>



  • You could pop an IP address on the parent interface ( via  Interfaces -> LAN ) packets will be untagged :-

    Alias IP addresses are not the same thing as VLANs.  Alias addresses simply mean that an interface can communicate over more than one subnet, but there is no isolation between subnets other than that.  VLANs, on the other hand appear as though they're physically separate networks, with communication between them only possible via a router.  Other than trunk ports, interfaces will only work with the VLAN that's configured on it.  So, you could have an interface configured to handle, for example, VLAN5 and it will ignore traffic for any other VLAN that appears on the wire.


  • Banned

    Well, answer to this thread. You DO NOT do any such thing. pfSense is not a switch. Abandon the futile effort here.


  • Galactic Empire

    @JKnott:

    You could pop an IP address on the parent interface ( via  Interfaces -> LAN ) packets will be untagged :-

    Alias IP addresses are not the same thing as VLANs.

    Did I actually say that ?

    What I suggested would and does work if you want untagged and tagged packets exiting the same port on the router.



  • OK thanks all.

    It's just too bad because I have a device with several unused IF's and it sure would save space, time and money to not have to use another managed switch. Alas, that's exactly what I'll do.

    Again, thanks!


Log in to reply