Thursday, August 12, 2010

How to Configure Cisco Router?

I've received  a lot of emails requesting me to show how to configure Cisco router. I will show here the steps on how to configure 3 routers connected to each other. There are so many simulators available in internet like Packet Tracer by Cisco, GNS3, Boson, etc. Now I will be using Packet Tracer from Cisco. This is a user friendly simulator. I have been using this since 2005 when I first started studying CCNA, and also used it during my CCNA certification review, it helps me a lot. Then when I took CCNP exam, I both used GNS3 and Cisco Packet Tracer.


From the diagram, our goal is for PC0 to access or have connection to PC2 using ip route.

 
Here we go:

@ Philippines

Router>enable
Router#configure terminal
Router(config)#hostname Philippines
Philippines(config)#interface f0/0
Philippines(config-if)#ip address 192.168.1.1 255.255.255.0
Philippines(config-if)#no shutdown
Philippines(config-if)#interface s0/1/1
Philippines(config-if)#ip address 192.168.3.1 255.255.255.252
Philippines(config-if)#clock rate 64000
Philippines(config-if)#no shutdown
Philippines(config-if)#exit
Philippines(config)#ip route 192.168.5.0 255.255.255.0 192.168.3.2
Philippines(config)#ip route 192.168.9.0 255.255.255.0 192.168.3.2
Philippines#copy running-config startup-config


@USA
Router>enable
Router#configure terminal
Router(config)#hostname USA
USA(config)#interface f0/0
USA(config-if)#ip address 192.168.5.1 255.255.255.0
USA(config-if)#no shutdown
USA(config-if)#interface s0/1/0
USA(config-if)#ip address 192.168.3.2 255.255.255.252
USA(config-if)#no shutdown
USA(config-if)#interface s0/1/1
USA(config-if)#ip address 192.168.7.1 255.255.255.252
USA(config-if)#no shutdown
USA(config-if)#exit
USA(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1
USA(config)#ip route 192.168.9.0 255.255.255.0 192.168.7.2
USA#copy running-config startup-config


@Singapore
Router>enable
Router#configure terminal
Router(config)#hostname Singapore
Singapore(config)#interface f0/0
Singapore(config-if)#ip address 192.168.9.1 255.255.255.0
Singapore(config-if)#no shutdown
Singapore(config-if)#interface s0/1/1
Singapore(config-if)#ip address 192.168.7.2 255.255.255.252
Singapore(config-if)#clock rate 64000
Singapore(config-if)#no shutdown
Singapore(config-if)#exit
Singapore(config)#ip route 192.168.5.0 255.255.255.0 192.168.7.1
Singapore(config)#ip route 192.168.1.0 255.255.255.0 192.168.7.1
Singapore#copy running-config startup-config


Tuesday, December 8, 2009

Basic Cisco Router Configuration Commands

Set a console password to cisco
Router(config)#line con 0
Router(config-line)#login
Router(config-line)#password cisco

Set a telnet password
Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password cisco

Stop console timing out
Router(config)#line con 0
Router(config-line)#exec-timeout 0 0
Set the enable password to cisco
Router(config)#enable password cisco

Set the enable secret password to certs.
This password overrides the enable password and is encypted within the config file
Router(config)#enable secret certs

Enable an interface
Router(config-if)#no shutdown

To disable an interface
Router(config-if)#shutdown

Set the clock rate for a router with a DCE cable to 64K
Router(config-if)clock rate 64000

Set a logical bandwidth assignment of 64K to the serial interface
Router(config-if)bandwidth 64
Note that the zeroes are not missing

To add an IP address to an interface
Router(config-if)#ip address 192.168.1.1 255.255.255.0

To enable RIP on all 192.168.x.y interfaces
Router(config)#router ripRouter(config-router)#network 192.168.0.0

Disable RIP
Router(config)#no router rip

To enable IRGP with a AS of 200, to all interfaces
Router(config)#router igrp 200
Router(config-router)#network 172.16.0.0

Disable IGRP
Router(config)#no router igrp 200

Static route the remote network is 172.16.1.0, with a mask of 255.255.255.0, the next hop is 172.16.2.1, at a cost of 5 hops
Router(config)#ip route 172.16.1.0 255.255.255.0 172.16.2.1 5

Disable CDP for the whole router
Router(config)#no cdp run

Enable CDP for the whole router
Router(config)#cdp runDisable CDP on an interface
Router(config-if)#no cdp enable

Related Posts Plugin for WordPress, Blogger...
 

blogger templates | Make Money Online | nante aranda's random notes