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.

service portmonitor session <id> source <interface> direction <direction>

Specifies the direction of a port monitoring for a physical source interface of a SPAN, or an RSPAN-source session.

set service portmonitor session id source { interface-name | interface-name.vid } direction { both | rx | tx }
delete service portmonitor session id source { interface-name | interface-name.vid } direction
show service portmonitor session id source { interface-name | interface-name.vid } direction
id
The number of a port monitoring session.
interface-name
The name of a data plane interface. Following are the supported formats of the interface name:
  • dpxpypz—The name of a data plane interface, where

    • dpx specifies the data plane identifier (ID). Currently, only dp0 is supported.

    • py specifies a physical or virtual PCI slot index

    • pz specifies a port index (for example, p1).

    For example, dp0p1p2, dp0p160p1, and dp0p192p1.

  • dpxemy—The name of a data plane interface on a LAN-on-motherboard (LOM) device that does not have a PCI slot, where emy specifies an embedded network interface number (typically, a small number). For example, dp0em3.

  • dpxsy—The name of a data plane interface on a device that is installed on a virtual PCI slot, where xsy specifies an embedded network interface number (typically, a small number). For example, dp0s2. Currently, this format applies only when using the KVM platform.

  • dpxPnpypz—The name of a data plane interface on a device that is installed on a secondary PCI bus, where Pn specifies the bus number. You can use this format to name data plane interfaces on large physical devices with multiple PCI buses. For these devices, it is possible to have network interface cards installed on different buses with these cards having the same slot ID. The value of n must be an integer greater than 0. For example, dp0P1p162p1 and dp0P2p162p1.

interface-name.vid
Specifies the data plane interface and VLAN number.
both
Specifies that the interface mirrors and monitors the session in both ingress and egress directions.
rx
Specifies that the interface mirrors packets and monitors the session in the ingress direction.
tx
Specifies that the interface mirrors packets and monitors the session in the egress direction.

The default directions are both ingress and egress.

Configuration mode


service {
    portmonitor {
        session id {
            source interface-name|interface-name.vid{
                direction both | rx | tx
            } 
        }
    }
}

You cannot configure this command for an RSPAN-destination session.

Use the set form of the command to specify the direction that the physical source interface monitors a port monitoring session.

Use the delete form of the command to remove the direction that the physical source interface monitors a port monitoring session.

Use the show form of the command to show the direction that the physical source interface monitors a port monitoring session.