beautypg.com

H3C Technologies H3C S3100 Series Switches User Manual

Page 627

background image

1-10

# Configure Ethernet 1/0/3 as trunk port, allowing packets of VLAN 10 to pass.

[Sysname] interface Ethernet 1/0/3

[Sysname-Ethernet1/0/3] port link-type trunk

[Sysname-Ethernet1/0/3] port trunk permit vlan 10

[Sysname-Ethernet1/0/3] quit

# Display configuration information about remote source mirroring group 1.

[Sysname] display mirroring-group 1

mirroring-group 1:

type: remote-source

status: active

mirroring port:

Ethernet1/0/1 inbound

Ethernet1/0/2 inbound

reflector port: Ethernet1/0/4

remote-probe vlan: 10

2) Configure the intermediate switch (Switch B)

# Configure VLAN 10 as the remote-probe VLAN.

system-view

[Sysname] vlan 10

[Sysname-vlan10] remote-probe vlan enable

[Sysname-vlan10] quit

# Configure Ethernet 1/0/1 as the trunk port, allowing packets of VLAN 10 to pass.

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] port link-type trunk

[Sysname-Ethernet1/0/1] port trunk permit vlan 10

[Sysname-Ethernet1/0/1] quit

# Configure Ethernet 1/0/2 as the trunk port, allowing packets of VLAN 10 to pass.

[Sysname] interface Ethernet 1/0/2

[Sysname-Ethernet1/0/2] port link-type trunk

[Sysname-Ethernet1/0/2] port trunk permit vlan 10

3) Configure the destination switch (Switch C)

# Create remote destination mirroring group 1.

system-view

[Sysname] mirroring-group 1 remote-destination

# Configure VLAN 10 as the remote-probe VLAN.

[Sysname] vlan 10

[Sysname-vlan10] remote-probe vlan enable

[Sysname-vlan10] quit

# Configure the destination port and remote-probe VLAN for the remote destination mirroring group.

[Sysname] mirroring-group 1 monitor-port Ethernet 1/0/2

[Sysname] mirroring-group 1 remote-probe vlan 10

# Configure Ethernet 1/0/1 as the trunk port, allowing packets of VLAN 10 to pass.

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] port link-type trunk