PLANET WGSW-52040 User Manual

Page 478

Advertising
background image

61-49

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

SwitchB (config-router)#exit

(4) Configure Device C (the destination device)

# Create interface Tunne1, and configure an IP address and mask for it.

SwitchC(config)#interface tunnel 1

SwitchC (config-if-tunnel1)# tunnel mode gre ip

SwitchC (config-if-tunnel1)#ip address 50.1.1.2 255.255.255.0

# Configure Tunnel1 to operate in GRE tunnel mode, and configure source and destination IP addresses for it.

SwitchC (config-if-tunnel1)# tunnel source 40.1.1.1

SwitchC (config-if-tunnel1)# tunnel destination 10.1.1.1

SwitchC (config-if-tunnel1)# exit

# Configure OSPF protocol.

SwitchC (config)#router ospf

SwitchC (config-router)#network 0.0.0.0/0 area 0

SwitchC (config-router)#exit

# Configure Ethernet 1/1 as a source port and Ethernet 1/2 as the destination port of local mirroring group 1.

SwitchC (config)#monitor session 1 destination interface ethernet 1/2

SwitchC (config)#monitor session 1 source interface ethernet 1/1 rx

Advertising