SGS-6341-Series User Manual

Table Of Contents
61-47
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 and
their differences are as follows:
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
User’s Manual of SGS-6341 series