Cisco - Port Security Example
Example
Click here for example form data Config
int fa1/0/5 switchport switchport mode access switchport port-security switchport port-security maximum [[Maximum Mac #]] switchport port-security mac-address [[Mac Address]] switchport port-security aging static switchport port-security violation restrict int fa1/0/5 switchport switchport mode access switchport port-security switchport port-security maximum [[Maximum Mac #]] switchport port-security mac-address [[Mac Address]] switchport port-security aging static switchport port-security violation shutdown int fa1/0/5 switchport switchport mode access switchport port-security switchport port-security maximum [[Maximum Mac #]] switchport port-security aging absolute switchport port-security aging time 120 switchport port-security mac-address sticky switchport port-security violation restrict int fa1/0/5 switchport switchport mode access switchport port-security switchport port-security maximum [[Maximum Mac #]] switchport port-security aging inactivity switchport port-security aging time 120 switchport port-security mac-address sticky Example Show Commands
HQ-3750#show port-security Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action (Count) (Count) (Count) --------------------------------------------------------------------------- Fa1/0/5 1 1 0 Restrict --------------------------------------------------------------------------- Total Addresses in System (excluding one mac per port) : 0 Max Addresses limit in System (excluding one mac per port) : 6144 HQ-3750#show port-security address Secure Mac Address Table ------------------------------------------------------------------------ Vlan Mac Address Type Ports Remaining Age (mins) ---- ----------- ---- ----- ------------- 1 0010.1234.9902 SecureConfigured Fa1/0/5 - ------------------------------------------------------------------------ Total Addresses in System (excluding one mac per port) : 0 Max Addresses limit in System (excluding one mac per port) : 6144 HQ-3750#show port-security interface Fa1/0/5 Port Security : Enabled Port Status : Secure-down Violation Mode : Restrict Aging Time : 0 mins Aging Type : Absolute SecureStatic Address Aging : Enabled Maximum MAC Addresses : 1 Total MAC Addresses : 1 Configured MAC Addresses : 1 Sticky MAC Addresses : 0 Last Source Address:Vlan : 0000.0000.0000:0 Security Violation Count : 0



Maximum Mac #:
Mac Address:


Use this code to post the full script to your own page:



Use this code to post only the variables to your own page: