Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

ERSPAN-destination port mirroring configuration

The following example provides the configuration of ERSPAN-destination port mirroring on a Vyatta router.

Table 1. Configuring ERSPAN-destination port mirroring

Step

Command

Configure an ERSPAN tunnel.

The local and remote IP addresses that are configured for the ERSPAN tunnel must be fully routable addresses for each side to ping the other address.

vyatta@vyatta# set interfaces dataplane dp0s11 address 15.1.1.2/24
vyatta@vyatta# set interfaces erspan erspan0 local-ip 15.1.1.2
vyatta@vyatta# set interfaces erspan erspan0 remote-ip 15.1.1.1

Display the tunnel configuration.

vyatta@vyatta#show interfaces
 interfaces {
     dataplane dp0s11 {
         address 15.1.1.2/24
     }
     erspan erspan0 {
         local-ip 15.1.1.2
         remote-ip 15.1.1.1
     }
 }

Configure an ERSPAN-destination session.

vyatta@vyatta# set service portmonitor session 22 type erspan-destination

Configure the ERSPAN source tunnel for the session.

vyatta@vyatta# set service portmonitor session 22 source erspan0

Configure the destination interface for the session.

vyatta@vyatta# set service portmonitor session 22 destination dp0s12

Commit the configuration.

vyatta@vyatta# commit

Configure the identifier.

vyatta@vyatta# set service portmonitor session 22 erspan identifier 200

Configure the header type.

vyatta@vyatta# set service portmonitor session 22 erspan header type-II

Save the configuration.

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

vyatta@vyatta# save

Display the ERSPAN destination configuration.

vyatta@vyatta# show service portmonitor
 portmonitor {
     session 22 {
         destination dp0s12
         erspan {
             header type-II
             identifier 200
         }
         source erspan0
         type erspan-source
     }
 }

Display the ERSPAN destination session information.

vyatta@vyatta:~$ show portmonitor session
Session:                      22
    Type:                     erspan-destination
    State:                    enabled
    erspan Identifier:        200
    erspan Header:            type-II
    Source interfaces:         
      Name:                   erspan0
    Destination interface:    dp0s12