[Contents] [Prev] [Next] [Index] [Report an Error]

# Monitoring VLAN and S-VLAN Subinterfaces

This section explains how to display bit rate and packet rate statistics for VLAN subinterfaces and use the show commands to display the physical characteristics and the configured settings for VLAN and S-VLAN subinterfaces.

| Note: The E120 and E320 routers output for monitor and show commands is identical to output from other E Series routers, except that the E120 and E320 routers output also includes information about the adapter identifier in the interface specifier (slot/adapter/port).

## Displaying Interface Rate Statistics for VLAN Subinterfaces

You can use the monitor vlan interface command to display bit rate and packet rate statistics over a specified time interval for one or more VLAN subinterfaces configured on the router.

To display interface rate statistics for VLAN subinterfaces:

1. Log in to the router by using a local console session or a virtual terminal (vty) session (such as a Telnet session).

   While you are using the monitor vlan interface command, you must keep the console or terminal session open and you cannot issue any other commands at the session during this time.

   For information about logging in to the router, see Accessing the CLI in JUNOSe System Basics Configuration Guide.

2. Access User Exec mode or Privileged Exec mode.

   For information, see Accessing Command Modes in JUNOSe System Basics Configuration Guide.

3. Specify the interface identifier for each VLAN subinterface that you want to monitor.
   `
   host1#monitor vlan interface fastEthernet 0/0.1 fastEthernet 4/0.1 display-time-of-day
   `

   For information about specifying interface identifiers for VLAN subinterfaces configured over Ethernet interfaces, see VLAN Overview. For information about specifying interface identifiers for VLAN subinterfaces configured over LAG bundles, see Configuring a VLAN Subinterface for a LAG Bundle.

   By default, the router uses a 5-second time interval between polls to calculate bit rates and packet rates for each specified VLAN subinterface. Optionally, you can use the load-interval keyword to specify a nondefault time interval in the range 5–30 seconds.

   You can also include the optional display-time-of-day keyword to show the time of day at which the router gathers statistics for each interval. Displaying the time of day enables you to monitor when a particular VLAN subinterface is underutilized or overutilized.

4. Review the command output.

       host1#monitor vlan interface fastEthernet 0/0.1 fastEthernet 4/0.1
       display-time-of-day
                               Seconds
                               between                                     Time
              Interface         polls    Input bps/pps   Output bps/pps   (UTC)
       ----------------------- -------- --------------- --------------- --------
       FastEthernet 0/0.1             0           --/--           --/-- 10:50:07
       FastEthernet 4/0.1             0           --/--           --/-- 10:50:07
       FastEthernet 0/0.1             5      120240/100      120240/100 10:50:12
       FastEthernet 4/0.1             5      120000/100      120000/100 10:50:12
       FastEthernet 0/0.1             5      120240/100      120240/100 10:50:17
       FastEthernet 4/0.1             5      120000/100      120000/100 10:50:17

   The router polls each VLAN subinterface at the specified load interval (the default 5-second interval in this example) to calculate and display bit rate and packet rate statistics. The first line of output for each interface always displays 0 (zero) for the number of seconds between polls, and dashes (--/--) in the Input bps/pps and Output bps/pps columns. These values indicate that the router initially takes a baseline for each interface against which to measure subsequent statistics. The router continues to display subsequent lines of output for each interface at the specified load interval until you press Ctrl+c to stop the command.

   For a description of each field in the monitor vlan interface command output, see monitor vlan interface.

5. When you are finished, press Ctrl+c to stop the monitor vlan interface command.
   `
   host1#^C
   `

monitor vlan interface

- Use to display bit rate and packet rate statistics over a specified time interval for one or more VLAN subinterfaces.
- You must use the monitor vlan interface command in a dedicated console or terminal session for the duration of the monitoring session.
- Specify the interface identifier for each VLAN subinterface that you want to monitor.
- To specify a nondefault time interval in the range 5–30 seconds at which the router calculates bit rate and packet rate statistics, use the optional load-interval keyword. The default time interval is 5 seconds.
- To display the time at which the router calculates bit rate and packet rate statistics for the current interval, use the optional display-time-of-day keyword.
- To stop the monitor vlan interface command, press Ctrl+c.
- Field descriptions
  - Interface—Interface identifier for the Ethernet or LAG interface on which the VLAN subinterface resides
  - Seconds between polls—Number of seconds at which the router calculates bit rate and packet rate statistics
  - Input bps/pps—Number of bits per second (bps) and packets per second (pps) received on this interface during the specified load interval
  - Output bps/pps—Number of bits per second (bps) and packets per second (pps) transmitted on this interface during the specified load interval
  - Time—Time of day, in hh:mm:ss format, at which the router calculates the bit rate and packet rate statistics for the current interval
- Example 1—Displays bit rate and packet rate statistics over the default (5-second) load interval for a single VLAN subinterface

      host1#monitor vlan interface fastEthernet 0/0.1
                              Seconds
                              between
             Interface         polls    Input bps/pps   Output bps/pps
      ----------------------- -------- --------------- ---------------
      FastEthernet 0/0.1             0           --/--           --/--
      FastEthernet 0/0.1             5      120240/100      120240/100
      FastEthernet 0/0.1             5      120000/100      120000/100
      FastEthernet 0/0.1             5        92400/77        92400/77
      FastEthernet 0/0.1             5        88800/74        88800/74
      FastEthernet 0/0.1             5      120000/100      120000/100
      host1#^C

- Example 2—Displays bit rate and packet rate statistics over a 10-second load interval for two VLAN subinterfaces, with the time of day that the statistics were calculated

      host1#monitor vlan interface fastEthernet 0/0.1 fastEthernet 4/0.1
      load-interval 10 display-time-of-day
                              Seconds
                              between                                     Time
             Interface         polls    Input bps/pps   Output bps/pps   (UTC)
      ----------------------- -------- --------------- --------------- --------
      FastEthernet 0/0.1             0           --/--           --/-- 10:50:33
      FastEthernet 4/0.1             0           --/--           --/-- 10:50:33
      FastEthernet 0/0.1            10      120120/100      120120/100 10:50:43
      FastEthernet 4/0.1            10      120000/100      120000/100 10:50:43
      FastEthernet 0/0.1            10      120000/100      120000/100 10:50:53
      FastEthernet 4/0.1            10      120000/100      120000/100 10:50:53
      host1#^C

- There is no no version.
- See monitor vlan interface.

## Using Ethernet show Commands

Use the show commands described in this section to display information about your Ethernet configuration and to monitor Ethernet interfaces.

show interfaces fastEthernet

- Use to display the status of Fast Ethernet interfaces, VLAN subinterfaces, or S-VLAN subinterfaces.
- You can specify the following keywords:
  - delta—Specifies that baselined statistics are to be shown
  - brief—Displays the operational status of all configured interfaces
- Field descriptions when you display the status of a Fast Ethernet VLAN or S-VLAN subinterface
  - Subinterface number—Location of the subinterface that carries the VLAN or S-VLAN traffic
  - Administrative status—Operational state that you configured for this interface; up or down
  - VLAN ID—Domain number of the VLAN
  - SVLAN ID—Domain number of the stacked VLAN
  - Ethertype—Ethertype assignment for the S-VLAN subinterface, 0x8100, 0x88a8, or 0x9100; 0x9100 is the default
  - In—Analysis of inbound traffic on this interface
    - Bytes—Number of bytes received on the VLAN or S-VLAN subinterface
    - Packets—Sum of all unicast, broadcast, and multicast packets received on the VLAN or S-VLAN subinterface
    - Multicast—Number of multicast packets received on the VLAN or S-VLAN subinterface
    - Broadcast—Number of broadcast packets received on the VLAN or S-VLAN subinterface
    - Errors—Total number of errors in all received packets; some packets might contain more than one error
    - Discards—Total number of discarded incoming packets
  - Out—Analysis of outbound traffic on this interface
    - Bytes—Number of bytes sent on the VLAN or S-VLAN subinterface
    - Packets—Number of packets sent on the VLAN or S-VLAN subinterface
    - Multicast—Number of multicast packets sent on the VLAN or S-VLAN subinterface
    - Broadcast—Number of broadcast packets sent on the VLAN or S-VLAN subinterface
    - Errors—Total number of errors in all transmitted packets; note that some packets might contain more than one error
    - Discards—Total number of discarded outgoing packets
- Example 1—Displays the status of a Fast Ethernet VLAN subinterface

      host1:vr2#show interfaces fastEthernet 8/3.1
      FastEthernet8/3.1 is Up, Administrative status is Up
        VLAN ID: 10, address 0090.5e00.0001

      In: Bytes 39256, Packets 612
         Multicast 0, Broadcast 0
         Errors 0, Discards 0
      Out: Bytes 4536220, Packets 70873
         Multicast 0, Broadcast 70258
         Errors 0, Discards 0
      ARP Statistics:
        In: ARP requests 1, ARP responses 0
         Errors 0, Discards 0
        Out: ARP requests 1, ARP responses 0
         Errors 0, Discards 0

- Example 2—Displays the status of a Fast Ethernet S-VLAN subinterface

      host1:vr2#show interfaces fastEthernet 0/0.1
      FastEthernet0/0.1 is Up, Administrative status is Up
        SVLAN ID: 1, VLAN ID: 0, Ethertype 0x9100

        In: Bytes 39256, Packets 612
         Multicast 0, Broadcast 0
         Errors 0, Discards 0
        Out: Bytes 4536220, Packets 70873
         Multicast 0, Broadcast 70258
         Errors 0, Discards 0
      ARP Statistics:
        In: ARP requests 0, ARP responses 0
         Errors 0, Discards 0
        Out: ARP requests 0, ARP responses 0
         Errors 0, Discards 0

  `
  `
- See show interfaces.

show interfaces gigabitEthernet

show interfaces tenGigabitEthernet

- Use to display the status of Gigabit Ethernet interfaces, 10-Gigabit Ethernet interfaces, VLAN subinterfaces, or S-VLAN subinterfaces.
- You can specify the following keywords:
  - delta—Specifies that baselined statistics are to be shown
  - brief—Displays the operational status of all configured interfaces
- Field descriptions when you display the status of a Gigabit Ethernet or 10-Gigabit Ethernet VLAN or S-VLAN subinterface
  - Subinterface number—Location of the subinterface that carries the VLAN or S-VLAN traffic
  - Administrative status—Operational state that you configured for this interface; up or down
  - VLAN ID—Domain number of the VLAN
  - SVLAN ID—Domain number of the stacked VLAN
  - Ethertype—Ethertype assignment for the S-VLAN subinterface, 0x8100, 0x88a8, or 0x9100; 0x9100 is the default
  - In—Analysis of inbound traffic on this interface
    - Bytes—Number of bytes received on the VLAN or S-VLAN subinterface
    - Packets—Sum of all unicast, broadcast, and multicast packets received on the VLAN or S-VLAN subinterface
    - Multicast—Number of multicast packets received on the VLAN or S-VLAN subinterface
    - Broadcast—Number of broadcast packets received on the VLAN or S-VLAN subinterface
    - Errors—Total number of errors in all received packets; some packets might contain more than one error
    - Discards—Total number of discarded incoming packets
  - Out—Analysis of outbound traffic on this interface
    - Bytes—Number of bytes sent on the VLAN or S-VLAN subinterface
    - Packets—Number of packets sent on the VLAN or S-VLAN subinterface
    - Multicast—Number of multicast packets sent on the VLAN or S-VLAN subinterface
    - Broadcast—Number of broadcast packets sent on the VLAN or S-VLAN subinterface
    - Errors—Total number of errors in all transmitted packets; some packets might contain more than one error
    - Discards—Total number of discarded outgoing packets
- Example 1—Displays the status of a Gigabit Ethernet VLAN subinterface

      host1:vr2#show interfaces gigabitEthernet 2/0.1
      GigabitEthernet2/0.1 is Up, Administrative status is Up
        VLAN ID: 10, address 0090.5e00.0001

        In: Bytes 2357, Packets 23
         Multicast 0, Broadcast 0
         Errors 0, Discards 0
        Out: Bytes 4872, Packets 57
         Multicast 0, Broadcast 0
         Errors 0, Discards 0
      ARP Statistics:
        In: ARP requests 0, ARP responses 0
         Errors 0, Discards 0
        Out: ARP requests 0, ARP responses 0
         Errors 0, Discards 0

- Example 2—Displays the status of a Gigabit Ethernet S-VLAN subinterface

      host1:vr2#show interfaces gigabitEthernet 2/0.2
      GigabitEthernet2/0.2 is Up, Administrative status is Up
        SVLAN ID: 10, VLAN ID: 100, Ethertype 0x9100

        In: Bytes 2357, Packets 23
         Multicast 0, Broadcast 0
         Errors 0, Discards 0
        Out: Bytes 4872, Packets 57
         Multicast 0, Broadcast 57
      ARP Statistics:
        In: ARP requests 0, ARP responses 0
         Errors 0, Discards 0
        Out: ARP requests 0, ARP responses 0
         Errors 0, Discards 0

- See show interfaces.

show vlan subinterface

- Use to display configuration and status information for a specified VLAN subinterface or for all VLAN subinterfaces configured on the router.
- Use the summary keyword to display only the counts of all VLAN subinterfaces and VLAN major interfaces configured on the router.
- Use the mac-address keyword to display information about the VLAN subinterfaces that were configured with unique MAC addresses.
- Use the vlan or svlan keywords to display information about specific S-VLAN IDs or VLAN IDs.
- Field descriptions
  - Interface—Type and specifier of the VLAN subinterface
  - Status—Status of the VLAN subinterface: up, down, dormant, lowerLayerDown, absent
  - MTU—Maximum allowable size (in bytes) of the maximum transmission unit (MTU) for the VLAN subinterface
  - Svlan Id—S-VLAN ID value, if configured
  - Vlan Id—VLAN ID value for the VLAN subinterface
  - Ethertype—S-VLAN Ethertype value, if configured
  - Type—Type of VLAN subinterface
    - Static—VLAN or S-VLAN subinterface was configured statically
    - Dynamic—VLAN or S-VLAN subinterface was configured dynamically
  - In—Analysis of inbound traffic on this interface
    - Bytes—Number of bytes received on the VLAN or S-VLAN subinterface
    - Packets—Sum of all unicast, broadcast, and multicast packets received on the VLAN or S-VLAN subinterface
    - Multicast—Number of multicast packets received on the VLAN or S-VLAN subinterface
    - Broadcast—Number of broadcast packets received on the VLAN or S-VLAN subinterface
    - Errors—Total number of errors in all received packets; some packets might contain more than one error
    - Discards—Total number of discarded incoming packets
  - Out—Analysis of outbound traffic on this interface
    - Bytes—Number of bytes sent on the VLAN or S-VLAN subinterface
    - Packets—Number of packets sent on the VLAN or S-VLAN subinterface
    - Multicast—Number of multicast packets received on the VLAN or S-VLAN subinterface
    - Broadcast—Number of broadcast packets received on the VLAN or S-VLAN subinterface
    - Errors—Total number of errors in all transmitted packets; some packets might contain more than one error
    - Discards—Total number of discarded outgoing packets
  - ARP Statistics—Analysis of ARP traffic on this interface; In fields are for traffic received on the interface and Out fields are for traffic sent on the interface
    - ARP requests—Number of ARP requests
    - ARP responses—Number of ARP responses
    - Errors—Total number of errors in all ARP packets
    - Discards—Total number of discarded ARP packets
  - Total VLAN interfaces—Total numbers of VLAN subinterfaces and VLAN major interfaces configured on the router; this is the only field that appears when you specify the summary keyword
- Example 1—Displays full status and configuration information for all VLAN subinterfaces configured on the router

      host1#show vlan subinterface
          Interface      Status  MTU  Svlan Id Vlan Id Ethertype Type
      ----------------- -------- ---- -------- ------ --------- -------
      ATM 3/0.1.2         Up     1522 ----     11      ----      Static
      ATM 3/0.1.3         Up     1522 ----     12      ----      Static
      ATM 3/1.1.1         Up     1522 ----     13      ----      Static
      ATM 3/1.1.2         Up     1522 ----     14      ----      Static
      ATM 3/2.1.1         Down   1526 4        255     0x9100    Static
      FastEthernet 4/5.1  Up      1522 ----     1       ----      Dynamic
      6 vlan subinterfaces found

- Example 2—Displays full status and configuration information for the specified VLAN subinterface

      host1#show vlan subinterface fastEthernet 0/0.1
          Interface       Status  MTU  Svlan Id Vlan Id Ethertype Type
      ------------------- ------ ---- -------- ------ --------- -------
      FastEthernet 0/0.1    Up    1526    1      0    0x9100    Static

      In: Bytes 39256, Packets 612
         Multicast 0, Broadcast 0
         Errors 0, Discards 0
        Out: Bytes 4538652, Packets 70911
         Multicast 0, Broadcast 70296
         Errors 0, Discards 0
      ARP Statistics:
        In: ARP requests 0, ARP responses 0
         Errors 0, Discards 0
        Out: ARP requests 0, ARP responses 0
         Errors 0, Discards 0

- Example 3—Displays only brief summary information for all VLAN subinterfaces configured on the router

      host1#show vlan subinterface summary
      Total VLAN interfaces: 6 subinterfaces, 3 major interfaces

- Example 4—Displays full status and configuration information for all VLAN subinterfaces configured with a unique MAC address

      host1#show vlan subinterface mac-address
           Interface          Svlan Id Vlan Id   MAC Address
      ----------------------  -------- --------  --------------
      FastEthernet 4/0.25       ----     25    0090.dfad.2abd
      FastEthernet 4/0.10050     1       50    0090.adad.0abd
      2 vlan subinterfaces found

- Example 5—Displays full status and configuration information for a VLAN subinterface on a LAG bundle

      host1#show vlan subinterface lag boston.1
          Interface     Status  MTU  Svlan Id Vlan Id Ethertype  Type
      ---------------- -------- ---- -------- -------- --------- ------
      lag boston.1       Up     1522 ----     1        ----      Static

- Example 6—Displays full status and configuration information for the specified S-VLAN ID

      host1#show vlan subinterface svlan 100 53
            Interface         Status  MTU  Svlan Id Vlan Id Ethertype  Type
      ------------------------ ------ ---- -------- -------- --------- -------
      FastEthernet 0/0.1        Up    1526 100      53      0x9100    Static
      FastEthernet 4/6.1        Up    1526 100      53      0x9100    Dynamic
      2 vlan subinterfaces found

- See show vlan subinterface.

[Contents] [Prev] [Next] [Index] [Report an Error]