Ghi_Chep_CCNA__Vnpro_[bookbooming.com]

Page 33

Sw(config-if)#switchport mode access ROUTER(config-if)#switchport port-security mac-address ? H.H.H 48 bit mac address sticky Configure dynamic secure addresses as sticky -----------> cau hinh port se chap nhan dia chi MAC dau tien su dung port nay sau nay cac port khac gan vao se xem la vi pham Sw(config-if)#switchport port-security mac-address 00e0.4c21.65cd Sw(config-if)#switchport port-security maximum ? <1-132> Maximum addresses ----> so lan toi da cho phep vi pham khi gan vao port ko hop le Sw(config-if)#switchport port-security maximum 1 Sw(config-if)#switchport port-security violation ? ----> vi pham se xu ly theo cac truong hop ben duoi protect Security violation protect mode ----> port chuyen sang trang thai loi va xuat hien cac cau thong bao tren man hinh 35xx: khong hoat dong 29xx: port van hoat dong restrict Security violation restrict mode shutdown Security violation shutdown mode Sw(config-if)#switchport port-security violation shutdown Sw#sh mac-address-table Mac Address Table ------------------------------------------Vlan Mac Address Type Ports ---- ------------------ ----All 000b.5f26.ad80 STATIC CPU All 0100.0ccc.cccc STATIC CPU All 0100.0ccc.cccd STATIC CPU All 0100.0cdd.dddd STATIC CPU 1 00e0.4c21.65cd STATIC Fa0/8 -----> khi thanh cong Entry nay se tro thanh EntryStatic Total Mac Addresses for this criterion: 5 Sw#sh port-security interface fa0/8 Port Security : Enabled Port Status : Secure-up Violation Mode : Shutdown Aging Time : 0 mins Aging Type : Absolute SecureStatic Address Aging: Disabled Maximum MAC Addresses :1 Total MAC Addresses :1 Configured MAC Addresses : 1 Sticky MAC Addresses :0 Last Source Address : 0000.0000.0000 Security Violation Count : 0 Sw#sh port-security int fa0/8 Port Security : Enabled Port Status : Secure-shutdown Trang 33/201


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.