Wired Intelligent Edge

 View Only
  • 1.  AOS-CX Port Security configuration validation

    Posted Sep 06, 2023 08:36 PM

    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
    ------------------------------


  • 2.  RE: AOS-CX Port Security configuration validation

    Posted Sep 21, 2023 09:29 PM

    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
    ------------------------------



  • 3.  RE: AOS-CX Port Security configuration validation
    Best Answer

    Posted Sep 22, 2023 03:54 AM

    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
    ------------------------------



  • 4.  RE: AOS-CX Port Security configuration validation

    Posted Oct 27, 2023 02:22 AM

    Thanks - adding the global command port-access port-security enable as you suggested, immediately shutdown a few suspicious ports where port-security was enabled on the interface.



    ------------------------------
    Regards,

    Brett V
    ------------------------------



  • 5.  RE: AOS-CX Port Security configuration validation

    Posted Oct 03, 2023 04:02 PM

     

    This is what I use and seems to work well:

    ...

    spanning-tree
    port-access port-security enable
    interface 1/1/1

    ....

    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
            mac-address zz:xx:yy:zz:xx:78

    This allows for a single "static" mac-address to be used 




  • 6.  RE: AOS-CX Port Security configuration validation

    Posted Oct 05, 2023 12:09 AM

    I am using:

    port-access port-security client-limit # 

    port-access port-security sticky-learn enable