Είναι μια εντολή που χρησιμοποιείται συχνά (με διάφορα ορίσματα) καθώς παρέχει πολύ χρήσιμες πληροφορίες. Συγκεκριμένα, με την εντολή show version βλέπουμε πληροφορίες για τον δρομολογητή που έχουμε επιλέξει, όπως είναι η μνήμη RAM και Flash που διαθέτει, οι διεπαφές που έχει, η εγκατεστημένη έκδοση του λειτουργικού συστήματος IOS που τρέχει κ.α.
Router#show version
CISCO IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.CISCO.com/techsupport
Copyright (c) 1986-2007 by CISCO Systems, Inc.
Compiled Wed 18-Jul-07 04:52 by pt_team
ROM: System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)
System returned to ROM by power-on System image file is “flash:c1841-advipservicesk9-mz.124-15.T1.bin”
This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of CISCO cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing CISCO cryptographic products may be found at: http://www.CISCO.com/wwl/export/crypto/tool/stqrg.html. If you require further assistance please contact us by sending email to export@CISCO.com.
CISCO 1841 (revision 5.0) with 114688K/16384K bytes of memory.
Processor board ID FTX0947Z18E
M860 processor: part number 0, mask 49
1 Ethernet/IEEE 802.3 interface(s)
2 FastEthernet/IEEE 802.3 interface(s)
2 Low-speed serial(sync/async) network interface(s)
191K bytes of NVRAM.
63488K bytes of ATA CompactFlash (Read/Write)
Configuration register is 0x2102
Με την show interfaces εμφανίζονται λεπτομερή στοιχεία σχετικά με τις διεπαφές της συσκευής, αν είναι ενεργές ή όχι, οι IP διευθύνσεις τους κλπ. Μάλιστα, αν μας ενδιαφέρει να προβάλουμε τις πληροφορίες μιας μόνο συγκεκριμένης διεπαφής, μπορούμε να το κάνουμε πληκτρολογώντας show interfaces και στη συνέχεια το όνομα της διεπαφής. Για παράδειγμα για την FastEthernet0/1:
Router#show interfaces FastEthernet0/1
FastEthernet0/1 is administratively down, line protocol is down (disabled)
Hardware is Lance, address is 0030.f27d.5502 (bia 0030.f27d.5502)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Full-duplex, 100Mb/s, media type is RJ45
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of “show interface” counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
κλπ.
Μπορούμε να χρησιμοποιήσουμε και την show ip interface brief για μια γρήγορη ματιά στις διεπαφές του δρομολογητή. Συγκεκριμένα για τον CISCO 2811 στον οποίο έχουμε προσθέσει επιπλέον διεπαφές μέσω των διαθέσιμων modules θα έχουμε:
Router#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/1/0 unassigned YES unset administratively down down
Serial0/1/1 unassigned YES unset administratively down down
Ethernet0/3/0 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
Μια ακόμη εφαρμογή της εντολής show είναι η προβολή των περιεχομένων των startup-configuration και running-configuration αρχείων. Η εντολή show startup–config επιδεικνύει τις τελευταίες αποθηκευμένες ρυθμίσεις ενώ η show running–config τις τρέχουσες ρυθμίσεις (IP διεύθυνση, subnet mask, default gateway κλπ.). Αν λοιπόν πραγματοποιήσουμε κάποιες αλλαγές (hostname: CISCO_Router_1, banner: WELCOME TO CISCO IOS, secret password: CISCO), αποθηκεύσουμε και δώσουμε την εντολή show startup-config θα έχουμε:
CISCO_Router_1#show startup-config
Using 864 bytes
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
hostname CISCO_Router_1
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
no ip cef
no ipv6 cef
spanning-tree mode pvst
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
interface Ethernet0/0/0
no ip address
duplex auto
speed auto
shutdown
interface Serial0/1/0
no ip address
clock rate 2000000
shutdown
interface Serial0/1/1
no ip address
clock rate 2000000
shutdown
interface Vlan1
no ip address
shutdown
ip classless
ip flow-export version 9
banner motd ^C
WELCOME TO CISCO IOS
^C
line con 0
line aux 0
line vty 0 4
login
end
Αν σε αυτό το σημείο εκτελέσουμε την εντολή show running-config, το αποτέλεσμα στην οθόνη μας θα είναι το ίδιο με πριν. Δοκιμάζουμε να αλλάξουμε το hostname σε CISCO_Router_2, χωρίς να αποθηκεύσουμε τις αλλαγές, και εκτελούμε ξανά την εντολή show running-config. Αυτή τη φορά βλέπουμε πως το περιεχόμενο των δύο configuration αρχείων δεν είναι πια ίδιο, έστω και κατά μια μόνο γραμμή (hostname CISCO_Router_2).
CISCO_Router_2#show running-config
Building configuration…
Current configuration : 864 bytes
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
hostname CISCO_Router_2
κλπ.
Εκτός από τις show version, show interfaces, show running-config, show startup-config, υπάρχουν και άλλες show εντολές, όπως η show controllers (με πληροφορίες για το hardware), η show users (σχετικά με τους χρήστες που είναι συνδεδεμένοι στον δρομολογητή), η show history (παρέχει ιστορικό των εντολών που χρησιμοποιήθηκαν), η show flash (με πληροφορίες για την flash memory), η show ip route (για την εμφάνιση του πίνακα δρομολόγησης), αλλά και η show clock που δείχνει την ώρα που έχει αποθηκευμένη ο δρομολογητής:
Router>en
Router#show clock
*0:0:47.171 UTC Mon Mar 1 1993
Για τη ρύθμιση της ώρας χρησιμοποιούμε την εντολή clock set ως εξής:
Router#clock set 17:17:20 5 April 2019
Router#show clock
17:17:26.182 UTC Fri Apr 5 2019
Router#