home

Supported platforms

Vyatta documentation

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

ERSPAN-source port mirroring configuration

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

Table 1. Configuring ERSPAN-source port mirroring

Step

Command

Configure an ERSPAN GRE 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.1/24
vyatta@vyatta# set interfaces erspan erspan0 local-ip 15.1.1.1
vyatta@vyatta# set interfaces erspan erspan0 remote-ip 15.1.1.2

Display the tunnel configuration.

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

Configure an ERSPAN-source session.

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

Configure the source interface for the session.

vyatta@vyatta# set service portmonitor session 22 source dp0s4.100

Configure the destination ERSPAN tunnel for the session.

vyatta@vyatta# set service portmonitor session 22 destination erspan0

Configure the ERSPAN identifier.

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

Configure the ERSPAN header type.

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

Commit the configuration.

vyatta@vyatta# commit

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 source configuration.

vyatta@vyatta# show service portmonitor
 portmonitor {
     session 22 {
         destination erpsan0
         erspan {
             header type-II
             identifier 200
         }
         source dp0s4.100
         type erspan-source
     }
 }

Display the ERSPAN source information.

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