PASSWORDS

To set up passwords:

CONFIG T

ENABLE SECRET secret (where the first secret is the enable mode, and the second “secret” is the password)

LINE CON 0

PASSWORD password (where the first password is the viewing password and the second “password” is the actual password)

LOGIN (forces you to login in order to even view anything)

To setup for Telnet sessions:

CONFIG T
LINE VTY 0 4 (Note that it is 0 4 NOT 0-4)

PASSWORD telnet (where “telnet” is the password used)

LOGIN

EXIT or CTRL Z

To Encrypt the passwords for the router in the Config File:

CONFIG T

SERVICE PASSWORD-ENCRYPTION

To set up a user account:

CONFIG T
USERNAME ROOT SECRET MY$PASSWORD

To make the router use the usernames:

CONFIG T

LINE CON 0

LOGIN LOCAL

LINE AUX 0

LOGIN LOCAL

LINE VTY 0 4

LOGIN LOCAL

INTERFACES

To set IP address:

CONFIG T

INT E0

IP ADDRESS 10.200.50.1 255.255.255.0

NO SHUTDOWN

type in CTRL Z to exit config mode

to exit the config-if submode: type in EXIT

To Set IP addresses for Serial Interfaces:

CONFIG T

INT S0 (or S1) (NOTE: for 2600 series, all interfaces are labeled E0/0 or S0/0 or S0/1 etc.)

IP ADDRESS 131.107.252.1 255.255.255.252

CLOCKRATE 56000 (DCE Interface ONLY)

NO SHUTDOWN

DESCRIPTION Network to ISP (This is like a comment field)

Routing

Setting up Default Routes:

CONFIG T

IP ROUTE 0.0.0.0 0.0.0.0 192.168.0.1 (IP address of next hop router)

OR

IP DEFAULT-NETWORK 192.168.0.0 (You can use one or the other, but not both)

Setting up Static Routes:

CONFIG T

IP ROUTE 10.200.50.1 255.255.255.0 192.168.0.1

(where 10.200.50.1 is the IP address of the router and 192.168.0.1 is the next hop router IP address)

SAVING FILES

COPY RUN START (copies the running config to the startup config)

COPY START TFTP (copies the startup config to a TFTP server- usually the laptop or PC attached to the E0 or E1 interface)

COPY TFTP RUN (copies the file specified in the TFTP server to the running config- assists in setting up your backup router in approx 2 min instead of wading through configuration AGAIN)

COPY FLASH TFTP (copies the IOS to the TFTP server- good for backups)

COPY TFTP FLASH (copies the backup or the new IOS to FLASH)

OTHER MISC. STUFF

To set up name for router:

CONFIG T

HOSTNAME goofy


SHOW IP ROUTE

SHOW IP INTERFACE BRIEF

SHOW CONTROLLER S0 (shows whether or not the serial cable is DCE or DTC)

PING ip address

TRACE ip address (NOT TRACERT- that is a WINDOWS command!!)

DEBUG IP RIP (to turn off NO DEBUG ALL- run this command FIRST, so that it’s in the buffer)

SHOW CDP NEIGHBORS

SHOW CDP NEIGHBORS DETAIL

SHOW IP PROTOCOLS

SHOW VERSION (shows WHICH IOS version is currently running- also shows config-register setting)

SHOW FLASH (contains all of the IOS versions stored in FLASH)

To turn off domain lookup when you screw up a command:

CONFIG T

NO IP DOMAIN-LOOKUP

To give the router a DNS server to use for domain lookup:

CONFIG T

IP NAME-SERVER IP-ADDRESS (or possibly 10.200.200.1 – DNS Server IP address)

To set the banner message:

CONFIG T

BANNER MOTD~ enter text message here …end with the ~ character (lets the router know when to stop the banner)

To stop the console messages from appearing after EVERY single change:

CONFIG T

NO LOGGING CONSOLE

To turn off the Web Server:

CONFIG T

NO IP HTTP SERVER

To set up aliases for commands:

CONFIG T

ALIAS EXEC S SH RUN (this enables you to simply type in S instead of SHOW RUNNING-CONFIGURATION)