Basic Troubleshooting Router Commands

 

 

Show protocols

shows network protocols.

Show ip protocols

lists protocols on the port IPX, IP.

Copy running-config tftp

Copies Running config file to a TFTP Server

Copy tftp running-config

Copies running config file from a TFTP Server.

Copy tftp flash

Copies IOS from a TFTP Server

Ping ip address

Tests connectivity to a device

Traceroute ip address

Traces path to a device

Show cdp neighbors

Shows CISCO connected devices and ports

No command

Disables command

 

Password Recovery on CISCO Routers

 

 

Password Recovery on a CISCO 2500 Series Router

  1. At startup ; hit CTRL & PAUSE/BREAK
  1. type o/r 0x2142 enter and type I hit enter
  1. reload, then go into privilege mode copy start run
  1. change password, config-register 0x2102 & reload

 

 

Programming A Basic Router

 

 

1)

 

Login to privileged mode: type enable

HOSTNAME#

Enter global settings by typing: config t

HOSTNAME(CONFIG)#

Type Hostname hostname

 

Banner MOTD !

whatever message you want up to 80 characters !

 

enable password password

 

Username word privilege 15 password password

 

service password-encryption

 

access-list number {permit or deny} {test-conditions}

 

 ip domain-lookup

 

IP domain name domain name

 

IP Name Server ip address

 

 

IP DHCP-Server ip address

 

ip http secure-server

 

 

 

2)

Enter Line settings by typing: Line

HOSTNAME(CONFIG- LINE)#

               

Console 0

VTY 0 15

AUX 0

Login local

Login local

Login local

Password password

Password password

Password password

logging synchronous

logging synchronous

logging synchronous

 

 

3)

Enter interface mode by typing: INTERFACE

HOSTNAME(CONFIG-IF)#

  

Serial S0 (DCE)

Serial S1 (DTE)

Ethernet 0 ; Fastethernet ; Gigabit

Ethernet E1

INT S 0

INT S 1

INT E 0

INT E 1

IP ADDRESS ip subnet

IP ADDRESS ip subnet

IP ADDRESS ip subnet

IP ADDRESS ip subnet

NO SHUTDOWN

NO SHUTDOWN

NO SHUTDOWN

NO SHUTDOWN

CLOCKRATE 56000

Description

Description

Description

Description What you want

 

Access group number in | out {protocol} access

Access group number in | out  {protocol} access

Encapsulation

Encapsulation

IP, IPX, APPLETALK

IP, IPX, APPLETALK

Duplex auto ; full

Duplex auto ; full

Duplex auto ; full

Duplex auto ; full

Speed auto

Speed auto

Speed auto ; 100 ; 1000

Speed auto ; 100 ; 1000

                                                                 

                                                                Ethernet                 = 10Mb

                                                                FastEthernet         = 100Mb

                                                                Gigabit                   = 1000Mb            

 

4)

Enter router config mode by typing: router protocol

HOSTNAME(CONFIG-ROUTER)#

    

Type router rip

: type Network XXX.XXX.XXX.XXX

Type router igrp, eigrp, ospf autonomous number

: type Network XXX.XXX.XXX.XXX

IP Route

IP address destination     subnet mask    port to network

 

 

 

Router Simulator

 

 

image001

image004

 

Console Cable Connection

 

 

Console Port

Roll-Over Cable

 

Terminal Adapter

Console Device

DTE Signal

RJ45 plug

USOC Color

RJ45 plug

RJ45 jack

T568 Color

DB9F pin

DTE Signal

RTS

1

brown

8

8

slate

8

CTS

DTR

2

blue

7

7

brown

6

DSR

TxD

3

yellow

6

6

yellow

2

RxD

GND

4

green

5

5

green

5

Signal Ground

GND

5

red

4

4

red

RxD

6

black

3

3

black

3

TxD

DSR

7

orange

2

2

orange

4

DTR

CTS

8

slate

1

1

blue

7

RTS