Juniper provides us a way to see the statistics on the interface.
There are 4 main commands that you can use for this.
Let’s see the 1st one:
root@R1> show interfaces terse
Interface Admin Link Proto Local Remote
ge-0/0/0 up up
lc-0/0/0 up up
lc-0/0/0.32769 up up vpls
pfe-0/0/0 up up
pfe-0/0/0.16383 up up inet
inet6
pfh-0/0/0 up up
pfh-0/0/0.16383 up up inet
ge-0/0/1 up up
ge-0/0/2 up up
ge-0/0/3 up up
ge-0/0/4 up up
This command I like it a lot. It shows me in a very simple way if the interface is up and running, and also it shows the IP addresses on the interfaces. Those are the main things that you as a network engineer may require most of the time to know on the interfaces. If you come from Cisco world, this command is similar to “show ip interface brief” in Cisco.
If you want to have more information on the interfaces, you can use the following command:
root@R1> show interfaces brief
Physical interface: ge-0/0/0, Enabled, Physical link is Up
Link-level type: Ethernet, MTU: 1514, MRU: 1522, Speed: 1000mbps,
Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled
Device flags : Present Running
Interface flags: SNMP-Traps Internal: 0x4000
Link flags : None
Physical interface: lc-0/0/0, Enabled, Physical link is Up
Type: Unspecified, Link-level type: Unspecified, MTU: 0,
Clocking: Unspecified, Speed: 800mbps
Device flags : Present Running
Logical interface lc-0/0/0.32769
Flags: Up Encapsulation: ENET2
vpls
This command provides more information, specially about the physical and logical interfaces.
If you still want to have more information on the interfaces, you can use the following command:
root@R1> show interfaces detail
Physical interface: ge-0/0/0, Enabled, Physical link is Up
Interface index: 137, SNMP ifIndex: 513, Generation: 140
Link-level type: Ethernet, MTU: 1514, MRU: 1522, Speed: 1000mbps,
BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,
Source filtering: Disabled, Flow control: Enabled
Pad to minimum frame size: Disabled
Device flags : Present Running
Interface flags: SNMP-Traps Internal: 0x4000
Link flags : None
CoS queues : 8 supported, 8 maximum usable queues
Hold-times : Up 0 ms, Down 0 ms
Current address: 00:05:86:71:a0:00, Hardware address: 00:05:86:71:a0:00
Last flapped : 2024-02-08 15:50:50 CET (02:49:57 ago)
Statistics last cleared: Never
Traffic statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
—(more)—
This command provides everything that you have seen in the previous 2 commands in addition of more information.
Finally, the last command that you can use to get information about the interfaces is:
root@R1> show interfaces extensive
Physical interface: ge-0/0/0, Enabled, Physical link is Up
Interface index: 137, SNMP ifIndex: 513, Generation: 140
Link-level type: Ethernet, MTU: 1514, MRU: 1522, Speed: 1000mbps,
BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,
Source filtering: Disabled, Flow control: Enabled
Pad to minimum frame size: Disabled
Device flags : Present Running
Interface flags: SNMP-Traps Internal: 0x4000
Link flags : None
CoS queues : 8 supported, 8 maximum usable queues
Hold-times : Up 0 ms, Down 0 ms
Current address: 00:05:86:71:a0:00, Hardware address: 00:05:86:71:a0:00
Last flapped : 2024-02-08 15:50:50 CET (02:51:14 ago)
Statistics last cleared: Never
Traffic statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
—(more)—
This command will show everything that can be shown on the interface level.
This is all what I wanted to show you in this lesson, see you in the upcoming one 😊
0 Comments