- Knowledge Base
- Network
- Stratix
How can I use the command-line interface when port mirroring a Stratix 5800?
Setting up port mirroring on a Stratix 5800 switch via the command-line interface (CLI).
Here’s a general approach:
- Access CLI: Connect to the switch’s CLI using a terminal emulation program like PuTTY or a similar tool via SSH or serial connection.
- Enter Configuration Mode: Switch to configuration mode. This is often done by typing configure terminal or simply config t.
- Select Source and Destination Ports: Choose which ports will be mirrored (source ports) and where the mirrored traffic will go (destination port). For example:
monitor session 1 source interface Gi1/0/1-2
monitor session 1 destination interface Gi1/0/3
- This command mirrors traffic from ports Gi1/0/1 and Gi1/0/2 to port Gi1/0/3.
- Configure Additional Options: Depending on your needs, you might want to specify additional options such as VLAN filtering, ingress or egress monitoring, or bidirectional mirroring.
- Verify and Save: Verify the configuration and save changes using appropriate commands (end to exit configuration mode and write memory or copy running-config startup-config to save the configuration).
Note: The exact commands can vary slightly depending on the specific firmware version of your Stratix 5800 switch. Always refer to the official documentation or command reference specific to your switch model and firmware version for detailed and accurate instructions.