Multi wan on a single NIC using vlans and openwrt



  • **Hello everybody

    I am new to vlans , I using a pc Pfsense  with 3 NICs ( 2 for wans and 1 for the lan ) , i would like to add more Wans using a port multiplier instead of adding more nics to the station  , i did a search and found that it can be done using vlans and switch.

    first this is what i want to do :**

    i set up the vlans in the pfsense , set their interfaces to get auto ip from DHCP , also theire rules ..

    the only thing i still need to do is to setup the router to work as a vlan switch

    I would really appreciate it if you could help me with that
    thanks in advance



  • Hi,

    If you have 4 WANs coming into your Netgear and want them to come into your pfSense box on 1 port it can be done with vlans.

    So on that port you will want to create 3 Vlans in pfsense and assign them to an interface.

    So the interface assignments should have:

    WAN1    xl0
    WAN2    VLAN xxx on xl0
    WAN3    VLAN xxx on xl0
    WAN4    VLAN xxx on xl0

    The Vlan tag numbers are important for the next step

    On your Switch create 3 additional Vlans with the tag numbers that you used in pfSense.

    Each port on the switch has to have an untagged VLAN.

    So on the Switch where the WAN connections come in you will want that VLAN to be untagged on that port and the rest of the vlans off for that port.

    So if port 1 WAN1 comes in then leave that one alone and leave the rest of the vlans off for that port.
    Then if port 2 is WAN2 then set that port to be untagged for the VLAN id of the WAN2 VLAN and off for the rest of the Vlans.
    Then if port 3 is WAN3 then set that port to be untagged for the VLAN id of the WAN3 VLAN and off for the rest of the Vlans.
    Then if port 4 is WAN4 then set that port to be untagged for the VLAN id of the WAN4 VLAN and off for the rest of the Vlans.

    Then the port to the pfsense box you will want WAN1 to be untagged on that port and the rest of them to be tagged on that port.


Log in to reply