發(fā)布時(shí)間:2025-04-05 文章來(lái)源:xp下載站 瀏覽:
路由器(Router)是連接兩個(gè)或多個(gè)網(wǎng)絡(luò)的硬件設(shè)備,在網(wǎng)絡(luò)間起網(wǎng)關(guān)的作用,是讀取每一個(gè)數(shù)據(jù)包中的地址然后決定如何傳送的專(zhuān)用智能性的網(wǎng)絡(luò)設(shè)備,路由器最主要的功能為實(shí)現(xiàn)信息的轉(zhuǎn)送。 思科交換機(jī)出現(xiàn)錯(cuò)誤日志:%PORT_SECURITY-2-PSECURE_VIOLATION: Security violation occurred, caused by MAC address 001e.e216.3e24 on port FastEthernet1/0/10 原因分析 3750-Switch # show running-config interface FastEthernet 1/0/10 interface FastEthernet1/0/10 switchport access vlan 333 switchport mode access switchport port-security maximum 3 switchport port-security switchport port-security violation restrict spanning-tree portfast spanning-tree bpduguard enable
查看端口mac: 3750-Switch # show mac address-table | in 1/0/10 333 000c.2921.d146 STATIC Fa1/0/10 333 000c.2921.d238 STATIC Fa1/0/10 333 000c.291c4.413e STATIC Fa1/0/10 可以看到,該端口配置的最大允許的mac數(shù)量為3,實(shí)際已經(jīng)3個(gè)mac地址了。故再有新的mac通過(guò)此端口傳輸數(shù)據(jù)就會(huì)被拒絕,出現(xiàn)報(bào)錯(cuò)日志。
解決方法 3750-Switch(config) # interface FastEthernet1/0/10 3750-Switch(config-if) # switchport port-security maximum 5 再次檢查端口mac: 3750-Switch # show mac address-table | in 1/0/10 333 000c.2921.d146 STATIC Fa1/0/10 333 000c.2921.d238 STATIC Fa1/0/10 333 000c.291c4.413e STATIC Fa1/0/10 333 001e.e216.3e24 STATIC Fa1/0/10 可以看到,顯示mac地址為4個(gè),日志再無(wú)報(bào)錯(cuò),問(wèn)題解決。 這是我這個(gè)問(wèn)題的解決辦法,供參考。可能別的一些端口安全驗(yàn)證問(wèn)題也會(huì)報(bào)這個(gè)日志,具體問(wèn)題具體分析解決即可。 本文可以幫助您基本地設(shè)置和管理您的路由器。 |