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

    Second MAC address to a network adapter

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 4 Posters 4.5k 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.
    • savagoS
      savago
      last edited by

      It is a possible to add second MAC address to a network adapter or create virtual network interfaces with separate mac addresses ?
      In linux especially openwrt i use macvlan

      
      ip link add link eth1 eth2 type macvlan
      ifconfig eth2 hw ether 00:24:01:f5:1b:84
      
      ip link add link eth1 eth3 type macvlan
      ifconfig eth3 hw ether 00:24:01:f5:1b:85
      
      ip link add link eth1 eth4 type macvlan
      ifconfig eth4 hw ether 00:24:01:f5:1b:86
      
      ip link add link eth1 eth5 type macvlan
      ifconfig eth5 hw ether 00:24:01:f5:1b:87
      
      ip link add link eth1 eth6 type macvlan
      ifconfig eth6 hw ether 00:24:01:f5:1b:88
      
      

      Sys 2.0-RC1: Intel Atom N330 Dual Core @1.6 2048M Ram 40GHD

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You can probably use virtual IP alias for this:
        http://doc.pfsense.org/index.php/What_are_Virtual_IP_Addresses%3F

        I'm not entirely sure if the MAC address is inherited though.  :-\

        Steve

        1 Reply Last reply Reply Quote 0
        • savagoS
          savago
          last edited by

          With aliases i can add  IP addresses to an interface,but with same mac. In my scenario i need each one IP addresses has different mac.

          Sys 2.0-RC1: Intel Atom N330 Dual Core @1.6 2048M Ram 40GHD

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            only way to do that is with CARP IPs, they use virtual MACs determined by the VHID chosen.

            1 Reply Last reply Reply Quote 0
            • S
              spiritbreaker
              last edited by

              Hi cmb,

              i got same Problem..my ISP assigns IP via mac address. To use a second Ip u need a second mac address.

              I solved it by using a switch between ISP Modem and Pfsense. Then i connect 2 physical PfSsense interfaces to the switch (WAN and WAN2).
              The sticking point is that 2 WAN connections share one real internet connection. Then u cant use trafficshaper properly right?

              To use a CARP MAC address is not really useful if it changes on every reboot.

              Maybe there is a solution -> http://www.melen.org/u/jan/wp/?p=82.

              Is it applicable to pfsense?

              cya

              Pfsense running at 11 Locations
              -mobile OPENVPN and IPSEC
              -multiwan failover
              -filtering proxy(squidguard) in bridgemode with ntop monitoring

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                CARP MACs never change, but they can't be used to pull IPs from DHCP. You can just add another physical NIC for that though.

                1 Reply Last reply Reply Quote 0
                • S
                  spiritbreaker
                  last edited by

                  Hi cmb,

                  thx for reply… yeah i know :( but i figured out that my problem is there http://forum.pfsense.org/index.php/topic,52196.0.html

                  Hope u can help me.

                  ty cya

                  Pfsense running at 11 Locations
                  -mobile OPENVPN and IPSEC
                  -multiwan failover
                  -filtering proxy(squidguard) in bridgemode with ntop monitoring

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