H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 465

Advertising
background image

50-9

[AC-GigabitEthernet0/0/3] port link-type trunk

[AC-GigabitEthernet0/0/3] port trunk permit vlan 2

2) Configure Switch A (the intermediate device).

# Configure port GigabitEthernet 0/0/1 as a trunk port and configure the port to permit the packets of
VLAN 2.

<SwitchA> system-view

[SwitchA] interface GigabitEthernet 0/0/1

[SwitchA-GigabitEthernet0/0/1] port link-type trunk

[SwitchA-GigabitEthernet0/0/1] port trunk permit vlan 2

[SwitchA-GigabitEthernet0/0/1] quit

# Configure port GigabitEthernet 0/0/2 as a trunk port and configure the port to permit the packets of
VLAN 2.

[SwitchA] interface GigabitEthernet 0/0/2

[SwitchA-GigabitEthernet0/0/2] port link-type trunk

[SwitchA-GigabitEthernet0/0/2] port trunk permit vlan 2

3) Configure Switch B (the destination device).

# Configure port GigabitEthernet 0/0/1 as a trunk port and configure the port to permit the packets of
VLAN 2.

<SwitchB> system-view

[SwitchB] interface GigabitEthernet 0/0/1

[SwitchB-GigabitEthernet0/0/1] port link-type trunk

[SwitchB-GigabitEthernet0/0/1] port trunk permit vlan 2

[SwitchB-GigabitEthernet0/0/1] quit

# Create a remote destination port mirroring group.

[SwitchB] mirroring-group 1 remote-destination

# Create VLAN 2.

[SwitchB] vlan 2

[SwitchB-vlan2] quit

# Configure VLAN 2 as the remote port mirroring VLAN of the remote destination port mirroring group.
Add port GigabitEthernet 0/0/2 to the remote destination port mirroring group as the destination port.

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

[SwitchB] mirroring-group 1 monitor-port GigabitEthernet 0/0/2

[SwitchB] interface GigabitEthernet 0/0/2

[SwitchB-GigabitEthernet0/0/2] port access vlan 2

After finishing the configuration, you can monitor all the packets sent by Department 1 and Department
2 on the Data monitoring device.

Advertising