Port

The port command associates a port to a mirror source. The port is identified by the port ID.

The following shows the port-id syntax for the port command:

Table:
port-id: slot/mda/port[.channel]

eth-sat-id

esat-id/slot/port

esat

keyword

id

1 to 20

pxc-id

pxc-id.sub-port

pxc

keyword

id

1 to 64

sub-port

a, b

aps-id

aps-group-id[.channel]

aps

keyword

group-id

1 to 64

bundle-type-slot/mda.bundle-num

bundle

keyword

type

ima, fr ppp

bundle-num

1 to 336

ccag-id - ccag-id.path-id[cc-type]:cc-id

ccag

keyword

id

1 o 8

path-id

a,b

cc-type

.sap-net, .net-sap

cc-id

0 to 4094

lag-id

1 to 800

egress

keyword

ingress

keyword

Note: On the 7950 XRS, the XMA ID takes the place of the MDA.

The defined port can be an Ethernet port, a SONET/SDH path, a multilink bundle, a TDM channel, a Cross Connect Aggregation Group (CCAG), or a Link Aggregation Group (LAG) ID. If the port is a SONET/SDH or TDM channel, the channel ID must be specified to identify which channel is being mirrored. When a LAG ID is specified as the port ID, mirroring is enabled on all ports making up the LAG. Ports that are circuit-emulation (CEM) and PPP bundle groups cannot be used in a mirror source (applies to the 7750 SR). SONET/SDH applies to the 7450 ESS and 7750 SR, and multilink bundle and TDM channel apply to the 7750 SR.

Mirror sources can be ports in either access or network mode. Port mirroring is supported in the following combinations:

Table: Mirror source port requirements
Port type Port mode Port encapsulation type

faste/gige/xgige

Ethernet

access

dot1q, null, qinq

faste/gige/xgige

Ethernet

network

dot1q, null

SONET (clear/deep channel)

access

bcp-null, bcp-dot1q, ipcp

TDM (clear/deep channel)

access

bcp-null, bcp-dot1q, ipcp

debug>mirror-source# port {port-id | lag lag-id}
 {[egress][ingress]} 
*A:ALA-A>debug>mirror-source# port 2/2/2 ingress egress