12-7
Examples
# Specify VLAN 2 as the remote probe VLAN of port mirroring group 1, assuming that VLAN 2 already
exists.
<Sysname> system-view
[Sysname] mirroring-group 1 remote-source
[Sysname] mirroring-group 1 remote-probe vlan 2
mirroring-port
Syntax
[
mirroring-group groupid
]
mirroring-port
{
inbound
|
outbound
|
both
}
undo
[
mirroring-group groupid
]
mirroring-port
{
inbound
|
outbound
|
both
}
View
Ethernet port view
Default Level
2: System level
Parameters
groupid
: Number of a local or remote source mirroring group, in the range of 1 to 4.
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 mirroring
group as a mirroring port.
Use the
undo mirroring-port
command to remove the current port from the port mirroring group.
When assigning a port to a mirroring group as a mirroring port, note that:
z
If no mirroring group is specified, the port is assigned to port mirroring group 1.
z
Whether you assign the port to port mirroring group 1 or any other mirroring group, ensure that the
mirroring group already exists.
z
A mirroring port cannot be a member port of an existing port mirroring group.
z
You cannot add a mirroring port for a remote destination mirroring group.
z
When removing a mirroring port from a mirroring group, make sure the traffic direction you
specified in the
undo
[
mirroring-group groupid
]
mirroring-port
command matches the actual
monitored direction of the port.
Examples
# Configure GigabitEthernet 1/0/1 as a source mirroring port of remote source port mirroring group 2.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-source
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mirroring-group 2 mirroring-port both
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...