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

    How to resolve host with two IP addresses?

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 4 Posters 716 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.
    • M
      mewsense
      last edited by

      I have a laptop on my network which is sometimes wired and sometimes on wifi. Is it possible to map the name of the laptop to both the wired and wifi IP addresses? I want to have a DHCP reservation so the IP addresses for each interface always remain the same and so that I can address the laptop over the network by name and have it resolve automatically whether it's on wifi, or wired.

      How can I do this?

      1 Reply Last reply Reply Quote 0
      • A
        asistio04
        last edited by

        Try the DHCP Static Mapping

        Services >DHCP Server > DHCP Static Mappings for this interface click +

        1 Reply Last reply Reply Quote 0
        • M
          mewsense
          last edited by

          If I add the same hostname twice with different IPs I get this error:

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            If you're only concerned about being able to address it via hostname, why do you care if it has the same IP address?  Assuming you're using pfSense for DNS, just set it to register DHCP leases in DNS.

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

              Agreed if you call it laptop.yourdomain.tld - and this is registered in dns be it has IP on wired or wireless what does it matter that those address are the same?  Your not going to be able to do this with dhcp.  You can not assign reservations for 2 different macs to get the same IP.. Defeats the whole purpose of a reservation.

              If you want it to get the same IP be it wireless or wired, change the mac on one of the interfaces to be the same as the other.  Just make damn sure you never have both the wired and wireless enabled at the same time.

              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
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.