4.3.16Mirror Port Commands
This section describes how to mirror traffic from a source port to a target port.
TABLE 4-23 Mirror Port Commands
Command | Function | Mode | Page | |
|
|
|
|
|
port | monitor | Configures a mirror session | IC | |
show | port monitor | Shows the configuration for a mirror port | PE | |
|
|
|
|
|
4.3.16.1port monitor
Use this command to configure a mirror session. Use the no form to clear a mirror session.
It is only possible to monitor one port on the switch at a time.
Note – The integrated switches on the Sun Fire B1600 blade system chassis are each composed of two switch chips linked together. It is only possible to mirror the traffic on one port by using another port that is on the same switch chip. The ports NETP0, NETP1, NETP4, NETP5, and SNP8 through SNP15 are on one switch chip. The ports NETP2, NETP3, NETP6, NETP7, and SNP0 through SNP7 are on the other. (If you look at the rear panel of the SSC, all the ports on the right are on one chip, and all the ports on the left are on the other.)
Syntax
port monitor interface [rx tx both]
no port monitor interface
■interface – ethernet
■rx – Mirror received packets.
■tx – Mirror transmitted packets.
■both – Mirror both received and transmitted packets.
Default Setting
No mirror session is defined. When enabled, the default mirroring is for both received and transmitted packets.