Configuring Mirroring for vFlows and Ports


An Netvisor One fabric administrator can run services and applications within the switch. Consider the use case of an application that needs access to data that is flowing through the switch, but does not want to impede that flow. The port-mirroring feature provides this functionality.


The system pre-defines a mirror configuration, but does not insert any traffic into that mirror. Use the following steps to setup mirroring to send from all of the data ports to the span port (port 66).


The command syntax for mirror-modify is as follows:

CLI (network-admin@Leaf1) >  mirror-modify out-port port-list in-port port-list [policy port|vflow] mirroring|no-mirroring

CLI (network-admin@Leaf1) >  mirror-show [format fields-to-display] [parsable-delim character] [sort-asc] [sort-desc] [show dups] [layout vertical|horizontal] [show-interval seconds-interval]

View the status of mirroring by entering the following at the CLI command prompt:


CLI (network-admin@Leaf1) >  mirror-show


switch: T6001-ON

direction: bidirection

out-port:

in-port:

mirroring: disable

 

The parameter out-port is not configured and mirroring is disabled therefore, no data mirroring can occur.


To modify the mirroring configuration, use the following steps:


Use the mirror-modify command to set the output to the span port. However, if there is more than 10Gb of traffic on ports 1-64, do not execute this command.


CLI (network-admin@Leaf1) >  mirror-modify in-port 1-64 out-put 66 mirroring


mirror-show

switch:        T6001-ON

direction:     bidirection

out-put:       66

in-port:       1-64

mirroring:     enable


To disable the configuration, use the following command:


CLI (network-admin@Leaf1) >  mirror-modify no-mirroring


mirror-show

switch: T6001-ON

direction: bidirection

out-port: 66

in-port: 1-64

mirroring: disable