
127
To delete a VLAN that is configured as a remote probe VLAN, remove the remote probe VLAN
configuration first.
Related commands:
mirroring-group
.
Examples
# Create remote source group 1, and configure VLAN 10 as its remote probe VLAN.
<Sysname> system-view
[Sysname] mirroring-group 1 remote-source
[Sysname] mirroring-group 1 remote-probe vlan 10
# Create remote destination group 2, and configure VLAN 20 as its remote probe VLAN.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-destination
[Sysname] mirroring-group 2 remote-probe vlan 20
mirroring-port
Syntax
[
mirroring-group
group-id
]
mirroring-port
{
inbound
|
outbound
|
both
}
undo
[
mirroring-group
group-id
]
mirroring-port
{
inbound
|
outbound
|
both
}
View
Interface view
Default level
2: System level
Parameters
mirroring-group
group-id
: Specifies a local or remote source group by its number, which ranges from 1
to 4 and defaults to 1. The mirroring group specified by
group-id
must already exist.
both
: Mirrors both inbound and outbound packets on the current port.
inbound
: Mirrors only inbound packets on the current port.
outbound
: Mirrors only outbound packets on the current port.
Description
Use the
mirroring-port
command to assign the current port to a local or remote source group as a source
port.
Use the
undo mirroring-port
command to remove the current port from the mirroring group.
By default, a port does not serve as a source port for any mirroring group.
You cannot configure source ports for a remote destination group.
When removing a source port from a mirroring group, make sure the traffic direction you specified in the
undo mirroring-group
command matches the actual monitored direction of the port specified earlier in
the
mirroring-port
command.
Examples
# Create local mirroring group 1, configure GigabitEthernet 1/0/1 as a source port of the mirroring
group, and specify that the mirroring group monitor the bidirectional traffic of the port.
<Sysname> system-view