Navigating the Cisco IOS operating system
Notes from Neil Anderson's CCNA Course
IOS Command Hierarchy
ios is not case sensitive
levels
hostname>: User exec mode- not that often used: limited set of commands that can be entered here
?shows all the commands that are available on this levelEnterscrolls through line by lineSpacescrolls through page by page- to define scrollback options, go to settings (if you are using Putty)
enable(or simplyen): enter privileged exec mode
hostname#: Privileged exec mode (enable)disable(or simplydisa): to drop back down to user exec mode- type
di?to see all the commands starting with di
- type
show(or simplysh): get information about the device (in point in time;debuggives output that will be updated in realtime)sh ?: display all possible keywords for this command- hit
Ctrl-Cto break out of a command - hit
Ctrl-Ato get to the start of the line - hit
up arrowto bring back previous commands
- hit
sh aaa ?: displays all available options aftersh aaa- use
tab keyfor command completion
configure terminal(or simplyconf t): move to global configuration mode
hostname(config)#: Global configuration mode (configure terminal)doin front of command likeshowto enable it (unless your in privileged exec mode)interfacefollowed by the respective interface: move to interface configuration mode
hostname(config-if)#: Interface configuration mode (interface x)
most common commands on router or switch
show ip interface brief: shows all the interfaces on the device with their status and ip addressesshow running config: shows entire running configuration on the devicesh run int fast0/0: show config for this particular interfacesh run | begin hostname: show config starting from where hostname is mentionedsh run | ?: to see all the available options- atributes behind piped commands are case sensitive since they are regular expressions
navigating the levels
enable: move to privileged exec modeconfigure terminal: move to global configuration modeinterfacefollowed by the respective interface: move to interface configuration modeexitdrops back down a levelenddrops back to privileged exec mode from any level