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

    Multiple IP addresses on the LAN port

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 4 Posters 14.1k 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.
    • B
      bonnecomm
      last edited by

      I need to set up multiple IP addresses on the LAN port. This is easy in m0n0wall which I use at home. But on pfSense 2.0-Release, there doesn't seem to be a little tab on the Interfaces: LAN page allowing that. All the addresses I need are part of the same block. For example:
      172.16.0.1  The default gateway everyone without a static public IP address uses. (We don't use DHCP.)
      172.16.0.10  The default gateway for anyone with a static public IP address (and thus 1:1NATed) uses.
      172.16.1.13  The address of this piece of hardware. (This will be the 13th gateway router we've set up.)
      172.16.2.1    The primary DNS server.

      All of these addresses would be tied to the same port (LAN) on the pfSense box.

      Anyone want to point me in the right direction on this?

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        go to firewall -> virtual ips.

        then add 'ip alias'

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • N
          NKRA
          last edited by

          @marcelloc:

          go to firewall -> virtual ips.

          then add 'ip alias'

          Hi,

          Would it be possible to setup the following

          1. 10.1.1.1/24  (LAN)
          2. 192.168.1.1/24 (LAN)

          Both IP block run on on LAN port (no VLAN) with no routing between the two and also DHCP for both IP blocks.  BTW, only have one WAN port with one public IP.

          Regards

          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            Use one subnet per interface.

            In your case, use wan,lan,opt1

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • N
              NKRA
              last edited by

              @marcelloc:

              Use one subnet per interface.

              In your case, use wan,lan,opt1

              Must the interface opt1 a physical UTP port or a virtual one?

              1 Reply Last reply Reply Quote 0
              • marcellocM
                marcelloc
                last edited by

                Can be via vlan tag on same interface as lan or a physical interface.

                Treinamentos de Elite: http://sys-squad.com

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • GruensFroeschliG
                  GruensFroeschli
                  last edited by

                  @NKRA:

                  @marcelloc:

                  go to firewall -> virtual ips.

                  then add 'ip alias'

                  Hi,

                  Would it be possible to setup the following

                  1. 10.1.1.1/24  (LAN)
                  2. 192.168.1.1/24 (LAN)

                  Both IP block run on on LAN port (no VLAN) with no routing between the two and also DHCP for both IP blocks.  BTW, only have one WAN port with one public IP.

                  Regards

                  While you can have both subnets on a single interface, you can not have a DHCP for both ranges.
                  Only one rsnge per interface.
                  How would the server know out of which pool it would have to assign if 2 were available?

                  We do what we must, because we can.

                  Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

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