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

    Add second ip v4 rnage to LAN port

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 4 Posters 653 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.
    • lifeboyL
      lifeboy
      last edited by

      Is it possible to add a second ip address range to the LAN port so I can reach those addresses via it?

      So I have 192.168.0.0/24 assigned and I want to add 172.16.0.0/24 to it.

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

        It's possible to do that by creating an alias address. It can be done in FreeBSD by using the ifconfig command, so you'd have to check the man pages. They show how to create an alias. However, I don't know how well pfSense will work with an alias 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...

        1 Reply Last reply Reply Quote 0
        • lifeboyL
          lifeboy
          last edited by

          I know it can be done in FreeBSD, yes, but how pfSense will respond to it is the question. I was hoping someone who has tried /done this could share some insights?

          1 Reply Last reply Reply Quote 0
          • MikeV7896M
            MikeV7896
            last edited by

            pfSense has a “virtual IP” option on the firewall menu that sounds like it works similar. Select IP Alias, then choose the interface, address type (v4 or v6), then enter the address and subnet mask.

            The S in IOT stands for Security

            lifeboyL 1 Reply Last reply Reply Quote 0
            • NogBadTheBadN
              NogBadTheBad
              last edited by

              Just one question before you go down this route.

              How does pfSense handle DHCP requests with a secondary subnet added to an interface ?

              Andy

              1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

              lifeboyL 1 Reply Last reply Reply Quote 0
              • lifeboyL
                lifeboy @NogBadTheBad
                last edited by

                @nogbadthebad I don't used DHCP, all my servers have static ip addresses. I do bind the ip addresses to the mac addresses as well, so no rogue ip / mac addresses can operate on the network.

                1 Reply Last reply Reply Quote 0
                • lifeboyL
                  lifeboy @MikeV7896
                  last edited by lifeboy

                  @virgiliomi said in Add second ip v4 rnage to LAN port:

                  pfSense has a “virtual IP” option on the firewall menu that sounds like it works similar. Select IP Alias, then choose the interface, address type (v4 or v6), then enter the address and subnet mask.

                  I actually used virtual ip's a lot, but I never considered that I could assign a virtual ip to the LAN port as well. Thanks, this may just be the solution I'm looking for.

                  1 Reply Last reply Reply Quote 0
                  • lifeboyL
                    lifeboy
                    last edited by lifeboy

                    Someone here pointed out to me that one can add an "IP Alias" under virtual ip's, which does exactly what I want.

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