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 router and E320 router output for monitor and show commands is identical to output from other E-series routers, except that the E120 and E320 router output also includes information about the adapter identifier in the interface specifier (slot/adapter/port). |
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:
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.
For information, see Accessing Command Modes in JUNOSe System Basics Configuration Guide.
- 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.
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.
- host1#^C
monitor vlan interface
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
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
Use the show commands described in this section to display information about your Ethernet configuration and to monitor Ethernet interfaces.
show interfaces fastEthernet
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
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
show interfaces gigabitEthernet
show interfaces tenGigabitEthernet
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
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
show vlan subinterface
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
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
host1#show vlan subinterface summary Total VLAN interfaces: 6 subinterfaces, 3 major interfaces
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
host1#show vlan subinterface lag boston.1
Interface Status MTU Svlan Id Vlan Id Ethertype Type
------------------------- ---------- ---- -------- -------- --------- -------
lag boston.1 Up 1522 ---- 1 ---- Static
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