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

    2 subnets on 1 lan interface

    Scheduled Pinned Locked Moved Routing and Multi WAN
    15 Posts 4 Posters 1.5k 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.
    • J
      jwr17 @Derelict
      last edited by jwr17

      @derelict you are right, the /28 is the interface subnet. I added in my test environment the secondary /24 to OPT1 and disabled all NAT and created some allow all from all rules between LAN and OPT1 it seems to work (I don’t want to block any ports between my inside interfaces).

      Now the second challenge came up: my ISP gives me 2 VRRP uplinks for redundancy, before we just had them connected to our core switch and from there our servers were connected. Now, I have only 1 WAN interface setup and it seems I can’t setup a second WAN for uplink 2 as it has the same gateway ons ISP side. What would be the best option? Terminate the 2 uplinks in a switch and then 1 cable to WAN port (adding another point of failure, the switch) or using OPT2 but how to setup the gayeway then?

      Sorry for so many questions and thanks for any help!
      Jan

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Yeah.

        That's pretty much a bone-headed way for your ISP to do it. Maybe you are misunderstanding.

        You are likely going to have to provide more details as to exactly what the ISP says they are giving you. You know things like addresses, netmasks, and gateways.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

          This is what they wrote

          We configured x.x.250.0/29 as the subnet between your side and our router and we will route both /24 over this subnet.
          Our virtual addres (your gateway is) x.x.250.1 and we will use x.x.250.5 and x.x.250.6 for VRRP. -The .2 .3 and .4 are free for you to use.

          I assigned .2 as the WAN IP and the .1 as default GW on the WAN.
          Thanks!
          Jan

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

            @jwr17 said in 2 subnets on 1 lan interface:

            (which can’t be setup as a /23 in pfSense)

            You wouldn't be able to set them up anywhere as a /23 because they are not at the /23 break... .232/23 and 234/23 is where you could have /23's

            If you put in x.x.233/23 then you rrange would be 232.0 - 233.255

            If you want them in the same L2 then you could use 232/22 and not use the first and 2nd /24, knowing that you would never be able to get to a host out using those IPs.

            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
            • DerelictD
              Derelict LAYER 8 Netgate
              last edited by

              Our virtual address (your gateway is) x.x.250.1 and we will use x.x.250.5 and x.x.250.6 for VRRP.

              That just means you use x.x.250.1 as your default gateway but you cannot use .5 or .6 because they are using those for the physical interface addresses of their VRRP nodes. The VRRP address (x.x.250.1) will swing over to the other router if they experience a failure, perform maintenance, etc. You don't have to do anything like two connections.

              The .2 .3 and .4 are free for you to use

              Set your WAN address to one of those with .1 as the gateway. Nothing special there. You, too have enough addresses to do High-Availability if you like.

              They should have specified which of the addresses (.2 .3 and .4) they are routing the /24s to. That would be the address you would want to use as your CARP VIP if you did HA. Based on what you have seen they are probably routing the addresses to .2.

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              J 1 Reply Last reply Reply Quote 1
              • DerelictD
                Derelict LAYER 8 Netgate
                last edited by

                This sounds a lot like what Switch in Vegas provisions.

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • J
                  jwr17 @Derelict
                  last edited by

                  @derelict yes they route to .2 but give me two cables in my rack... so bit confusing how to connect them as i have only 1 WAN port setup.
                  Guess easiest will be just throwing a switch in between?

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by

                    The two cables are probably for two WAN interfaces to their switch stack if you were to set up an HA pair. If you are not doing that you can connect one or the other and ignore the second I would think.

                    They might also be able to set up something like LACP to your outside switch(es) over those if you wanted them to. Not sure.

                    None of this is really pfSense-specific.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 0
                    • DerelictD
                      Derelict LAYER 8 Netgate
                      last edited by

                      0_1529965223553_HA+LACP.png

                      The two connections are probably those depicted there as LACP LAG 0.

                      Depending on how they have it provisioned you could probably just eliminate the outside switch stack and LACP LAGs 1 and 2 and run one connection to Primary WAN and one to Secondary WAN. You would be putting more responsibility for layer 2 redundancy in their hands in that case.

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

                        That makes it much clearer and is indeed how they have set this ip.
                        Eliminating the outside switches (and currently having 1 Netgate/pFSense box, what would be the secondary WAN port config? Can I just give it .3 as WAN2 address and point to the same .1 gateway as on WAN1 (which is at .2)
                        The ISP is not really informative and the rack is 800km away.. plan to go onsite to install in July but want to be well prepared config-wise.
                        Again, your help is much appreciated!

                        1 Reply Last reply Reply Quote 0
                        • DerelictD
                          Derelict LAYER 8 Netgate
                          last edited by

                          It would be your standard HA setup using .2 as CARP and .3 and .4 as the node interface addresses.

                          https://www.netgate.com/docs/pfsense/highavailability/

                          Chattanooga, Tennessee, USA
                          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                          Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

                            With above info from you I contacted again the ISP and it's finally clear... Had indeed to install LACP ( LAGG ) on OPT3 and OPT4 and all is working now in my test environment.
                            They do the VRRP on their side and just bring 2 cables to our rack (aggegration and redundancy in case of cable problem). So problem solved thanks to your help!
                            Highly appreciated @Derelict !
                            Thanks!
                            Jan

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