enable
Syntax
enable
描述
Enables the mirroring session for the current command context.
Command context
config-mirror-
Authority
Administrators or local user group members with execution rights for this command.
Usage
By default, mirroring sessions are disabled.
When a mirroring session is enabled, theshow mirror
command for that session ID shows anAdmin Status
ofenable
and anOperation Status
ofenabled
.
If sFlow is enabled on an interface and a mirroring session specifies the same interface as the source of received traffic (the source is configured with a direction ofrx
orboth
):
The attempt to enable the mirroring session fails and an error is returned.
When adding, removing, or changing the configuration of a source interface in an enabled mirroring session, packets from other mirror sources using the same destination interface might be interrupted.
Example
配置和启用镜像ession:
switch(config)#mirror session 3switch(config-mirror-3)#source interface 1/1/2 rxswitch(config-mirror-3)#destination interface 1/1/3switch(config-mirror-3)#comment Monitor router port ingress-only trafficswitch(config-mirror-3)#enable