1 |
router#configure terminal |
Enters the device into global configuration mode |
2 |
router(config)#interface interface-id |
Enters the device into interface configuration mode |
3 |
router(config-if)#switchport mode {access | trunk} |
Statically configures the switchport into access or trunk mode |
4 |
router(config-if)#switchport port-security |
Enables switchport port security |
5 |
router(config-if)#switchport port-security maximum value [vlan {vlan-id | {access | voice}] |
Configures the maximum number of MAC addresses that are permitted by switchport security; by default this is set to 1 MAC address. |
6 |
router(config-if)#switchport port-security violation {protect | restrict | shutdown [vlan]} |
Configures the switchport security violation mode; by default this is set to shutdown. |
7 |
router(config-if)#switchport port-security mac-address mac-address [vlan {vlan-id | {access | voice}] |
Configures a static secure MAC address on a switchport |
8 |
router(config-if)#switchport port-security mac-address sticky |
Configures the use of sticky learning on a switchport |
9 |
router(config-if)#switchport port-security aging {static | time time| type {absolute | inactivity}} |
Configures the use of switchport port-security aging, the aging time and/or the aging type. The default is for switchport port-security aging to be disabled. |