Loader

OLT2/OIU2 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
      • *SouRceSource of the traffic to be mirrored
        • MDS1-ESUA-1|MDS1-ESUA-2|MDS1-ESUA-3|MDS1-ESUA-4|MDS1-1-1|MDS1-1-2|NET1..NET12
      • *TarGEt= target where the traffic is mirrored to
        • MDS1-ESUA-1|MDS1-ESUA-2|MDS1-ESUA-3|MDS1-ESUA-4|CPU
      • VLAN= VLAN filter at the source
        • any|1-4095
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 
    Note: The flowmirroring show verbose only has verbose information if the source is a NET interface. It will then display the NET member ports.
    • Verbose - Display detailed mirroring configuration

Enable Mirroring

To enable port mirroring, follow these steps:

  1. Open a CLI session. 
  2. From the OIU2> command line, input interface  flowmirroring en SouRCe=MDS1-ESUA-1 TaRGeT=CPU VLAN=79 DIRection=egress filter ether=host MAC-address=0a:0b:0c:0d:0e:0f 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.

          

OIU2> interface flowmirroring en SouRCe=MDS1-ESUA-1 TaRGeT=CPU VLAN=79 
DIRection=egress filter ether=host MAC-address=0a:0b:0c:0d:0e:0f <enter>
OIU2> _ 
  1. 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:

  1. From the OIU2> command line, input interface flowmirroring show and press Enter
    OIU2> interface flowmirroring show <enter>
    
    | Mirror Configuration                                                                      |
    |========|============|========|======|=====================================================|
    | TARGET | SOURCE     | DIR    | VLAN | FILTER                                              |
    |========|============|========|======|=====================================================|
    | CPU    | MDS1-ESUA-1| egress |   79 | ether host 0A:0B:0C:0D:0E:0F mask FF:FF:FF:FF:00:00 |
    |========|============|========|======|=====================================================|
    
    OIU2> _

Disable Mirroring

To disable port mirroring, follow these steps:

  1. From the OIU2> command line, input interface flowmirroring disable andpress Enter. . 
    OIU2> interface flowmirroring disable <enter> OIU2> _
  2. Verify mirroring is disabled by inputting interface flowmirroring show verbose and press Enter .
    OIU2> interface flowmirroring show verbose <enter> 
    Mirroring is disabled.
    OIU2> _

Previous  |  

 

FEEDBACK: Are you happy with this material?