mirror-port

Description                                                    Specify a port to receive copies of another port’s traffic.

For more information about mirror port configuration, see “Multiple Port-Monitoring Mirror Ports” in the System Configuration and Administration Guide.

Syntax                                                                  [no] mirror-port portnum ethernet portnum [input | output | both]

Parameter

Description

mirror-port portnum

Mirror port index number.

ethernet portnum

Ethernet port number. This is the port that will act as the mirror port. Mirrored traffic from the monitored port will be copied to and sent out of this port.

input

Configures the mirror port so that only inbound traffic from the moni­tored port can be sent out of the mirror port.

output

Configures the mirror port so that only outbound traffic from the monitored port can be sent out of the mirror port.

both

Configures the mirror port so that both inbound and outbound traffic from the monitored port can be sent out of the mirror port.

This is the default behavior, meaning that if no traffic direction is spec­ified, then both inbound and outbound traffic will be mirrored with­out having to explicitly specify the both option.

Default                                                                Not set

Mode                                                                   Configuration mode

Usage                                                                  When enabling monitoring on a port, you can specify the mirror port to use. You also can specify the traffic direction. A monitored port can use multiple mirror ports.

To specify the port to monitor, use the monitor command at the interface configuration level. (See the “monitor” command in the Network Configuration Guide.)

Example                                                            The following command configures Ethernet port 4 so that it is able to send both inbound and outbound traffic from the monitored port:

ACOS(config)#mirror-port 1 ethernet 4 both

 

The following commands configure a monitor port, Ethernet port 8, to use Ethernet port 4 as the mirror port, using mirror index 1 from above:

ACOS(config)#inferface ethernet 8

ACOS(config-if:ethernet:8)#monitor 1 both

 

Example                                                            The following command configures Ethernet port 3 to send only inbound traffic from the monitored port:

ACOS(config)#mirror-port 2 ethernet 3 input

 

The following commands configure a monitor port, Ethernet port 6, to use Ethernet port 3 as the mirror port, using mirror index 2 from above. Note that the input parameter must be used on the monitor port since the mirror port was also configured with the input parameter:

ACOS(config)#inferface ethernet 6

ACOS(config-if:ethernet:6)#monitor 2 input

 

Table of Contents

Index

Glossary

-Search-

Back