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

    Multiple IP to one MAC

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 3 Posters 4.8k 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.
    • V
      voytec
      last edited by

      How can I assign multiple IPs to single MAC address in DHCP?

      1 Reply Last reply Reply Quote 0
      • P
        podilarius
        last edited by

        I don't know if that is possible. Are you going to be assigning it to a different subnet? In *nux you can create a virtual interface and have it setup for dhcp. You should be able to assign based on that. I don't know about windows os. unless you are setting a reservation, it is just going to get a different address in the same network and no do any real good.

        1 Reply Last reply Reply Quote 0
        • V
          voytec
          last edited by

          now I've double NAT 1:1

          router on FreeBSD (natd, ipfw):
           WAN: publicIP /24 with "IP Alias" publicIP_1, publicIP_2, publicIP_3
           LAN: static_DHCP with StaticARP 10.10.0.0/24
           NAT 1:1: publicIP_1 <-> 10.10.0.100,
                         publicIP_2 <-> 10.10.0.101,
                         publicIP_3 <-> 10.10.0.102

          and in LAN network pfSense box:
               WAN IP from DHCP: 10.10.0.100 with "IP Alias" 10.10.0.101, 10.10.0.102
               local_LAN: 192.168.0.1/24
               NAT 1:1: 10.10.0.101 <-> 192.168.0.10,
                             10.10.0.102 <-> 192.168.0.20

          in local_LAN:
                      Server1 IP: 192.168.0.10
                      Server2 IP: 192.168.0.20

          and working efect:
                publicIP_1 <-> 10.10.0.100 (pfsense b0x)
                publicIP_2 <-> 192.168.0.10 (Serwer_1)
                publicIP_3 <-> 192.168.0.20 (Serwer_1)

          I must change FreeBSD router to pfSense and I do not know how to do this configuration.

          I know that this DHCP configuration does nosense but is associated with StaticARP.

          1 Reply Last reply Reply Quote 0
          • P
            podilarius
            last edited by

            Basically it will work the same way freebsd router. You will create WAN address and then assign either IP alias or CARP to WAN IPs. Then you will use the 1:1 NAT to point publicip_1 to privateip_1. Then you will create all the rules associated with that. Are you looking to get rid of the double NAT or are you replacing the router with a different pfsense machine? What is your current dhcp config?

            1 Reply Last reply Reply Quote 0
            • V
              voytec
              last edited by

              @podilarius:

              Are you looking to get rid of the double NAT or are you replacing the router with a different pfsense machine? What is your current dhcp config?

              How to configure pfsense routers for this
              87.92.15.10 <–> 192.168.0.10
              87.92.15.20 <--> 192.168.0.20

              the problem is: staticARP works only with staticDHCP, but I can't add two identical MACs for 10.10.0.100, 10.10.0.101, 10.10.0.102

              net.jpg_thumb
              net.jpg

              1 Reply Last reply Reply Quote 0
              • W
                wallabybob
                last edited by

                @voytec:

                How to configure pfsense routers for this
                87.92.15.10 <–> 192.168.0.10
                87.92.15.20 <--> 192.168.0.20

                On pfSense 1 create 1:1 NAT  (Firewall -> NAT, 1:1 tab) on the WAN interface: 87.92.15.10 –> 192.168.0.10 and 87.92.15.20 --> 192.168.0.20 and add a static route to 192.168.0.0/24 with gateway 10.10.0.100. You will also need to disable NAT on pfSense2.

                1 Reply Last reply Reply Quote 0
                • P
                  podilarius
                  last edited by

                  I don't know about IP Alias, but if you used CARP instead, the MAC Addresses will be slightly different. Are you hard assigning the addresses even though they are in DHCP reservations?

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