• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.
  • S
    savago
    last edited by May 20, 2012, 10:10 AM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by May 20, 2012, 12:05 PM

      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
      • S
        savago
        last edited by May 20, 2012, 5:16 PM

        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 May 20, 2012, 8:28 PM

          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 Jul 31, 2012, 9:13 PM Jul 31, 2012, 7:10 PM

            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 Aug 3, 2012, 6:43 AM

              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 Aug 3, 2012, 3:34 PM

                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.
                  [[user:consent.lead]]
                  [[user:consent.not_received]]