Skip to content

Instantly share code, notes, and snippets.

@metrafonic
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save metrafonic/33e75aa160494e93b29f to your computer and use it in GitHub Desktop.

Select an option

Save metrafonic/33e75aa160494e93b29f to your computer and use it in GitHub Desktop.
CISCO Cheatsheet

Basic Configuration w Auth:

Change Hostname:

> enable
# configure terminal
(config)# hostname nyhostname
(config)# exit

Enable Secret:

(config)# enable secret newsecret

Password for vty & comm-port login:

VTY:

> enable
# configure terminal
(config)# line vty 0 15
(config-line)# login local
(config-line)# exit

COM-PORT:

> enable
# configure terminal
(config)# line con 0
(config-line)# login local
(config-line)# exit

Add the local user:

(config)# username admin secret [newpasswd]
(config)# exit

Save Config:

# copy running-config startup-config
# show startup-config

IP Settings:

Set IP address & enable interface:

(config)# interface g0/0
(config-if)# ip address 10.1.1.2 255.255.255.0
(config-if)# no shutdown

Check interfaces

# show ip interface brief

Configure a static route

Recursive

(config)# ip route 192.168.1.0 255.255.255.0 10.0.1.2

Directly Connected

(config)# ip route 192.168.1.0 255.255.255.0 g0/0

Check route

# show ip route

Configuration of EIGRP

On/Off

Enable EIGRP

(config)# router eigrp [autonomous-system-number]

Remove EIGRP

(config)# no router eigrp [autonomous-system-number]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment