beautypg.com

PLANET WGSW-52040 User Manual

Page 477

background image

61-48

Figure 61-1:

ERSPAN application

diagram

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

n 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.