Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

RSPAN-source port mirroring

The following example provides the configuration of RSPAN-source port mirroring on a Vyatta router.

Table 1. Configuring RSPAN-source port mirroring

Step

Command

Configure an RSPAN-source session.

vyatta@vyatta# set service portmonitor session 2 type rspan-source

Configure the source physical interface for the session. By default, the monitoring of the traffic direction is both ingress and egress.

vyatta@vyatta# set service portmonitor session 2 source dp0s5

Configure the destination VLAN interface for the session.

vyatta@vyatta# set service portmonitor session 2 destination dp0s7.700

Commit the configuration.

vyatta@vyatta# commit

Save the configuration.

Port monitoring for the session is enabled if the type, source and destination parameters are configured properly.

vyatta@vyatta# save

Display the port mirroring configuration.

vyatta@vyatta:~$ show portmonitor session
Session:                      2
    Type:                     rspan-source
    State:                    enabled
    Source interfaces:         
      Name:                   dp0s5
        Direction:            both
    Destination interface:    dp0s7.700