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.
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:
- 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, Chapter 2, Command-Line Interface.
For information, see Accessing Command Modes in JUNOSe System Basics Configuration Guide, Chapter 2, Command-Line Interface.
- 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-dayFor 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 530 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.
- Review the command output.
host1#monitor vlan interface fastEthernet 0/0.1 fastEthernet 4/0.1 display-time-of-daySecondsbetween TimeInterface polls Input bps/pps Output bps/pps (UTC)----------------------- -------- --------------- --------------- --------FastEthernet 0/0.1 0 --/-- --/-- 10:50:07FastEthernet 4/0.1 0 --/-- --/-- 10:50:07FastEthernet 0/0.1 5 120240/100 120240/100 10:50:12FastEthernet 4/0.1 5 120000/100 120000/100 10:50:12FastEthernet 0/0.1 5 120240/100 120240/100 10:50:17FastEthernet 4/0.1 5 120000/100 120000/100 10:50:17The 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.
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 530 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
- InterfaceInterface identifier for the Ethernet or LAG interface on which the VLAN subinterface resides
- Seconds between pollsNumber of seconds at which the router calculates bit rate and packet rate statistics
- Input bps/ppsNumber of bits per second (bps) and packets per second (pps) received on this interface during the specified load interval
- Output bps/ppsNumber of bits per second (bps) and packets per second (pps) transmitted on this interface during the specified load interval
- TimeTime of day, in hh:mm:ss format, at which the router calculates the bit rate and packet rate statistics for the current interval
- Example 1Displays 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.1SecondsbetweenInterface polls Input bps/pps Output bps/pps----------------------- -------- --------------- ---------------FastEthernet 0/0.1 0 --/-- --/--FastEthernet 0/0.1 5 120240/100 120240/100FastEthernet 0/0.1 5 120000/100 120000/100FastEthernet 0/0.1 5 92400/77 92400/77FastEthernet 0/0.1 5 88800/74 88800/74FastEthernet 0/0.1 5 120000/100 120000/100host1#^CExample 2Displays 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-daySecondsbetween TimeInterface polls Input bps/pps Output bps/pps (UTC)----------------------- -------- --------------- --------------- --------FastEthernet 0/0.1 0 --/-- --/-- 10:50:33FastEthernet 4/0.1 0 --/-- --/-- 10:50:33FastEthernet 0/0.1 10 120120/100 120120/100 10:50:43FastEthernet 4/0.1 10 120000/100 120000/100 10:50:43FastEthernet 0/0.1 10 120000/100 120000/100 10:50:53FastEthernet 4/0.1 10 120000/100 120000/100 10:50:53host1#^CThere is no no version. 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:
- deltaSpecifies that baselined statistics are to be shown
- briefDisplays the operational status of all configured interfaces
- Subinterface numberLocation of the subinterface that carries the VLAN or S-VLAN traffic
- Administrative statusOperational state that you configured for this interface; up or down
- VLAN IDDomain number of the VLAN
- SVLAN IDDomain number of the stacked VLAN
- EthertypeEthertype assignment for the S-VLAN subinterface, 0x8100, 0x88a8, or 0x9100; 0x9100 is the default
- InAnalysis of inbound traffic on this interface
- BytesNumber of bytes received on the VLAN or S-VLAN subinterface
- PacketsSum of all unicast, broadcast, and multicast packets received on the VLAN or S-VLAN subinterface
- MulticastNumber of multicast packets received on the VLAN or S-VLAN subinterface
- BroadcastNumber of broadcast packets received on the VLAN or S-VLAN subinterface
- ErrorsTotal number of errors in all received packets; some packets might contain more than one error
- DiscardsTotal number of discarded incoming packets
- BytesNumber of bytes sent on the VLAN or S-VLAN subinterface
- PacketsNumber of packets sent on the VLAN or S-VLAN subinterface
- MulticastNumber of multicast packets sent on the VLAN or S-VLAN subinterface
- BroadcastNumber of broadcast packets sent on the VLAN or S-VLAN subinterface
- ErrorsTotal number of errors in all transmitted packets; note that some packets might contain more than one error
- DiscardsTotal number of discarded outgoing packets
host1:vr2#show interfaces fastEthernet 8/3.1FastEthernet8/3.1 is Up, Administrative status is UpVLAN ID: 10, address 0090.5e00.0001In: Bytes 39256, Packets 612Multicast 0, Broadcast 0Errors 0, Discards 0Out: Bytes 4536220, Packets 70873Multicast 0, Broadcast 70258Errors 0, Discards 0ARP Statistics:In: ARP requests 1, ARP responses 0Errors 0, Discards 0Out: ARP requests 1, ARP responses 0Errors 0, Discards 0Example 2Displays the status of a Fast Ethernet S-VLAN subinterface host1:vr2#show interfaces fastEthernet 0/0.1FastEthernet0/0.1 is Up, Administrative status is UpSVLAN ID: 1, VLAN ID: 0, Ethertype 0x9100In: Bytes 39256, Packets 612Multicast 0, Broadcast 0Errors 0, Discards 0Out: Bytes 4536220, Packets 70873Multicast 0, Broadcast 70258Errors 0, Discards 0ARP Statistics:In: ARP requests 0, ARP responses 0Errors 0, Discards 0Out: ARP requests 0, ARP responses 0Errors 0, Discards 0show 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:
- deltaSpecifies that baselined statistics are to be shown
- briefDisplays 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 numberLocation of the subinterface that carries the VLAN or S-VLAN traffic
- Administrative statusOperational state that you configured for this interface; up or down
- VLAN IDDomain number of the VLAN
- SVLAN IDDomain number of the stacked VLAN
- EthertypeEthertype assignment for the S-VLAN subinterface, 0x8100, 0x88a8, or 0x9100; 0x9100 is the default
- InAnalysis of inbound traffic on this interface
- BytesNumber of bytes received on the VLAN or S-VLAN subinterface
- PacketsSum of all unicast, broadcast, and multicast packets received on the VLAN or S-VLAN subinterface
- MulticastNumber of multicast packets received on the VLAN or S-VLAN subinterface
- BroadcastNumber of broadcast packets received on the VLAN or S-VLAN subinterface
- ErrorsTotal number of errors in all received packets; some packets might contain more than one error
- DiscardsTotal number of discarded incoming packets
- BytesNumber of bytes sent on the VLAN or S-VLAN subinterface
- PacketsNumber of packets sent on the VLAN or S-VLAN subinterface
- MulticastNumber of multicast packets sent on the VLAN or S-VLAN subinterface
- BroadcastNumber of broadcast packets sent on the VLAN or S-VLAN subinterface
- ErrorsTotal number of errors in all transmitted packets; some packets might contain more than one error
- DiscardsTotal number of discarded outgoing packets
host1:vr2#show interfaces gigabitEthernet 2/0.1GigabitEthernet2/0.1 is Up, Administrative status is UpVLAN ID: 10, address 0090.5e00.0001In: Bytes 2357, Packets 23Multicast 0, Broadcast 0Errors 0, Discards 0Out: Bytes 4872, Packets 57Multicast 0, Broadcast 0Errors 0, Discards 0ARP Statistics:In: ARP requests 0, ARP responses 0Errors 0, Discards 0Out: ARP requests 0, ARP responses 0Errors 0, Discards 0Example 2Displays the status of a Gigabit Ethernet S-VLAN subinterface host1:vr2#show interfaces gigabitEthernet 2/0.2GigabitEthernet2/0.2 is Up, Administrative status is UpSVLAN ID: 10, VLAN ID: 100, Ethertype 0x9100In: Bytes 2357, Packets 23Multicast 0, Broadcast 0Errors 0, Discards 0Out: Bytes 4872, Packets 57Multicast 0, Broadcast 57ARP Statistics:In: ARP requests 0, ARP responses 0Errors 0, Discards 0Out: ARP requests 0, ARP responses 0Errors 0, Discards 0show 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
- InterfaceType and specifier of the VLAN subinterface
- StatusStatus of the VLAN subinterface: up, down, dormant, lowerLayerDown, absent
- MTUMaximum allowable size (in bytes) of the maximum transmission unit (MTU) for the VLAN subinterface
- Svlan IdS-VLAN ID value, if configured
- Vlan IdVLAN ID value for the VLAN subinterface
- EthertypeS-VLAN Ethertype value, if configured
- TypeType of VLAN subinterface
- StaticVLAN or S-VLAN subinterface was configured statically
- DynamicVLAN or S-VLAN subinterface was configured dynamically
- BytesNumber of bytes received on the VLAN or S-VLAN subinterface
- PacketsSum of all unicast, broadcast, and multicast packets received on the VLAN or S-VLAN subinterface
- MulticastNumber of multicast packets received on the VLAN or S-VLAN subinterface
- BroadcastNumber of broadcast packets received on the VLAN or S-VLAN subinterface
- ErrorsTotal number of errors in all received packets; some packets might contain more than one error
- DiscardsTotal number of discarded incoming packets
- BytesNumber of bytes sent on the VLAN or S-VLAN subinterface
- PacketsNumber of packets sent on the VLAN or S-VLAN subinterface
- MulticastNumber of multicast packets received on the VLAN or S-VLAN subinterface
- BroadcastNumber of broadcast packets received on the VLAN or S-VLAN subinterface
- ErrorsTotal number of errors in all transmitted packets; some packets might contain more than one error
- DiscardsTotal number of discarded outgoing packets
- ARP StatisticsAnalysis 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 requestsNumber of ARP requests
- ARP responsesNumber of ARP responses
- ErrorsTotal number of errors in all ARP packets
- DiscardsTotal number of discarded ARP packets
- Total VLAN interfacesTotal 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 1Displays full status and configuration information for all VLAN subinterfaces configured on the router
host1#show vlan subinterfaceInterface Status MTU Svlan Id Vlan Id Ethertype Type------------------------- ---------- ---- -------- -------- --------- -------ATM 3/0.1.2 Up 1522 ---- 11 ---- StaticATM 3/0.1.3 Up 1522 ---- 12 ---- StaticATM 3/1.1.1 Up 1522 ---- 13 ---- StaticATM 3/1.1.2 Up 1522 ---- 14 ---- StaticATM 3/2.1.1 Down 1526 4 255 0x9100 StaticFastEthernet 4/5.1 Up 1522 ---- 1 ---- Dynamic6 vlan subinterfaces foundhost1#show vlan subinterface fastEthernet 0/0.1Interface Status MTU Svlan Id Vlan Id Ethertype Type------------------------- ---------- ---- -------- -------- --------- -------FastEthernet 0/0.1 Up 1526 1 0 0x9100 StaticIn: Bytes 39256, Packets 612Multicast 0, Broadcast 0Errors 0, Discards 0Out: Bytes 4538652, Packets 70911Multicast 0, Broadcast 70296Errors 0, Discards 0ARP Statistics:In: ARP requests 0, ARP responses 0Errors 0, Discards 0Out: ARP requests 0, ARP responses 0Errors 0, Discards 0
- Example 3Displays only brief summary information for all VLAN subinterfaces configured on the router
host1#show vlan subinterface summaryTotal VLAN interfaces: 6 subinterfaces, 3 major interfacesExample 4Displays full status and configuration information for all VLAN subinterfaces configured with a unique MAC address host1#show vlan subinterface mac-addressInterface Svlan Id Vlan Id MAC Address------------------------- -------- -------- --------------FastEthernet 4/0.25 ---- 25 0090.dfad.2abdFastEthernet 4/0.10050 1 50 0090.adad.0abd2 vlan subinterfaces foundExample 5Displays full status and configuration information for a VLAN subinterface on a LAG bundle host1#show vlan subinterface lag boston.1Interface Status MTU Svlan Id Vlan Id Ethertype Type------------------------- ---------- ---- -------- -------- --------- -------lag boston.1 Up 1522 ---- 1 ---- Statichost1#show vlan subinterface svlan 100 53Interface Status MTU Svlan Id Vlan Id Ethertype Type------------------------- ---------- ---- -------- -------- --------- -------FastEthernet 0/0.1 Up 1526 100 53 0x9100 StaticFastEthernet 4/6.1 Up 1526 100 53 0x9100 Dynamic2 vlan subinterfaces found