Original Message:
Sent: Sep 22, 2023 03:53 AM
From: GorazdKikelj
Subject: AOS-CX Port Security configuration validation
Hi Brett.
I agree that documentation about enabling the port security feature is not very clear about this global/per port settings.
As I read it You need to enable "port-access port-security enable" globally to tell the switch to activate the feature. Then you need to configure each individual port where you would like to have the port-security policy/features enabled. If no features are enabled on port, this port will not use any port-security features.
Best, Gorazd
------------------------------
Gorazd Kikelj
MVP Expert 2023
Original Message:
Sent: Sep 21, 2023 09:29 PM
From: BrettV
Subject: AOS-CX Port Security configuration validation
I logged a TAC case, and despite the documentation suggesting that the feature can be enabled globally or at the port level, the command is required at the global level.
At least in firmware version 10.10.1010, enabling it in the global context allows you to configure it at the port level. There is no way to enable the command on all ports without entering config on the individual ports.
------------------------------
Regards,
Brett V
Original Message:
Sent: Sep 06, 2023 08:36 PM
From: BrettV
Subject: AOS-CX Port Security configuration validation
Hi all,
I have a customer with the following interface configuration on their AOS-CX switches:
interface 1/1/30
no shutdown
no routing
vlan access 100
spanning-tree bpdu-guard
spanning-tree tcn-guard
spanning-tree port-type admin-edge
port-access security violation action shutdown
port-access security violation action shutdown auto-recovery enable
port-access security violation action shutdown recovery-timer 60
port-access port-security
enable
no lldp transmit
no lldp receive
no cdp
loop-protect
exit
But when a dumb switch is connected to the port, it never shuts down. They want to ensure only a single MAC address is permitted. Which is the default value when no limit is specified.
There are currently 12 MAC addresses connected to that port:
show mac-address-table int 1/1/30
MAC age-time : 300 seconds
Number of MAC addresses : 12
MAC Address VLAN Type Interface
-------------------------------------------------------------------
xx:xx:xx:xx:f9:d9 100 dynamic 1/1/30
xx:xx:xx:xx:c0:fd 100 dynamic 1/1/30
xx:xx:xx:xx:c0:47 100 dynamic 1/1/30
xx:xx:xx:xx:bc:83 100 dynamic 1/1/30
xx:xx:xx:xx:ba:e3 100 dynamic 1/1/30
xx:xx:xx:xx:ba:b9 100 dynamic 1/1/30
xx:xx:xx:xx:ba:e5 100 dynamic 1/1/30
xx:xx:xx:xx:ba:ef 100 dynamic 1/1/30
xx:xx:xx:xx:bb:12 100 dynamic 1/1/30
xx:xx:xx:xx:bb:a0 100 dynamic 1/1/30
xx:xx:xx:xx:bb:ea 100 dynamic 1/1/30
And I also get the following message using the verification commands:
show port-access port-security interface 1/1/30 port-statistics
Port-security is not configured.
show port-access port-security interface 1/1/30 client-status
Port-security is not configured.
What am I missing?
There is a command to enable port-access port-security globally, but the documentation doesn't say anything about enabling this first - in fact, I would rather not enable it globally and have to remove it from the interfaces that don't require it.
------------------------------
Regards,
Brett V
------------------------------