
14
CLI
Port Mirror
Table 14: GVRP
Function
Privilege
Description
Example
show mirror
User EXEC
Display all mirror sessions. switch# show mirror
show mirror session <1-
4>
User EXEC
Specify the mirror session
to display.
switch# show mirror session 1
mirror session <1-4>
source interfaces
IF_PORTS (both|rx|tx)
Admin EXEC
Specify the mirror session
to configure.
Specify the source inter-
face, include physical ports
and LA port.
Specify the traffic direction
to mirror.
switch# configure
switch(config)# mirror session
1 source interface fa2-5 both
switch(config)# exit
mirror session <1-4>
destination interface
IF_NMLPORT [allow-
ingress]
Admin EXEC
Specify the mirror session
to configure.
Specify the SPAN destina-
tion. A destination must be
a physical port.
Enable ingress traffic for-
warding.
switch# configure
switch(config)# mirror session
1 destination interface fa1
switch(config)# exit
no mirror session (<1-
4>|all)
Admin EXEC
Clear the configuration of
specified mirror session.
Clear the configuration of all
of the mirror sessions.
switch# configure
switch(config)# no mirror ses-
sion 1
switch(config)# exit
no mirror session <1-4>
destination interface
IF_NMLPORT
Admin EXEC
Delete the destination inter-
face of the mirror session.
switch# configure
switch(config)# no mirror ses-
sion 1 destination interface fa1
switch(config)# exit
no mirror session <1-4>
source interfaces
IF_PORTS (both|rx|tx)
Admin EXEC
Delete the source interface
of the mirror session.
Delete the traffic direction of
the mirror port.
switch# configure
switch(config)# no mirror ses-
sion 1 source interface fa2-5
both
switch(config)# exit
LLDP
Table 15: LLDP
Function
Privilege
Description
Example
show lldp
User EXEC
Display LLDP information.
switch# show lldp
show lldp interfaces
IF_NMLPORTS
User EXEC
Display LLDP information in
specified ports.
switch# show lldp interfaces
fa5
show lldp local-device
User EXEC
Display the local configura-
tion.
switch# show lldp local-device
show lldp interfaces
IF_NMLPORTS local-
device
User EXEC
Display the local configura-
tion in specified ports.
switch# show lldp interfaces
fa5,fa6 local-device
show lldp neighbor
User EXEC
Display the neighbor's
LLDP information.
switch# show lldp neighbor