Options

Switchport MAC Max 1 behavior

KPWrightKPWright Member Posts: 44 ■■□□□□□□□□
Folks,

My references aren't particularly clear (or I can't tell that they are) with respect to port security.

Can anyone confirm the behavior of a switch port when the following is invoked:

Switch(config-if)# switchport port-security maximum 1
Switch(config-if)# switchport port-security

Specifically, does the port simply restrict connections to a single MAC at a time (ie no additional distribution) or does it capture the first MAC connected and only allow that one (pending initialization)? Assume nothing is done with "Sticky".

Thanks for the help.

Kevin

Comments

  • Options
    laidbackfreaklaidbackfreak Member Posts: 991
    "switchport port-security maximum 1"

    This command will allow 1 mac address to use the port, all others will be denied.

    The "sticky" option will retain it. and add it to the running config.

    IF you havent saved the config on reboot the "sticky" will have to re-learn them.

    hth
    if I say something that can be taken one of two ways and one of them offends, I usually mean the other one :-)
  • Options
    ColbyGColbyG Member Posts: 1,264
    The default behavior is to shut the port down. If you want the port to stay up, but prevent more than one MAC at a time you would use "protect" or "restrict". We use restrict on all of our ports here.
  • Options
    KPWrightKPWright Member Posts: 44 ■■□□□□□□□□
    Thanks for the feedback.

    I did manage to find a place to lab this out later in the evening. Looks like the port will be secured for the first MAC seen connected once the port-security command is invoked. So if multiple hosts are connected, the first one to transmit wins. Clearing this does not require shutdown of the switch, but does require shut / no shut on the interface before another MAC can be captured.

    Thanks again.

    Kevin
Sign In or Register to comment.