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

    Multiple LAN IP Addresses

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    18 Posts 12 Posters 21.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.
    • R
      renepc
      last edited by

      Hello @ all!

      I have to use the LAN Interface of pfsense with 3 or 4 Gateway Addresses.
      Here my Problem:

      i can't define a second LAN IP in the Webinterface.
      if i set the second IP on the shell with ifconfig, i can ping it, but cant use it as gateway address (i have made the Firewall Rules and Outbound NAT Rules).

      so what can i do to use 1 Interface as a Gateway for multiple subnets?

      i hope you will answer soon!

      greetz rene!

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

        Get a VLAN capable Switch and use VLANs.
        Right now it's not possible to do it the way you want to do it (creat aliases).

        Btw: messing with the system from console is not supported.

        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
        • R
          renepc
          last edited by

          when will this function be integrated to pfsense?

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

            When it's done.
            Afaik it's already in HEAD.

            (dont expect it within the next year)

            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
            • jahonixJ
              jahonix
              last edited by

              Or put some additional NICs in your router and assign different subnets to them.
              You would need a dedicated switch for each subnet then, of course.

              1 Reply Last reply Reply Quote 0
              • H
                humbled1
                last edited by

                So what you are saying is that PfSense does not support transversing VLAN tagging for 802.1Q?

                1 Reply Last reply Reply Quote 0
                • dotdashD
                  dotdash
                  last edited by

                  No. That is not what anyone was saying. Using FreeBSD standard alias' is not currently supported…

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

                    Btw, don't get your hopes up alias had been promised since v1.0 so I guess it's not a priority.

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

                      I wonder if the following would work:

                      Interface 0:
                      VLAN ID Default; IP 192.168.10.10.222/24
                      VLAN ID 1; IP 192.168.1.222/24
                      VLAN ID 2; IP 192.168.2.222/24
                      VLAN ID 3; IP 192.168.2.222/24

                      Setup Proxy ARP on VLAN Default for VLAN 1,2,3 and allow traffic between VLANs

                      mr-s

                      1 Reply Last reply Reply Quote 0
                      • B
                        bill
                        last edited by

                        BTW:
                        Please be aware that VLAN1 is usually the default VLAN.

                        If you connect to a switch that might lead to trouble. (It might work with certain switches, but it is usually better to be on the safe side)
                        I would recommend to try
                        VLAN ID Default; IP 192.168.10.10.222/24
                        VLAN ID 2; IP 192.168.1.222/24
                        VLAN ID 3; IP 192.168.2.222/24
                        VLAN ID 4; IP 192.168.2.222/24

                        Don't know if that is going to work with proxy arp, but good luck.

                        1 Reply Last reply Reply Quote 0
                        • jahonixJ
                          jahonix
                          last edited by

                          @mrsense:

                          VLAN ID 2; IP 192.168.2.222/24
                          VLAN ID 3; IP 192.168.2.222/24

                          Is that a typo or by intention?

                          And in the VLAN HowTo it is highlighted that you should not use the first VLAN for production.
                          Switches like to use it as default and a drop back down there might easily occur,asking for trouble…

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

                            A bit off curse, but the vlan1 / default vlan on the switch can / should be used as monitor / management vlan for the switch.
                            So on pfSense I've made a vlan for vlan id 1 so i can connect to the switch management site.

                            /Perry
                            doc.pfsense.org

                            1 Reply Last reply Reply Quote 0
                            • jahonixJ
                              jahonix
                              last edited by

                              Exactly that's the purpose of it.
                              Furthermore, the switches I put my hands on so far have vlan0 defined as default with all ports included.

                              1 Reply Last reply Reply Quote 0
                              • F
                                FiL
                                last edited by

                                Any updates on this?

                                I have flat network behind the firewall and have to use 2 subnets. No VLANs involved and no NAT either. Just firewall.
                                So what I need is 2 addresses on LAN interface. I don't need to NICs as everything goes to the same flat physical network.

                                Is it still impossible to do with pfSense?

                                Thanks,

                                FiL

                                1 Reply Last reply Reply Quote 0
                                • C
                                  cmb
                                  last edited by

                                  See http://doc.pfsense.org/multiple-subnets-one-interface-pfsense.pdf

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    FiL
                                    last edited by

                                    @cmb:

                                    See http://doc.pfsense.org/multiple-subnets-one-interface-pfsense.pdf

                                    Thanks a lot.

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      Guest
                                      last edited by

                                      @cmb:

                                      See http://doc.pfsense.org/multiple-subnets-one-interface-pfsense.pdf

                                      It works! But i had to reboote for some reason.

                                      But  have a problem. I am using CARP.

                                      I added a CARP address to my extra LAN-SEGMENT in the XML(Cant do it in the web interface) but it does not work. Have also tried to ad a PARP just to test.  But this is not working ether.

                                      I was hoping for a work-around. I hope i don't have to wait for 1.3  :)

                                      Any good idea of how to fix CARP in this situation?

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        jtpagaran
                                        last edited by

                                        Good day,

                                        I tried it and it works.

                                        this is my set up.

                                        public ip –->wan pfsense lan ----10.10.10.0/24

                                        the i added the alias ip 10.10.20.1 and added the recommended  firewall rules

                                        Now from workstation w/ ip 10.10.10.100 i can ping 10.10.10.1,  10.10.20.1 and workstation 10.10.10.100 and vice versa.

                                        I think every things fine but i notice that from my pfsense console and under the lan interface menu that it's ip is now set to 10.10.20.1.

                                        Is this the right behavior when adding alias? or i mess up something? my understanding is that my lan ip will still be 10.10.10.1 and my alias ip 10.10.20.1 will work fine under the hood.

                                        By the way im currently running 1.2.1rc1 as of sept.

                                        thanks and good day.

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