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

    Two LAN subnets, some IPs not reachable

    Routing and Multi WAN
    3
    5
    1.2k
    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.
    • V
      vupibi
      last edited by

      I have two LAN interfaces:
      LAN 1 - 10.2.0.0/16
      LAN 2 - 10.1.0.0/16

      And two XEN Hosts
      Host 1 in LAN 1 - 10.2.1.1
      Host 2 in LAN 2 - 10.1.1.1

      My goal:
      All LAN 1 IPs should be able reach all LAN 2 IPs, and reverse.

      I just made two firewall rules:
      Allow: LAN 1 Net on any port to LAN 2 Net
      Allow: LAN 2 Net on any port to LAN 1 Net

      When this configured, I can reach a LAN 2 VM with its IP 10.1.1.101 from LAN 1, so routing between the two subnets/networks works very well.

      My NAT Outbound is set to Manual Outbound, and I have not added a new entry for this scenario. In my opinion I don't need NAT here, because I dont want to translate the IPs, means I want to keep my LAN 1 IP when connecting to a LAN 2 machine.

      The thing is from LAN 1 I am not able to reach 10.1.1.1 and from LAN 2 I am not able to reach 10.2.1.1, so it seems all VMs are reachable but not the XEN hosts.

      Why? What am I doing wrong?

      1 Reply Last reply Reply Quote 0
      • V
        vupibi
        last edited by

        Problem solved, had the wrong gateway at 10.1.1.1 and 10.2.1.1.

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

          Just Curious - why would you use a /16 mask…  Do you have anywhere close to 65K hosts or devices that are going to be on that network?  That is going to be one hell of a broadcast domain if you do ;)

          Why would you not use /24 or /23 for example -- this would allow for 250 or 500 clients on each segment..

          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

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

            @johnpoz:

            Just Curious - why would you use a /16 mask…

            Because size does matter… perhaps....  ;D ;D ;D

            I'm often curious about reasons behind subneting choices for quite a lot of pfSense / network administrators  ;)

            Jah Olela Wembo: Les mots se muent en maux quand ils indisposent, agressent ou blessent.

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

              My guess is just lack of understanding.. Or some mindset that is still stuck in the classes of IP ranges that has been completely meaningless since what the early 90's when cidr came out - just boggles my mind that they still even talk about class in books and school..

              You would never in a million years put that many clients on a broadcast domain, the only place I could really see such masks are in route summaries and or allocations of networks to a site, 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

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