H3C Technologies H3C WX5500E Series Access Controllers User Manual

Page 102

Advertising
background image

94

[DeviceA] vlan 2

# Disable MAC address learning for VLAN 2.

[DeviceA-vlan2] mac-address mac-learning disable

[DeviceA-vlan2] quit

# Configure VLAN 2 as the remote probe VLAN of the mirroring group. Configure GigabitEthernet
1/0/1 as a source port and GigabitEthernet 1/0/2 as the egress port in the mirroring group.

[DeviceA] mirroring-group 1 remote-probe vlan 2

[DeviceA] mirroring-group 1 mirroring-port gigabitethernet 1/0/1 both

[DeviceA] mirroring-group 1 monitor-egress gigabitethernet 1/0/2

# Configure output port GigabitEthernet 1/0/2 as a trunk port to permit the packets from VLAN 2
to pass through, and disable the spanning tree feature on the port.

[DeviceA] interface gigabitethernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] port link-type trunk

[DeviceA-GigabitEthernet1/0/2] port trunk permit vlan 2

[DeviceA-GigabitEthernet1/0/2] undo stp enable

[DeviceA-GigabitEthernet1/0/2] quit

2.

Configure Device B (the intermediate device):
# Create VLAN 2 as the remote probe VLAN.

<DeviceB> system-view

[DeviceB] vlan 2

# Disable MAC address learning for the remote probe VLAN.

[DeviceB-vlan2] mac-address mac-learning disable

[DeviceB-vlan2] quit

# Configure GigabitEthernet 1/0/1 as a trunk port that permits the packets from VLAN 2 to pass
through.

[DeviceB] interface gigabitethernet 1/0/1

[DeviceB-GigabitEthernet1/0/1] port link-type trunk

[DeviceB-GigabitEthernet1/0/1] port trunk permit vlan 2

[DeviceB-GigabitEthernet1/0/1] quit

# Configure GigabitEthernet 1/0/2 as a trunk port that permits the packets from VLAN 2 to pass

through.

[DeviceB] interface gigabitethernet 1/0/2

[DeviceB-GigabitEthernet1/0/2] port link-type trunk

[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan 2

[DeviceB-GigabitEthernet1/0/2] quit

3.

Configure Device C (the destination device):
# Configure GigabitEthernet 1/0/1 as a trunk port that permits the packets from VLAN 2 to pass
through.

<DeviceC> system-view

[DeviceC] interface gigabitethernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] port link-type trunk

[DeviceC-GigabitEthernet1/0/1] port trunk permit vlan 2

[DeviceC-GigabitEthernet1/0/1] quit

# Create a remote destination group.

[DeviceC] mirroring-group 1 remote-destination

# Create VLAN 2.

Advertising