路由器(Router)是連接兩個或多個網(wǎng)絡(luò)的硬件設(shè)備,在網(wǎng)絡(luò)間起網(wǎng)關(guān)的作用,是讀取每一個數(shù)據(jù)包中的地址然后決定如何傳送的專用智能性的網(wǎng)絡(luò)設(shè)備,路由器最主要的功能為實現(xiàn)信息的轉(zhuǎn)送。 本文記錄了思科3750、2960等交換機抓包的方法。
設(shè)備連接圖
現(xiàn)在需要把SW1的Gi1/0/19端口的網(wǎng)絡(luò)包鏡像到SW1的Gi1/0/18端口。
在SW1的Gi1/0/18端口接入抓包PC進行抓包。
具體步驟與命令
1,配置鏡像源
SW1(config)# monitor session 2 source interface Gi1/0/19
源可以是端口或者Vlan,我這次以端口測試
2,配置鏡像目的端口
SW1(config)# monitor session 2 destination interface Gi1/0/18
3,查看SW1配置情況
SW1#show monitor session all
Session 2
Type : Local Session
Source Ports :
Both : Gi1/0/19
Destination Ports : Gi1/0/18
Encapsulation : Native
Ingress : Disabled
4,刪除鏡像端口
SW1(config)#no monitor session 2
本文可以幫助您基本地設(shè)置和管理您的路由器。
|