Skip to content

Instantly share code, notes, and snippets.

@bennetthardwick
Last active March 5, 2018 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennetthardwick/f1b5ce3688aacedc75904b5ef75ff421 to your computer and use it in GitHub Desktop.
Save bennetthardwick/f1b5ce3688aacedc75904b5ef75ff421 to your computer and use it in GitHub Desktop.
A cheatsheet of commands for Cisco Routers. Tag: CAB440

Cisco Router Command Cheatsheet

Getting Started!

After making a phsyical connection to the Router, connect to it through a serial connection. Once connected, press ENTER:

-- System Configuration Dialog --
Press RETURN to get started!
Router>

You are currently in User EXEC mode.

eable privileged EXEC mode

In order to run useful commands, you need to get enable priviledged mode.

Router> enable
Router#

Note: When you are in Priviledged EXEC mode, the host name of the device will be suffixed with #

enter global configuration mode

From priviledged mode, you can configure the global options of the router by entering Global Configuration mode.

Router# configure terminal
Router(config)#

Note: You can tell you're in Global Configuration mode because the hostname of the device is suffixed with (config)#

setting the hostname of the device

You can set the device name using the hostname command:

Router(config)# hostname BennysRouter
BennysRouter(config)#

enter interface configuration mode

Once in Global Configuration mode, you can choose to configure a certain interface by entering into the interface configuration mode for that device. You can view the routers interfaces by using the show command.

BennysRouter(config)# show interface description brief

When you're ready to configure an interface, issue the interface command.

BennysRouter(config)# interface G/0/0
BennysRouter(config-if)#

Note: When you've entered interface configuration mode, the hostname of your router will be suffixed by (config-if)#

IPv4

configure an interface for IPv4

IPv6

configure an interface for IPv6

remove ipv6 addresses

Router(config-if)# no ipv6 address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment