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

SG-3100 switch weird behavior (resolved)

Official Netgateยฎ Hardware
sg-3100 switch arp syslog
3
85
18.9k
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.
  • M
    mcury
    last edited by mcury Oct 18, 2022, 9:36 PM Oct 17, 2022, 4:30 PM

    Problem: pfsense is sending packets to the wrong device, packets should be going to rpi4 but are landing in my desktop, it doesn't seem to be a problem with my ARP table, but with the integrated switch.

    LAN: 192.168.255.248/29

    Mac address:
    LAN 192.168.255.253 dc:a6:32:a5:47:19 rpi4.home.arpa
    LAN 192.168.255.251 f0:2f:74:d0:24:94 desktop.home.arpa
    LAN 192.168.255.249 00:08:a2:0c:c4:1c pfsense.home.arpa

    packet capture in pfsense (192.168.255.249):
    ๐Ÿ”’ Log in to view

    packet capture in my computer (desktop 192.168.255.251):
    ๐Ÿ”’ Log in to view

    Details:
    The MAC addresses in the packets are correct as shown in the packet capture.
    Pfsense ARP table shows the correct MAC address for both devices.
    DHCP leases shows the correct info for both IPs.

    Scenario:
    ๐Ÿ”’ Log in to view

    pfsense remote logging configuration:
    ๐Ÿ”’ Log in to view

    Let me know if you need further info to help me to diagnose the problem.

    ICMP is also going to the wrong device (packet capture in my desktop 192.168.255.251)

    ๐Ÿ”’ Log in to view

    dead on arrival, nowhere to be found.

    M 1 Reply Last reply Oct 17, 2022, 6:35 PM Reply Quote 0
    • M
      mcury @mcury
      last edited by mcury Oct 18, 2022, 3:01 PM Oct 17, 2022, 6:35 PM

      The problem stops for a few minutes after pinging 192.168.255.253 from pfsense, and it starts again.

      Obs: VLAN199 doesn't exist anymore

      dead on arrival, nowhere to be found.

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Oct 18, 2022, 2:52 PM

        Is there some reason you removed this?

        Better to diagnose this here than in redmine.

        Steve

        M 1 Reply Last reply Oct 18, 2022, 2:53 PM Reply Quote 0
        • M
          mcury @stephenw10
          last edited by Oct 18, 2022, 2:53 PM

          @stephenw10 hm, I thought that it would be better to use redmine, let me restore this topic

          dead on arrival, nowhere to be found.

          J 1 Reply Last reply Oct 18, 2022, 3:01 PM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @mcury
            last edited by johnpoz Oct 18, 2022, 3:07 PM Oct 18, 2022, 3:01 PM

            @mcury so you have these interfaces bridged on pfsense?

            You show the same vlans going over 2 different trunks on 2 different interfaces on pfsense lan3 and lan4 - this is not possible without a bridge setup.

            Or wait this is a 3100, so switch ports. If I had to guess your mini is leaking, this is a flex mini?

            So you send traffic to 255.253, and your PC is seeing it.. Which you are correct it never should. Even in prosc mode, those packets should only be sent out the port that 255.253 is connected to - not all of them.

            You have some sort of leak if you ask me.. Could be pfsense sending it out all the lan interfaces in on the switch.. Hmmm

            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

            M 2 Replies Last reply Oct 18, 2022, 3:02 PM Reply Quote 0
            • M
              mcury @johnpoz
              last edited by Oct 18, 2022, 3:02 PM

              @johnpoz said in SG-3100 switch weird behavior:

              You show the same vlans going over 2 different trunks on 2 different interfaces on pfsense lan3 and lan4 - this is not possible without a bridge setup.

              Its not a brige, one trunk goes to the switch (unifi mini) and other trunk goes to an access point (nanohd)

              dead on arrival, nowhere to be found.

              M 1 Reply Last reply Oct 18, 2022, 3:04 PM Reply Quote 0
              • M
                mcury @mcury
                last edited by Oct 18, 2022, 3:04 PM

                Here its how the switch is configured:

                ๐Ÿ”’ Log in to view

                ๐Ÿ”’ Log in to view

                ๐Ÿ”’ Log in to view

                dead on arrival, nowhere to be found.

                M 1 Reply Last reply Oct 18, 2022, 3:08 PM Reply Quote 0
                • M
                  mcury @mcury
                  last edited by mcury Oct 18, 2022, 3:08 PM Oct 18, 2022, 3:08 PM

                  Found something interesting since yesterday..

                  Packet capture in host 192.168.255.251: pinging from pfsense (192.168.255.249).

                  6645 117.957087565 192.168.255.249 192.168.255.253 ICMP 98 Echo (ping) request id=0x7640, seq=0/0, ttl=64 ( no response found !)
                  

                  First ping I get the no response found as shown in packet 6645, then the following ICMP requests goes to the correct host (192.168.255.253).
                  The problem gets solved for a few minutes and then it starts again.

                  Header:

                  Frame 510: 98 bytes on wire (784 bits), 98 bytes captured (784 bits) on interface enp7s0, id 0
                  Ethernet II, Src: ADIEngin_0c:c4:1c (00:08:a2:0c:c4:1c), Dst: Raspberr_a5:47:19 (dc:a6:32:a5:47:19)
                  Destination: Raspberr_a5:47:19 (dc:a6:32:a5:47:19)
                  Source: ADIEngin_0c:c4:1c (00:08:a2:0c:c4:1c)
                  Type: IPv4 (0x0800)
                  Internet Protocol Version 4, Src: 192.168.255.249, Dst: 192.168.255.253
                  Internet Control Message Protocol
                  

                  dead on arrival, nowhere to be found.

                  S 1 Reply Last reply Oct 18, 2022, 3:14 PM Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Oct 18, 2022, 3:10 PM

                    It looks like you changed the IP address of the desktop from .254 to .251. I assume that made no difference?

                    In the redmine you show ping traffic to .253 going to the wrong port. But above you said:

                    The problem stops for a few minutes after pinging 192.168.255.253 from pfsense, and it starts again.

                    That's confusing. I can only imagine one of those to be true.

                    You also said that removing ramdisks appeared to resolve it. Did that turn out to be incorrect? When you add or remove ramdisks the firewall has to reboot. Does rebooting normally also correct it for some time?

                    The only thing I can imagine creating this issue is if the MAC table in the switch in the 3100 is somehow incorrect or being loaded with a bad value. pfSense has no control over that dircetly though. I've never seen that before.

                    Steve

                    M 1 Reply Last reply Oct 18, 2022, 3:17 PM Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator @mcury
                      last edited by Oct 18, 2022, 3:14 PM

                      @mcury said in Removed by user.:

                      First ping I get the no response found as shown in packet 6645, then the following ICMP requests goes to the correct host (192.168.255.253).
                      The problem gets solved for a few minutes and then it starts again.

                      Could be something redirecting it. What does a pcap on the RasPi show when that's happening?

                      Almost feels like a bad subnet mask except pfSense is sending to correct MAC.

                      M 1 Reply Last reply Oct 18, 2022, 3:18 PM Reply Quote 0
                      • M
                        mcury @stephenw10
                        last edited by Oct 18, 2022, 3:17 PM

                        @stephenw10 said in SG-3100 switch weird behavior:

                        It looks like you changed the IP address of the desktop from .254 to .251. I assume that made no difference?

                        correct, same behavior

                        @stephenw10 said in SG-3100 switch weird behavior:

                        You also said that removing ramdisks appeared to resolve it. Did that turn out to be incorrect?

                        Unfortunately it worked for a while, but the problem started again, same as before.

                        @stephenw10 said in SG-3100 switch weird behavior:

                        When you add or remove ramdisks the firewall has to reboot. Does rebooting normally also correct it for some time?

                        Yes, it rebooted normally and it was fine for a while, except that the problem happened again.

                        dead on arrival, nowhere to be found.

                        1 Reply Last reply Reply Quote 0
                        • M
                          mcury @stephenw10
                          last edited by mcury Oct 18, 2022, 3:20 PM Oct 18, 2022, 3:18 PM

                          @stephenw10 said in SG-3100 switch weird behavior:

                          Could be something redirecting it. What does a pcap on the RasPi show when that's happening?

                          I'll tcpdump it, let me wait for the problem to happen again

                          Almost feels like a bad subnet mask except pfSense is sending to correct MAC.

                          raspberry pi 4b 192.168.255.253 eth0:

                          2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
                              link/ether dc:a6:32:a5:47:19 brd ff:ff:ff:ff:ff:ff
                              inet 192.168.255.253/29 brd 192.168.255.255 scope global dynamic eth0
                          

                          ๐Ÿ”’ Log in to view

                          ๐Ÿ”’ Log in to view

                          dead on arrival, nowhere to be found.

                          1 Reply Last reply Reply Quote 0
                          • M
                            mcury @johnpoz
                            last edited by mcury Oct 18, 2022, 3:34 PM Oct 18, 2022, 3:32 PM

                            @johnpoz said in SG-3100 switch weird behavior:

                            Or wait this is a 3100, so switch ports. If I had to guess your mini is leaking, this is a flex mini?
                            So you send traffic to 255.253, and your PC is seeing it.. Which you are correct it never should. Even in prosc mode, those packets should only be sent out the port that 255.253 is connected to - not all of them.
                            You have some sort of leak if you ask me.. Could be pfsense sending it out all the lan interfaces in on the switch.. Hmmm

                            Sorry, I missed that part
                            Yes, its a SG-3100, the problem started, let me tcpdump it from rapsberry pi 4b, one sec

                            rpi4.pcap

                            dead on arrival, nowhere to be found.

                            M 1 Reply Last reply Oct 18, 2022, 3:39 PM Reply Quote 0
                            • M
                              mcury @mcury
                              last edited by mcury Oct 18, 2022, 3:39 PM Oct 18, 2022, 3:39 PM

                              yes, hehe, its kind of a mess

                              Packet capture in host 192.168.255.251
                              ๐Ÿ”’ Log in to view

                              dead on arrival, nowhere to be found.

                              M J 2 Replies Last reply Oct 18, 2022, 3:49 PM Reply Quote 0
                              • M
                                mcury @mcury
                                last edited by Oct 18, 2022, 3:49 PM

                                I'll reinstall my pfsense from scratch to test, but I can't do it right now.
                                Then, if the problem happens again, I'll replace this switch.

                                dead on arrival, nowhere to be found.

                                M 1 Reply Last reply Oct 18, 2022, 3:54 PM Reply Quote 0
                                • M
                                  mcury @mcury
                                  last edited by Oct 18, 2022, 3:54 PM

                                  So weird man, a ping fixes it temporarily..
                                  ๐Ÿ”’ Log in to view

                                  dead on arrival, nowhere to be found.

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    johnpoz LAYER 8 Global Moderator @mcury
                                    last edited by johnpoz Oct 18, 2022, 3:56 PM Oct 18, 2022, 3:55 PM

                                    @mcury yeah you shouldn't be seeing those. Hmmmm Even if your nic was in promiscuous mode, that mac shouldn't be sent down the port where the mac is not listed.

                                    If you had some sort of leak or bridge where the mac was being learned on multiple interfaces that could happen..

                                    So proper destination mac is your down the trunk (lan4) to the flex mini. But pfsense is also sending it out lan1? But the only place the mac of that pi4 should be seen by pfsense is the lan4 interface, it should never send that mac out lan1, unless there was bridge setup.

                                    hmmmm strange...

                                    This a good question for @stephenw10 he would know way more than me on the inter workings of the switch in the 3100. But typically a switch would only send traffic down the interface that the mac is on.

                                    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

                                    M 1 Reply Last reply Oct 18, 2022, 3:59 PM Reply Quote 0
                                    • M
                                      mcury @johnpoz
                                      last edited by Oct 18, 2022, 3:59 PM

                                      @johnpoz Exactly, its so weird, that packet should never go to pfsense's LAN1 ..

                                      I'll try to fix it tonight by reinstalling my pfsense from scratch..
                                      Then, if the problem happens again, I'll replace this switch..

                                      dead on arrival, nowhere to be found.

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        stephenw10 Netgate Administrator
                                        last edited by Oct 18, 2022, 4:02 PM

                                        Yeah, it's a pretty basic switch and there's no control over things like the MAC table. That's the only thing I could imagine causing that though.

                                        If you haven't already try power cycling the 3100 entirely. That should completely reset the switch if it's somehow managed to toggle some flag.

                                        Steve

                                        M 1 Reply Last reply Oct 18, 2022, 4:03 PM Reply Quote 0
                                        • M
                                          mcury @stephenw10
                                          last edited by Oct 18, 2022, 4:03 PM

                                          @stephenw10 hm, I'll try it now a shutdown, remove the power cable, one sec, let me see who is here using the Internet

                                          dead on arrival, nowhere to be found.

                                          M 1 Reply Last reply Oct 18, 2022, 4:10 PM Reply Quote 0
                                          2 out of 85
                                          • First post
                                            2/85
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.