Vyatta Network OS Documentation

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

monitor interface

[Please suggest content for the Short Description, to summarize and introduce this topic. What does the command do, and what does this topic show?]

This command has a similar look and feel to the tcpdump and tshark Command Line Interface (CLI) commands.

Example: monitor interface

$OS_PROMPT$ date
Mon Sep 9 09:08:51 CDT 2019
$OS_PROMPT$ monitor interfaces dataplane dp0p1 traffic filter 'host 10.10.10.1 and icmp'
Capturing on 'dp0bond1'
    1    0.000000 10.10.10.1 192.168.10.1 ICMP 98 Echo (ping) request id=0x2b36, seq=38/9728, ttl=58
    2    0.000570 192.168.10.1 10.10.10.1 ICMP 98 Echo (ping) reply id=0x2b36, seq=38/9728, ttl=64 (request in 1)
    3    1.001309 10.10.10.1 192.168.10.1 ICMP 98 Echo (ping) request id=0x2b36, seq=39/9984, ttl=58
    4    1.002944 192.168.10.1 10.10.10.1 ICMP 98 Echo (ping) reply id=0x2b36, seq=39/9984, ttl=64 (request in 3)
    5    2.001763 10.10.10.1 192.168.10.1 ICMP 98 Echo (ping) request id=0x2b36, seq=40/10240, ttl=58
    6    2.003083 192.168.10.1 10.10.10.1 ICMP 98 Echo (ping) reply id=0x2b36, seq=40/10240, ttl=64 (request in 5)
    7    3.002064 10.10.10.1 192.168.10.1 ICMP 98 Echo (ping) request id=0x2b36, seq=41/10496, ttl=58
    8    3.003225 192.168.10.1 10.10.10.1 ICMP 98 Echo (ping) reply id=0x2b36, seq=41/10496, ttl=64 (request in 7)
    9    4.003806 10.10.10.1 192.168.10.1 ICMP 98 Echo (ping) request id=0x2b36, seq=42/10752, ttl=58
^C    10    4.004304 192.168.10.1 10.10.10.1 ICMP 98 Echo (ping) reply id=0x2b36, seq=42/10752, ttl=64 (request in 9)
10 packets captured

The structure of rows in the output is like this:

<packet number> <relative time stamp> <addresses> <packet summary>
<packet number>
The number of the packet that was captured, relative to when the capture was started. In this example, a total of 10 packets were captured, resulting in the sequence 1 to 10.
<relative time stamp>

The time the packet was captured, relative to when packet 1 was captured.

In this example, packet 2 was captured 0.000570 seconds after packet 1 was captured. However, we do not know how long it was between the time that the date command was executed and the time that packet 1 was captured.

As Vyatta uses a Bourne Again Shell (BASH) CLI, one solution to this might be to execute both commands in sequence using the semi-colon command delimiter. For example, $OS_PROMPT$ date; monitor interface ...

<addresses>
The IPv4 or IPv6 source and destination addresses, in that order. In this example, packet 2 has source address 192.168.10.1 and destination address 10.10.10.1.
<packet summary>
A protocol-specific summary of the packet. In this example, the summary for packet 2 is ICMP 98 Echo (ping) reply id=0x2b36, seq=38/9728, ttl=64 (request in 1).
Note: ^C indicates that the packet capture was terminated by the user via the Ctrl+C keyboard shortcut.
Note: For more about this command see Ciena Vyatta Network OS LAN Interfaces Configuration Guide.