Announcement

Collapse
No announcement yet.

Configure port security on all ports at once

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configure port security on all ports at once

    Hello,
    I am using a 2950 and I am configuring sticky macs as part of port security, however rather then configuring each port individually is there a way to do them all at once?

    Thanks for the advice.

  • #2
    Re: Configure port security on all ports at once

    You could use the "range" argument on command line. Something like:

    Code:
     int range g0/1 - 24
      switchport port-security mac-address sticky
      end

    Comment


    • #3
      Re: Configure port security on all ports at once

      Thanks that worked!!

      Code:
      Switch2(config)#int range f0/1 - 24 
      Switch2(config-if-range)#switchport mode access 
      Switch2(config-if-range)#switchport port-security 
      Switch2(config-if-range)#switchport port-security mac-address sticky 
      Switch2(config-if-range)#switchport port-security violation shutdown
      Switch2(config-if-range)#exit
      Switch2(config)#exit
      Switch2#
      Last edited by SergioH; 6th February 2011, 18:13. Reason: additional information

      Comment

      Working...
      X