Vyatta Network OS Documentation

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

service portmonitor session <id> erspan header

Defines the ERSPAN header type for a port monitoring session.

set service portmonitor session id erspan header { type-II | type-III }
delete service portmonitor session id erspan header
show service portmonitor session id erspan [ header ]
id
The number of a session. The maximum number of sessions on the router is eight. Enter an integer from 1 to 31.
type-II
Defines the ERSPAN Type II encapsulation header type that is added to the original frame.
type-III
Defines the ERSPAN Type III encapsulation header type that is added to the original frame. Compared to a TYPE II header, this header is larger and more flexible to support additional fields, including time stamps.

Configuration mode


service {
    portmonitor {
        session id {
            erspan {
                header type-II | type-III
            }
        }
    }
}

On the source vRouter, traffic from source interfaces is mirrored and prepended by Type II or Type III headers. These headers are defined in the IETF draft proposal.

Port mirroring is enabled when the session type and the destination interface for the session are configured. For ERSPAN sessions, the ERSPAN header type and identifier must also be configured.

Use the set form of the command to define the ERSPAN header type.

Use the delete form of the command to delete the ERSPAN header type.

Use the show form of the command to show the ERSPAN header type for a port monitoring session.