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

    two static routes for one subnet

    Scheduled Pinned Locked Moved Routing and Multi WAN
    static routesbalancing
    11 Posts 2 Posters 1.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.
    • B
      black2
      last edited by

      i cant create 2 routes for one subnet with different gateway
      for example

      10.50.0.0/24 via 10.40.2.4
      10.50.0.0/24 via 10.40.2.5
      pfSense interace has 10.40.2.1
      When traffic come in pfsense for subnet 10.50.0.0/24 i want that pfsense sent traffic to one of two gateways
      i want to get balance traffic via two static routes

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

        Yeah doesn't work that way..

        So on the return trip how do you make sure the data comes back via this .4 or .5 address?

        So is this 10.40.2 a transit network? Why don't you draw your network and we can figure out what your trying to accomplish exactly.

        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
        • B
          black2
          last edited by black2

          bgp65000 has route balance to r44 and r45 from r46
          bgp65000 has redistribuite static routes from r44 and r45 for network 10.40.0.0/16 and 10.50.0.0/24 from r46

          if i do ping from 10.50.0.1 to 10.40.3.2 everything fine i have load balance
          when traffic return from 10.40.3.2 and comes to pfsense, pfsense sends traffic only to r44 becouse it has only one route for 10.50.0.0/24 network and it is normal
          i cant add same route with another next hop
          i want to make load balance between pfsense and r44 - r45 from pfsense to routers
          sorry for image, i hurried up
          0_1530875058282_272ff2de-3473-4a57-86b4-5890bea51890-image.png
          thanks a lot !

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

            does anybody help me please !

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

              I see zero point to this... What is the point? How are you going to prevent asymmetrical traffic?

              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

              B 1 Reply Last reply Reply Quote 0
              • B
                black2 @johnpoz
                last edited by black2

                @johnpoz it is a part of all topoly, asymmetrical traffic does not matter, it is internal traffic
                asymmetrical traffic does not exist for pfSense in this topology
                So... is it possibly do ? two static route for one subnet for balancing

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

                  Again - how are you going to prevent asymmetrical traffic. WHY would you want to do such a thing. Yes you could have a secondary route.. But would be used in failover..

                  I do not see the point to such a setup other than some academic discussion. Doesn't seem to be trying to load share over 2 different isp connections, etc. Are r44 and r45 some sort of Pair? Why would you do it with routing - when in such a setup would be better to do with lagg/etherchannel/portchannel whatever your hardware maker likes to call their version ;)

                  And then your 10.40.2 just seems like a mess anyway Your connection to r34 is the same layer 3 /24... You have switch there but call it R34 so assume its a L3 doing routing?

                  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
                  • B
                    black2
                    last edited by

                    r34 it is l2 simple switch
                    okey how can i do secondary route for sunbnet when primary route will be inactive ??

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

                      Advertise the routes.. When the path goes away the advertisement for the other route will go away and only the secondary route will be viable.

                      I would install the FRR package, or you could use the openbgpd or the Quagga ospf package

                      You do understand sending traffic over both paths without some method of preventing asymmetrical could be problem right. And how are you doing sticky selection of the path? Since you have any sort of session going on and the path changes you no run into problems with out of order packets, etc.

                      Can you lay down some actual real world use case here... I'm not following the use case here. What is the point of the r44 and r45 to connect two locations? Why would you want/need to load share these connections?

                      What sort of connections is to r44 and r45 from the 2 locations. Is that just your own ethernet runs, dark fiber?

                      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
                      • B
                        black2
                        last edited by

                        area bgp65000 it is NHRP+GRE+IPSEC(DMVPN) r44 and r45 it hubs, r46 it is spoke
                        area 10.40.2.0/24 it is just one subnet
                        i did mistake
                        0_1531218369333_1a821b23-99c6-4789-9001-ca615ae87ec8-image.png
                        area bgp has one subnet
                        r46 has tun interface for two habs with 10.0.1.10/24 address

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

                          What is the point of this? Your wanting to load share to 2 different vpn connections off the same physical interface? And the same TUN interface as well?

                          Have no clue to what is the use case here... What is the point of the complexity - what does it get you? Your worried that r44 or r45 go down? What is the point of the loadsharing across the connection..

                          NHRP - with just the 2 connections.. With GRE and IPsec involved as well??

                          Is this some sort of class work - seems like nonsense waste of time, I see no real world application here. And down the rabbit hole we go...

                          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
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.