QTECH QSW-3400 Инструкция по настройке User Manual
Page 434

+7(495) 797-3311 www.qtech.ru
Москва, Новозаводская ул., 18, стр. 1
433
Before configuring layer-3 remote port mirroring, make sure that you have created a GRE
tunnel that connects the source and destination device, and ensure the normal transmitting for
GRE tunnel.
The configuration of layer-3 remote port mirror needs to be processed on the source and
destination devices respectively. Both the source and destination ports are configured on the
source and destination devices, the difference in the following:
1. On Device A, configure the port which you want to monitor as the source port and configure
the tunnel interface as the destination port.
2. On Device C, configure the physical port corresponding to the tunnel interface as the
source port and configure the port that connects the data monitor device as the destination
port.
(1) Configure IP addresses
Configure IP address and subnet mask for the interfaces, configuration procedures is omitted.
(2) Configure Device A (the source device)
# Create interface Tunnel1, and configure an IP address and mask for
it.
SwitchA(config)#interface tunnel 1
SwitchA(config-if-tunnel1)# tunnel mode gre ip
SwitchA (config-if-tunnel1)#ip address 50.1.1.1 255.255.255.0
# Configure Tunnel1 to operate in GRE tunnel mode, and configure
source and destination IP addresses for it.
SwitchA(config-if-tunnel1)# tunnel source 10.1.1.1
SwitchA(config-if-tunnel1)# tunnel destination 40.1.1.1
SwitchA(config-if-tunnel1)# exit
# Configure OSPF protocol.
SwitchA (config)#router ospf
SwitchA (config-router)#network 0.0.0.0/0 area 0
SwitchA (config-router)#exit
# Configure Ethernet 1/1 as a source port and Tunnel1 as the
destination port of local mirroring group 1.
SwitchA(config)#monitor session 4 destination tunnel 1
SwitchA(config)#monitor session 4 source interface ethernet 1/1 both
(3) Configure Device B (the intermediate device)
# Configure OSPF protocol.
SwitchB (config)#router ospf
SwitchB (config-router)#network 0.0.0.0/0 area 0