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

    LAGG and VPNs

    Scheduled Pinned Locked Moved General pfSense Questions
    79 Posts 2 Posters 9.9k 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.
    • S
      stevencavanagh @stephenw10
      last edited by

      The NAS was intended to be accessible from at least a couple of VLANs so that may explain that. However, the remaining VLANs should be on their own, which is why they are down as 'access' rather than 'trunk' I assume. I would have thought pfsense would still handle that though.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Sure if all the vlans are configured correctly pfSense will route between them.
        But if the NAS is multihomed on several VLANs directly and you are able to reach it but not untagged clients that implies a VLAN error somewhere.

        S 1 Reply Last reply Reply Quote 0
        • S
          stevencavanagh @stephenw10
          last edited by

          AS nothing has changed on switch 2 where all these are connected and I can connect to them currently i.e through the Draytek router, then when I replace the Draytek with pfsense does that not imply the issue is somewhere in the pfsense vlan config rather than the switch?

          S 1 Reply Last reply Reply Quote 0
          • S
            stevencavanagh @stevencavanagh
            last edited by

            Also, is there a way to get to the port details of the NICs that are used in the pfsense box as I think I've been through every conceivable config on the switch to solve the 100M LAG speed issue. Was going to try and force the speed of both the switch and pfsense NIC port to 1000M

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              If you run ifconfig -vvvma you will see the full status of all the NICs and interfaces.

              I agree it seems unlikely that the switch config would be wrong if it worked previously. I would be running pcaps to see what's actually on the wire.

              I would also try connecting to the switch without a lagg configured to rule that out.

              S 1 Reply Last reply Reply Quote 0
              • S
                stevencavanagh @stephenw10
                last edited by

                cheers, I'll go and have another play with it!

                S 1 Reply Last reply Reply Quote 0
                • S
                  stevencavanagh @stevencavanagh
                  last edited by stephenw10

                  I used ifconfig -vvma and got the following:-

                  igb2: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
                  	options=4e100bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
                  	capabilities=4f53fbb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,NETMAP,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
                  	ether 98:b7:85:00:fd:44
                  	media: Ethernet autoselect
                  	status: no carrier
                  	supported media:
                  		media autoselect
                  		media 1000baseT
                  		media 1000baseT mediaopt full-duplex
                  		media 100baseTX mediaopt full-duplex
                  		media 100baseTX
                  		media 10baseT/UTP mediaopt full-duplex
                  		media 10baseT/UTP
                  	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
                  igb3: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
                  	options=4e100bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
                  	capabilities=4f53fbb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,NETMAP,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
                  	ether 98:b7:85:00:fd:44
                  	hwaddr 98:b7:85:00:fd:45
                  	media: Ethernet autoselect
                  	status: no carrier
                  	supported media:
                  		media autoselect
                  		media 1000baseT
                  		media 1000baseT mediaopt full-duplex
                  		media 100baseTX mediaopt full-duplex
                  		media 100baseTX
                  		media 10baseT/UTP mediaopt full-duplex
                  		media 10baseT/UTP
                  	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
                  

                  Note : I have set the LAG at 1000M to try but it causes it to fail.

                  I notice that there is no option to set igb2 & igb3 speeds to 1000M, at least not whilst they are in the LAG or is there?

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    The interfaces in the LAGG should inherit settings if you set it. That output above show those links are not linked at all though, were they even connected?

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      stevencavanagh @stephenw10
                      last edited by

                      so I will need to delete the LAGG and set both interfaces to 1000M manually and then re-create the LAGG.

                      The LAGG was working but it always syncs to 100M. It is currently failed because I have set the switch manually to 1000M for those ports - something Draytek tech support asked me to try

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        It should inherit that setting from lagg0 but it's set as autoselect there.

                        Unconfiguring the lagg and then configuring it again would be no change. It is possible to make changes to links in a lagg with a manual command that can be run at boot.

                        As a test just run:
                        ifconfig igb2 media 1000baseT

                        However I would get a single link working at 1G first and then add the lagg back.

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          stevencavanagh @stephenw10
                          last edited by

                          trying to get a single link but unsuccessful so far!

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            stevencavanagh @stevencavanagh
                            last edited by

                            I have now tried every possible combination available to force the port to 1G (no LAG) but unable get it. If I connect the same cable from laptop to pfsense NIC I get 1G so not card or cable. Looks like I will have to go back to draytek to sort it as I'm now out of ideas!

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              What about if you use the em0 NIC?

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                stevencavanagh @stephenw10
                                last edited by

                                Not tried using that but I'll give it a shot and see what happens!

                                S 1 Reply Last reply Reply Quote 1
                                • S
                                  stevencavanagh @stevencavanagh
                                  last edited by

                                  Ok, swapped over to em0 and it connected at 1G!

                                  So, took the same lead and plugged into a number of ports on both switches and always connected at 1G.

                                  Consequently, went around each of the 5 ports individually with the same lead and results below:-

                                  em0 - 1G
                                  igb0 - 1G
                                  igb1 - 1G
                                  igb2 - 100M
                                  igb3 - 100M

                                  Hence card 2 has the problem. Cards 1&2 are the same type and new.

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    stevencavanagh @stevencavanagh
                                    last edited by stevencavanagh

                                    swapped over the LAN cards out of desperation and now have a 1G connection (not LAG)...

                                    fd414c78-e689-4c7f-9987-21bd3be3ca5c-image.png

                                    However, ignoring LAGG for now, I have a physical connection between the 2 switches but unable to access anything on the other switch. Must be VLAN issue but not sure where to go from here

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      stevencavanagh @stevencavanagh
                                      last edited by

                                      So, I now have everything up in terms of connections but running on a single cable, not LAGG on igb1.

                                      0382671e-3c22-4e21-a49f-8797f701abc7-image.png

                                      Firewall is fully open which at some point I will need to lock down but LAG now the remaining issue.

                                      NIC 2 seems to be the issue.

                                      Initially I installed pfsense with only 1 NIC card in and then added the second later once I had bought it. Pfsense detected it so I assumed all was good. Could that be causing the issue?

                                      1 Reply Last reply Reply Quote 0
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        No it shouldn't make any difference how the cards were added. I agree there's something different about that second card.

                                        Check the revision is the same as shown by: pciconf -lv

                                        It could be a firmware difference. Looks for the eeprom version in the boot log like:

                                        igb0: EEPROM V3.11-0 eTrack 0x80000469
                                        
                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          stevencavanagh @stephenw10
                                          last edited by

                                          Info from pciconf -1v

                                          igb2@pci0:2:0:0: class=0x020000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x10c9 subvendor=0x8086 subdevice=0xa03c
                                          vendor = 'Intel Corporation'
                                          device = '82576 Gigabit Network Connection'
                                          class = network
                                          subclass = ethernet
                                          igb3@pci0:2:0:1: class=0x020000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x10c9 subvendor=0x8086 subdevice=0xa03c
                                          vendor = 'Intel Corporation'
                                          device = '82576 Gigabit Network Connection'
                                          class = network
                                          subclass = ethernet

                                          Where do I find the boot log?

                                          1 Reply Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            How does that compare with igb0/1?

                                            You can see the boot log in the gui or in /var/log/dmesg.boot

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