Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure Local SPAN Example

Network Requirement

  • PC1, PC2 and PC3 are connected with Device; PC1 and PC2 communicate with each other in VLAN2.
  • Configure Local SPAN on Device; the source port is gigabitethernet0/1; the destination port is gigabitethernet0/3; PC3 monitors the packets received and sent by port gigabitethernet0/1 of Device.

Network Topology

Networking of configuring the Local SPAN

Figure 5-1 Networking of configuring the Local SPAN

Configuration Steps

Step 1: Configure the link type of the VLAN and port.

#Create VLAN2 on Device.

Device#configure terminal
Device(config)#vlan 2
Device(config-vlan2)#exit

#Configure the link type of port gigabitethernet0/1 and gigabitethernet0/2 on Device as Access, permitting the services of VLAN2 to pass.

Device(config)#interface gigabitethernet 0/1-0/2
Device(config-if-range)#switchport mode access
Device(config-if-range)#switchport access vlan 2
Device(config-if-range)#exit

Step 2: Configure Local SPAN.

#Configure Local SPAN on Device, the mirror source session is port gigabitethernet0/1, and the destination session is port gigabitethernet0/3.

Device(config)#monitor session 1 source interface gigabitethernet 0/1 both
Device(config)#monitor session 1 destination interface gigabitethernet 0/3

#View the session information of Local SPAN on Device.

Device#show monitor session all  
---------------------------------------------
Session 1 
Type             : SPAN Local Session
Destination Interface : gigabitethernet0/3
Source Interface(both): gi0/1  

Step 3: Check the result.

#When PC1 and PC2 communicate with each other, the packets sent and received by port gigabitethernet0/1 can be got on PC3.