Bolt Mirroring
The flowmirroring command allows the mirroring of specific traffic to an unused uplink port to be utilized for either troubleshooting packet flows or allowing network analyzers to sniff all the packets for unusual traffic. Flow mirroring allows the capability to filter specific flows such as a specific VLAN, the direction, or with a MAC address to the target port. This allows observing just a portion of the traffic flowing over an uplink interface.
flowmirroring Command Structure
Note: * = required parameter
- Command Path - interface flowmirroring
- Actions -
- ENable - Enables the flow mirroring operation
- DIRection - Traffic direction at the port
- ingress|egress|both
- filter - Filter configuration
- Ether= - ether direction filter
- src|dst|host
- MAC= - address MAC address filter
- valid MAC address
- mask= - MAC address filter mask
- valid MAC address mask
- Ether= - ether direction filter
- *SouRce= - Source of the traffic to be mirrored
- MDS1-1-1|MDS1-1-10|MDS1-1-11|MDS1-1-12|MDS1-1-13|MDS1-1-14|MDS1-1-15|MDS1-1-16|MDS1-1-2|MDS1-1-3|MDS1-1-4|MDS1-1-5|MDS1-1-6|MDS1-1-7|MDS1-1-8|MDS1-1-9|NET1|NET10|NET11|NET12|NET2|NET3|NET4|NET5|NET6|NET7|NET8|NET9|QSFP1-2-1|QSFP1-2-2|QSFP1-2-3|QSFP1-2-4|QSFP1-2-5|QSFP1-2-6|SFP1-1-1|SFP1-1-2|SFP1-1-3|SFP1-1-4
- *TarGEt= - target where the traffic is mirrored to
-
CPU|QSFP1-2-1|QSFP1-2-2|QSFP1-2-3|QSFP1-2-4|QSFP1-2-5|QSFP1-2-6|SFP1-1-1|SFP1-1-2|SFP1-1-3|SFP1-1-4
-
- VLAN= - VLAN filter at the source
- any |1-4095
- DIRection - Traffic direction at the port
- ENable - Enables the flow mirroring operation
Caution: With any, the user needs to be very careful. Any should only be used if traffic that is mirrored does not exceed the capacity of the target port.
- Disable - Disables the flow mirroring operation
- Show - Display the flow mirror configuration
- Verbose - Display detailed mirroring configuration
Enable Mirroring
To enable port mirroring, follow these steps:
- Open a CLI session.
- From the XPONx command line, input interface flowmirroring en src=NET2 trgt=CPU vlAN=77 diRection=ingress and press Enter.
Note: Flowmirroring can be entered as a single line of code or by following the CLI prompts. For a list of the available prompt values, input the ? For the value list.
XPONx> interface flowmirroring en src=NET2 trgt=CPU vlAN=77 diRection=ingress <enter>
XPONx> _
|
- Port mirroring is enabled and mirroring packets to the destination port. You should now be able to monitor them.
Show Mirroring
To show port mirroring, follow these steps:
- From the XPONx> command line, input interface flowmirroring show and press Enter.
XPONx> interface flowmirroring show <enter> | Mirror Configuration | |==============|==============|=========|======|============================================| | TARGET | SOURCE | DIR | VLAN | FILTER | |==============|==============|=========|======|============================================| | CPU | NET2 | ingress | 77 | | | | | | +---> Source-Port : QSFP1-2-1 | | | > Source-Port : QSFP1-2-2 | | | > Source-Port : QSFP1-2-3 | | | > Source-Port : QSFP1-2-4 | | | | |==============|==============|=========|======|============================================| XPONx> _
Disable Mirroring
To disable port mirroring, follow these steps:
- From the OIU2> command line, input interface flowmirroring disable and press Enter.
XPONx> interface flowmirroring disable <enter> OIU2> _ - Verify mirroring is disabled by inputting interface flowmirroring show verbose and press Enter.
XPONx> interface flowmirroring disable <enter> Mirroring is disabled. XPONx> _
| Next
FEEDBACK: Are you happy with this material?
Thank you Your feedback helps us to continually improve our content.