I think I might have not explain in detail, allow me to do so.
The command
set vlans default switch-options interface-mac-limit 2 packet-action drop-and-log
is acting at the vlan hierarchy level for every interface, effectively all interfaces can only learn two MACs. If you want to exclude the trunks, you could be explicit and allow the MAC limit to be enabled for all interfaces, and then disallow the trunk ports with
set vlans default switch-options interface xe-0/0/0.0 interface-mac-limit disable
.
HTH,
Elvin
Original Message:
Sent: 09-21-2021 10:00
From: Unknown User
Subject: Interface MAC limit and trunk port
Thanks Elvin. Is there a way to exclude my trunk ports? I guess I could apply the interface-mac-limit at the interface level for every interface except trunks...is this what you would suggest?
Original Message:
Sent: 09-20-2021 17:03
From: Unknown User
Subject: Interface MAC limit and trunk port
It affects all interfaces including trunks.
Elvin
Original Message:
Sent: 09-20-2021 14:49
From: Unknown User
Subject: Interface MAC limit and trunk port
[edit]# set vlans default switch-options interface-mac-limit 2 packet-action drop-and-log
Will the above command affect a trunk port that has learned 20+ MACs on this VLAN?