Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Is it possible to have 2 or more wan interfaces on single NIC?

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 730 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      remlei
      last edited by

      Im subscribed to a ISP that lease static IP via PPPoE. And to get the 3 static IP's that I need, I have to login to each PPP credential that my ISP gave me.

      Is it possible to have some sort of 2 or more virtual interface that is binded to a single NIC? Since I need a multiple interface that have different mac address on each interface. In linux I can do this using the ip link add command using the macvlan kernel module, with that I can have as many as interface (virtual) I want in single NIC with each of them had their own mac address, and I was able to get all the 3 static IP in this way. But im clueless about freebsd, if is this even possible.

      I can do a workaround with 6 port NIC but that's dumb since im connected to same ISP and concentrating them on single cable would be great, since its only 300/300 mbit connection.

      1 Reply Last reply Reply Quote 0
      • D Offline
        doktornotor Banned
        last edited by

        Interfaces - Assign - VLANs.

        1 Reply Last reply Reply Quote 0
        • R Offline
          remlei
          last edited by

          vlans wont work, since im not using vlan on wan interface. its a untagged traffic. and all wan interface connect to same untagged traffic.

          yes I know I can do work around again with this using a managed switch to but still that's dumb and nothing different having a 6 port NIC. I can also do this under VMware where creating more virtual NICs attached on a single physical nic of course I prefer running it baremetal.

          I need a single NIC (port) to have multiple wan interface (virtual interface).

          1 Reply Last reply Reply Quote 0
          • johnpozJ Online
            johnpoz LAYER 8 Global Moderator
            last edited by

            I need a single NIC (port) to have multiple wan interface (virtual interface)."

            That is done with VLANS!!  If not your just running multiple layer 3 on the same layer 2 which is BORKED!!

            Whenever you create a "subinterface" you will always be tagging it with a vlan ID..  This is on every firewall, router I have ever worked on since they started making firewalls and routers.  And also when this is done on any sort of OS, be it linux/bsd, etc..

            Creating multiple IPs on the same physical interface that are in different networks without tagging is BORKED!!

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • D Offline
              doktornotor Banned
              last edited by

              @remlei:

              vlans wont work, since im not using vlan on wan interface. its a untagged traffic. and all wan interface connect to same untagged traffic.

              Well, that is completely broken idea as noted above, plus frankly, if those 3 PPPoE WANs are using the same gateway, you will just get an unsupported setup broken in various more or less cryptic ways, VLANs or not.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.