sysctl net.link.lagg.lacp.debug=1
dmesg
lagg0: link state changed to DOWNlagg0: link state changed to UPem3: Interface stopped DISTRIBUTING, possible flappingem2: Interface stopped DISTRIBUTING, possible flappinglagg0: link state changed to DOWNlagg0: link state changed to UPem3: Interface stopped DISTRIBUTING, possible flappingem2: Interface stopped DISTRIBUTING, possible flappinglagg0: link state changed to DOWNlagg0: link state changed to UPem3: Interface stopped DISTRIBUTING, possible flappingem2: Interface stopped DISTRIBUTING, possible flappinglagg0: link state changed to DOWNlagg0: link state changed to UPem3: Interface stopped DISTRIBUTING, possible flappingem2: Interface stopped DISTRIBUTING, possible flappinglagg0: link state changed to DOWNlagg0: link state changed to UPem3: Interface stopped DISTRIBUTING, possible flappingem2: Interface stopped DISTRIBUTING, possible flappinglagg0: link state changed to DOWNlagg0: link state changed to UPem3: Interface stopped DISTRIBUTING, possible flappingem2: Interface stopped DISTRIBUTING, possible flappinglagg0: link state changed to DOWNlagg0: link state changed to UPem3: Interface stopped DISTRIBUTING, possible flappingem2: Interface stopped DISTRIBUTING, possible flappinglagg0: link state changed to DOWNlagg0: link state changed to UPem3: Interface stopped DISTRIBUTING, possible flappingem2: Interface stopped DISTRIBUTING, possible flappinglagg0: link state changed to DOWNlagg0: link state changed to UP
Intel(R) PRO/1000 Network Connection
WARNING: /mnt was not properly dismountedWARNING: /mnt: mount pending error: blocks 259880 files 7ugen0.2: <vendor 0x8087 product 0x0024> at usbus0uhub2 on uhub0uhub2: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2> on usbus0ugen1.2: <vendor 0x8087 product 0x0024> at usbus1uhub3 on uhub1uhub3: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2> on usbus1WARNING: /mnt: reload pending error: blocks 259880 files 7uhub2: 6 ports with 6 removable, self powereduhub3: 6 ports with 6 removable, self poweredugen0.3: <Avocent USB Composite Device-0> at usbus0kbd2 at ukbd1ugen1.5: <vendor 0x192f USB Optical Mouse> at usbus1WARNING: /mnt: reload pending error: blocks 259880 files 7lagg0: IPv6 addresses on em2 have been removed before adding it as a member to prevent IPv6 address scope violation.lagg0: link state changed to DOWNem3: link state changed to DOWNlagg0: IPv6 addresses on em3 have been removed before adding it as a member to prevent IPv6 address scope violation.em0: link state changed to UPem0_vlan20: link state changed to UPem0_vlan40: link state changed to UPem0_vlan10: link state changed to UPem0_vlan11: link state changed to UPem0_vlan12: link state changed to UPem0_vlan13: link state changed to UPem0_vlan30: link state changed to UPlagg0: link state changed to UPem3: Interface stopped DISTRIBUTING, possible flappingem2: Interface stopped DISTRIBUTING, possible flappinglagg0: link state changed to DOWNpflog0: promiscuous mode disabledpflog0: promiscuous mode enabledpflog0: promiscuous mode disabledpflog0: promiscuous mode enabledlagg0: link state changed to UPem3: Interface stopped DISTRIBUTING, possible flappingem2: Interface stopped DISTRIBUTING, possible flappinglagg0: link state changed to DOWNpflog0: promiscuous mode disabledpflog0: promiscuous mode enabledpflog0: promiscuous mode disabledpflog0: promiscuous mode enabledlagg0: link state changed to UPem3: Interface stopped DISTRIBUTING, possible flappingem2: Interface stopped DISTRIBUTING, possible flappinglagg0: link state changed to DOWN
You really should read about switch Troubleshooting, they get way more into detail
=== LAG "OPNSENSEWAN" ID 1 (dynamic Deployed) ===LAG Configuration: Ports: e 1/2/1 e 1/2/1 Port Count: 2 Primary Port: 1/2/1 Trunk Type: hash-based LACP Key: 20001Deployment: HW Trunk ID 1Port Link State Dupl Speed Trunk Tag Pvid Pri MAC Name1/2/1 Up Blocked Full 1G 1 Yes 18 0 609c.9f3a.a488 1/2/2 Up Blocked Full 1G 1 Yes 18 0 609c.9f3a.a488Port [Sys P] [Port P] [ Key ] [Act][Tio][Agg][Syn][Col][Dis][Def][Exp][Ope]1/2/1 1 1 20001 Yes S Agg Syn Col Dis Def No Ina1/2/2. 1 1 20001 Yes S Agg Syn No No Def No Ina
Just know that if you get the above message (GigabitEthernet x/x/x is up, line protocol is down (LACP-BLOCKED), you have a LAG protocol mismatch.
• lacp • Supports the IEEE 802.3ad Link Aggregation Control Protocol (LACP) and the Marker Protocol. LACP will negotiate a set of aggregable links with the peer in to one or more Link Aggregated Groups. Each LAG is composed of ports of the same speed, set to full-duplex operation. The traffic will be balanced across the ports in the LAG with the greatest total speed, in most cases there will only be one LAG which contains all ports. In the event of changes in physical connectivity, Link Aggregation will quickly converge to a new configuration.
Did I miss a copy of ifconfig lagg0 on the OPNsense side or did you not provide one, yet?Please do so.
root@firewall:~ # ifconfig lagg0lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=850098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWFILTER,VLAN_HWTSO> ether e8:39:35:11:fa:ab inet6 fe80::ea39:35ff:fe11:faab%lagg0 prefixlen 64 scopeid 0xb inet 192.168.55.1 netmask 0xffffff00 broadcast 192.168.55.255 laggproto lacp lagghash l2,l3,l4 laggport: em2 flags=8<COLLECTING> laggport: em3 flags=8<COLLECTING> groups: lagg media: Ethernet autoselect status: active nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
LAG Configuration: Ports: e 1/1/2 e 2/1/2 Port Count: 2 Primary Port: 1/1/2 Trunk Type: hash-based LACP Key: 20002Deployment: HW Trunk ID 2Port Link State Dupl Speed Trunk Tag Pvid Pri MAC Name1/1/2 Up Blocked Full 1G 2 Yes N/A 0 609c.9f4b.808d LAN12/1/2 Up Blocked Full 1G 2 Yes N/A 0 609c.9f4b.808d LAN2Port [Sys P] [Port P] [ Key ] [Act][Tio][Agg][Syn][Col][Dis][Def][Exp][Ope]1/1/2 1 1 20002 Yes S Agg No No No No No Ina2/1/2 1 1 20002 Yes S Agg Syn No No Def Exp Err
clog /var/log/system.log
Nov 24 00:13:35 firewall kernel: em2: lacpdu receiveNov 24 00:13:35 firewall kernel: actor=(0001,60-9C-9F-4B-80-8C,4E22,0001,0002)Nov 24 00:13:35 firewall kernel: actor.state=7<ACTIVITY,TIMEOUT,AGGREGATION>Nov 24 00:13:35 firewall kernel: partner=(8000,E8-39-35-11-FA-AB,016B,8000,0003)Nov 24 00:13:35 firewall kernel: partner.state=1d<ACTIVITY,AGGREGATION,SYNC,COLLECTING>Nov 24 00:13:35 firewall kernel: maxdelay=0Nov 24 00:13:35 firewall kernel: em2: old pstate cf<ACTIVITY,TIMEOUT,AGGREGATION,SYNC,DEFAULTED,EXPIRED>Nov 24 00:13:35 firewall kernel: em2: new pstate f<ACTIVITY,TIMEOUT,AGGREGATION,SYNC>Nov 24 00:13:35 firewall kernel: em3: lacpdu transmitNov 24 00:13:35 firewall kernel: actor=(8000,E8-39-35-11-FA-AB,016B,8000,0004)Nov 24 00:13:35 firewall kernel: actor.state=1d<ACTIVITY,AGGREGATION,SYNC,COLLECTING>Nov 24 00:13:35 firewall kernel: partner=(0001,60-9C-9F-4B-80-8C,4E22,0001,0102)Nov 24 00:13:35 firewall kernel: partner.state=cf<ACTIVITY,TIMEOUT,AGGREGATION,SYNC,DEFAULTED,EXPIRED>Nov 24 00:13:35 firewall kernel: maxdelay=0Nov 24 00:13:35 firewall kernel: em2: lacpdu transmitNov 24 00:13:35 firewall kernel: actor=(8000,E8-39-35-11-FA-AB,016B,8000,0003)Nov 24 00:13:35 firewall kernel: actor.state=1d<ACTIVITY,AGGREGATION,SYNC,COLLECTING>Nov 24 00:13:35 firewall kernel: partner=(0001,60-9C-9F-4B-80-8C,4E22,0001,0002)Nov 24 00:13:35 firewall kernel: partner.state=f<ACTIVITY,TIMEOUT,AGGREGATION,SYNC>Nov 24 00:13:35 firewall kernel: maxdelay=0
Trunk Type: hash-based
LAG Configuration: Ports: e 1/2/1 e 1/2/3 Port Count: 2 Primary Port: 1/2/1 Trunk Type: hash-based LACP Key: 22047 [b]LACP Timeout: long[/b]
interface Port-channel4 description OPNsense switchport mode trunk!interface GigabitEthernet0/15 description OPNsense switchport mode trunk channel-group 4 mode active!interface GigabitEthernet0/16 description OPNsense switchport mode trunk channel-group 4 mode active
What's a timout? Sorry I have not configured anything like that. The Cisco config is simply:Code: [Select]interface Port-channel4 description OPNsense switchport mode trunk!interface GigabitEthernet0/15 description OPNsense switchport mode trunk channel-group 4 mode active!interface GigabitEthernet0/16 description OPNsense switchport mode trunk channel-group 4 mode activeAnd that's that. Works as intended.
Dynamic Log Buffer (50 lines):Nov 26 02:29:40:I:System: dynamic lag interface 2/1/1's peer info (priority=3,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:40:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is down.Nov 26 02:29:40:I:Trunk: Group (1/1/1, 2/1/1) removed by 802.3ad link-aggregation module.Nov 26 02:29:40:I:System: Logical link on dynamic lag interface ethernet 2/1/1 is down.Nov 26 02:29:40:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is down.Nov 26 02:29:40:I:System: dynamic lag interface 1/1/1's peer info (priority=4,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:39:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is up.Nov 26 02:29:39:I:Trunk: Group (1/1/1, 2/1/1) created by 802.3ad link-aggregation module.Nov 26 02:29:33:I:System: dynamic lag interface 2/1/1's peer info (priority=3,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:33:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is down.Nov 26 02:29:33:I:Trunk: Group (1/1/1, 2/1/1) removed by 802.3ad link-aggregation module.Nov 26 02:29:33:I:System: Logical link on dynamic lag interface ethernet 2/1/1 is down.Nov 26 02:29:33:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is down.Nov 26 02:29:33:I:System: dynamic lag interface 1/1/1's peer info (priority=4,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:32:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is up.Nov 26 02:29:32:I:Trunk: Group (1/1/1, 2/1/1) created by 802.3ad link-aggregation module.Nov 26 02:29:26:I:System: dynamic lag interface 2/1/1's peer info (priority=3,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:26:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is down.Nov 26 02:29:26:I:Trunk: Group (1/1/1, 2/1/1) removed by 802.3ad link-aggregation module.Nov 26 02:29:26:I:System: Logical link on dynamic lag interface ethernet 2/1/1 is down.Nov 26 02:29:26:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is down.Nov 26 02:29:26:I:System: dynamic lag interface 1/1/1's peer info (priority=4,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:25:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is up.Nov 26 02:29:25:I:Trunk: Group (1/1/1, 2/1/1) created by 802.3ad link-aggregation module.Nov 26 02:29:19:I:System: dynamic lag interface 2/1/1's peer info (priority=3,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:19:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is down.Nov 26 02:29:19:I:Trunk: Group (1/1/1, 2/1/1) removed by 802.3ad link-aggregation module.Nov 26 02:29:19:I:System: Logical link on dynamic lag interface ethernet 2/1/1 is down.Nov 26 02:29:19:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is down.Nov 26 02:29:19:I:System: dynamic lag interface 1/1/1's peer info (priority=4,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:18:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is up.Nov 26 02:29:18:I:Trunk: Group (1/1/1, 2/1/1) created by 802.3ad link-aggregation module.Nov 26 02:29:12:I:System: dynamic lag interface 2/1/1's peer info (priority=3,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:12:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is down.Nov 26 02:29:12:I:Trunk: Group (1/1/1, 2/1/1) removed by 802.3ad link-aggregation module.Nov 26 02:29:12:I:System: Logical link on dynamic lag interface ethernet 2/1/1 is down.Nov 26 02:29:12:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is down.Nov 26 02:29:12:I:System: dynamic lag interface 1/1/1's peer info (priority=4,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:11:I:System: Logical link on dynamic lag interface ethernet 1/1/1 is up.Nov 26 02:29:11:I:System: Interface ethernet 1/1/1, state upNov 26 02:29:11:I:Trunk: Group (1/1/1, 2/1/1) created by 802.3ad link-aggregation module.Nov 26 02:29:05:I:System: Logical link on dynamic lag interface ethernet 2/1/1 is down.Nov 26 02:29:05:I:Trunk: Group (2/1/1) removed by 802.3ad link-aggregation module.Nov 26 02:29:05:I:System: Logical link on dynamic lag interface ethernet 2/1/1 is down.Nov 26 02:29:05:I:System: dynamic lag interface 2/1/1's peer info (priority=3,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:05:I:System: dynamic lag interface 1/1/1's peer info (priority=4,id=e839.3511.faab,key=0) mis-matches with lag's peer info (priority=32768,id=e839.3511.faab,key=715), set to mismatch ErrorNov 26 02:29:04:I:System: Logical link on dynamic lag interface ethernet 2/1/1 is up.Nov 26 02:29:04:I:System: Interface ethernet 2/1/1, state upNov 26 02:29:01:I:Trunk: Group (2/1/1) created by 802.3ad link-aggregation module.Nov 26 02:29:01:I:System: dynamic lag 1, has new peer info (priority=32768,id=e839.3511.faab,key=715) (N/A)
Is there a static vs. dynamic lagg setting on this switch?
LAN dynamic Y 2 1/1/2 e 1/1/2 e 2/1/2LANG static N 3 noneLANGG dynamic N 4 noneNAS dynamic Y 11 1/1/11 e 1/1/11 to 1/1/12 e 2/1/11 to 2/1/12WAN dynamic Y 1 1/1/1 e 1/1/1 e 2/1/1wan dynamic N 5 none
Nov 24 00:13:35 firewall kernel: partner=(0001,60-9C-9F-4B-80-8C,4E22,0001,0002)
Deployment: HW Trunk ID 2Port Link State Dupl Speed Trunk Tag Pvid Pri MAC Name1/1/2 Up Blocked Full 1G 2 Yes N/A 0 609c.9f4b.808d LAN12/1/2 Up Blocked Full 1G 2 Yes N/A 0 609c.9f4b.808d LAN2