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

    Multiple IPv4 Address on One Interface

    General pfSense Questions
    5
    12
    676
    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.
    • A
      archedraft
      last edited by

      Changing that camera's IP address to one that falls in the 192.168.10.1 DHCP range is my desired outcome. The issue I have to overcome is connecting to the camera's Web interface for the first time. In the past, I find an old laptop, force it's IP to 192.168.1.5. Then I log into the camera and change it's settings to use my DHCP to assign the IP. I was hoping that I could somehow bypass that step and just connect my camera to my network and access the address 192.168.1.108. Maybe something with a Virtual IP Address but I haven't figured out if that is possible yet.

      JKnottJ V 2 Replies Last reply Reply Quote 0
      • JKnottJ
        JKnott @archedraft
        last edited by

        @archedraft

        While pfsense supports aliases, another method I have used is to create a static arp for the device, so you can give it any address you want. Also, some cameras have a configuration app that can find the camera, no matter what the assigned address.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        A 1 Reply Last reply Reply Quote 1
        • V
          viragomann @archedraft
          last edited by

          @archedraft
          Of course you can assign an additional subnet to an interface.
          Go to Firewall > Virtual IPs and add an IP Alias which is within the subnet of the cam.
          However, in addition you have to add an outbound NAT rule translating IPs in outgoing packets to that virtual IP.

          So I'd rather take a notebook or computer and set it an IP in the cams subnet.

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

            What camera's do not default to dhcp? Curious..

            While sure many iot type devices may fall back to a default 192.168 address if no dhcp server..

            Why would you not just let it come up dhcp - then move this dhcp address to a reservation so it has an ip you want it to have on your network vs just a dhcp one.

            I do this with all of my iot devices. I just setup 8 new lightbulbs.. Let them come up dhcp, and then just set their reservations to be specific. Did this with 2 echo dots as well - couldn't pass up the 19$ for the 3rd gen dots.. So put one in the kitchen and guest room.

            Sure you can create vip on pfsense to be on whatever network you want. But how does that help you connect to the camera? Is this on some specific vlan and your doing source natting while you connect to it from some other vlan where your pc/laptop is that your connecting to the camera?

            You could also just setup a 2nd IP on your pc/laptop to allow you to connect to these devices with the wrong IP, etc.

            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.7.2, 24.11

            A 1 Reply Last reply Reply Quote 0
            • A
              archedraft @JKnott
              last edited by

              @JKnott Good call on the configuration app! I forgot about that. Makes life much easier.

              1 Reply Last reply Reply Quote 0
              • JKnottJ
                JKnott @viragomann
                last edited by JKnott

                @johnpoz

                Actually, a lot of them aren't even capable of DHCP. I set up a lot of Axis cameras and had to do what I mentioned. Either use a static arp for the MAC address or use the setup app. IIRC, Hikvision cameras were the same.

                PfSense running on Qotom mini PC
                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                UniFi AC-Lite access point

                I haven't lost my mind. It's around here...somewhere...

                1 Reply Last reply Reply Quote 0
                • A
                  archedraft @johnpoz
                  last edited by

                  @johnpoz Dahua, Hikvision, and any of the rebrands of those brands come with that static IP. I agree, it is strange to not just set them to default to DHCP. My understanding is that those cameras are not really meant to be sold to home owners, the intended buyer is a business that will install them on office buildings, etc. I wonder if the installers prefer to always know what the IP will be as they install the cameras and change them at that time.

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

                    That is just moronic.. So I want to setup say multiple camera's - they all just default to the same IP? Even if there is a dhcp server on that network? That is beyond stupid!

                    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.7.2, 24.11

                    JKnottJ awebsterA 2 Replies Last reply Reply Quote 0
                    • JKnottJ
                      JKnott @johnpoz
                      last edited by

                      @johnpoz

                      When I installed cameras, I'd have a list of each camera, it's MAC address, IP address and location. I'd then configure the address as per list and then install them. Also, the customers wanted the record of exactly where every camera was. The cameras also came with 2 MAC address stickers, one of which went on the list and the other on the installation location.

                      PfSense running on Qotom mini PC
                      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                      UniFi AC-Lite access point

                      I haven't lost my mind. It's around here...somewhere...

                      1 Reply Last reply Reply Quote 0
                      • awebsterA
                        awebster @johnpoz
                        last edited by

                        @johnpoz Yeah, just look at where the software in them is coming from.
                        I've seen exactly what @Jknott is describing.

                        –A.

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