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

    Having another go at setting up a lan lagg on pfsense

    Scheduled Pinned Locked Moved Routing and Multi WAN
    12 Posts 4 Posters 7.7k 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.
    • W Offline
      W4RH34D
      last edited by

      Stupid question.

      Why not do this at the switch?  Assuming you need a server or something with it for bandwidth.  What could it serve if your WAN/WANS won't be pushing that?

      Did you really check your cables?

      1 Reply Last reply Reply Quote 0
      • A Offline
        aGeekhere
        last edited by

        Stupid question.

        Long answer

        I am running squid cache which is stored on pfsense (the router) I want to increase the bandwidth between the router and the switch so when users hit the cache (which is on the pfsense router) they can use the dual link.

        In other words going from a 1gbps to 2gbps LAN to router connection.

        Also I am doing it for a bit of a learning process (playing with pfsense features) also planing for the future (Australia is getting gigabit internet starting 2017).

        Never Fear, A Geek is Here!

        1 Reply Last reply Reply Quote 0
        • awebsterA Offline
          awebster
          last edited by

          @aGeekHere:

          Stupid question.

          Long answer

          I am running squid cache which is stored on pfsense (the router) I want to increase the bandwidth between the router and the switch so when users hit the cache (which is on the pfsense router) they can use the dual link.
          …

          In LACP mode, the only catch that you should be aware of is that for one specific client, you will not achieve greater than the maximum speed of one link.
          This is because "LACP balances outgoing traffic across the active ports based on hashed protocol header information and accepts incoming traffic from any active port. The hash includes the Ethernet source and destination address and, if available, the VLAN tag, and the IPv4 or IPv6 source and destination address." – https://www.freebsd.org/doc/handbook/network-aggregation.html.
          So a client talking to the proxy server results in the same IP and MAC addresses on both sides…consequently the same hash and the same link selected for each packet.
          You will find that switches implement LACP in the same manner.
          So only if there are multiple clients whose hashed addresses produce differing results (50/50 chance) will you actually see a performance improvement.

          –A.

          1 Reply Last reply Reply Quote 0
          • A Offline
            aGeekhere
            last edited by

            So only if there are multiple clients whose hashed addresses produce differing results (50/50 chance) will you actually see a performance improvement.

            Or if two clients download from the route (squid cache) at the same time. Both clients will get 1gbps each instead of half.

            Never Fear, A Geek is Here!

            1 Reply Last reply Reply Quote 0
            • W Offline
              W4RH34D
              last edited by

              @aGeekHere:

              Stupid question.

              Long answer

              I am running squid cache which is stored on pfsense (the router) I want to increase the bandwidth between the router and the switch so when users hit the cache (which is on the pfsense router) they can use the dual link.

              In other words going from a 1gbps to 2gbps LAN to router connection.

              Also I am doing it for a bit of a learning process (playing with pfsense features) also planing for the future (Australia is getting gigabit internet starting 2017).

              What kind of throughput does your squid disk cache have?!  I'm actually very curious about this topic.  I have link aggregate setup and was wondering if I had the placebo effect with performance.  My needs aren't greater than one gigabit link, but I feel as though the way it processes the data is either different or processed by the computer differently and in a better way.

              Did you really check your cables?

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

                You should be able to tell if the LACP is up or not by looking at the switch and/or pfsense.  There is no reason you can't bring another interface up on another VLAN and be sure the link is functioning before messing with your LAN.

                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
                • A Offline
                  aGeekhere
                  last edited by

                  @W4RH34D:

                  @aGeekHere:

                  Stupid question.

                  Long answer

                  I am running squid cache which is stored on pfsense (the router) I want to increase the bandwidth between the router and the switch so when users hit the cache (which is on the pfsense router) they can use the dual link.

                  In other words going from a 1gbps to 2gbps LAN to router connection.

                  Also I am doing it for a bit of a learning process (playing with pfsense features) also planing for the future (Australia is getting gigabit internet starting 2017).

                  What kind of throughput does your squid disk cache have?!  I'm actually very curious about this topic.  I have link aggregate setup and was wondering if I had the placebo effect with performance.  My needs aren't greater than one gigabit link, but I feel as though the way it processes the data is either different or processed by the computer differently and in a better way.

                  Well the cache drive is a msata which can do

                  Up to 540 MB/sec Sequential Read
                  Up to 520 MB/sec Sequential Write

                  However my APU1D4 maxes out it's CPU at 30MBps, So for my next build (which is a few years away)I would need more CPU for this to work.
                  However still wanted to play around with it.

                  Never Fear, A Geek is Here!

                  1 Reply Last reply Reply Quote 0
                  • W Offline
                    W4RH34D
                    last edited by

                    @aGeekHere:

                    @W4RH34D:

                    @aGeekHere:

                    Stupid question.

                    Long answer

                    I am running squid cache which is stored on pfsense (the router) I want to increase the bandwidth between the router and the switch so when users hit the cache (which is on the pfsense router) they can use the dual link.

                    In other words going from a 1gbps to 2gbps LAN to router connection.

                    Also I am doing it for a bit of a learning process (playing with pfsense features) also planing for the future (Australia is getting gigabit internet starting 2017).

                    What kind of throughput does your squid disk cache have?!  I'm actually very curious about this topic.  I have link aggregate setup and was wondering if I had the placebo effect with performance.  My needs aren't greater than one gigabit link, but I feel as though the way it processes the data is either different or processed by the computer differently and in a better way.

                    Well the cache drive is a msata which can do

                    Up to 540 MB/sec Sequential Read
                    Up to 520 MB/sec Sequential Write

                    However my APU1D4 maxes out it's CPU at 30MBps, So for my next build (which is a few years away)I would need more CPU for this to work.
                    However still wanted to play around with it.

                    Because science. 8)

                    Did you really check your cables?

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      aGeekhere
                      last edited by

                      Is there anyway I can set the LAGG via the console before I try accessing the gui via the WAN port?

                      Never Fear, A Geek is Here!

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

                        Make what will be the second LACP interface an OPT interface, IP it, and connect to pfSense using a laptop plugged into that.

                        Create a two-port LACP group on your switch.

                        Create the LACP group using the first pfSense LAGG interface, assign it to LAN, and connect it to the first LACP port on the switch and make sure it works.

                        Connect to pfSense over LAN, add the other interface to the LAGG and connect it to the switch. It should just be added to the group.

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