Vyatta Network OS Documentation

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

SPAN port mirroring configuration

SPAN port mirroring requires the configuration of a Vyatta router as provided in the following example.

Table 1. Configuring SPAN port mirroring

Step

Command

Configure a SPAN session.

vyatta@vyatta# set service portmonitor session 1 type span

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

vyatta@vyatta# set service portmonitor session 1 source dp0s3

Configure the destination interface for the session.

vyatta@vyatta# set service portmonitor session 1 destination dp0s4

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:                      1
    Type:                     span
    State:                    enabled
    Source interfaces:
      Name:                   dp0s3
        Direction:            both
    Destination interface:    dp0s4