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> type <type>

Defines the identifier and type for a port monitoring session.

set service portmonitor session id type { span | rspan-source | rspan-destination | erspan-source | erspan-destination }
delete service portmonitor session id [ type [ span | rspan-source | rspan-destination | erspan-source | erspan-destination ] ]
show service portmonitor session id type
id
The number of a session. The maximum number of sessions on the router is eight. Enter an integer from 1 to 31.
span
Specifies a SPAN session type.
rspan-source
Specifies an RSPAN-source session type.
rspan-destination
Specifies an RSPAN-destination session type.
erspan-source
Specifies an ERSPAN-source session type.
erspan-destination
Specifies an ERSPAN-destination session type.

Configuration mode


service {
    portmonitor {
        session id {
            type span|rspan-source|rspan-destination|erspan-source|erspan-destination
        }
    }
}

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 a port monitoring session.

Use the delete form of the command to delete a port monitoring session.

Use the show form of the command to show the identifier and type for a port monitoring session.