search for ccna answer

Saturday, May 1, 2010

Basic Configuration of Cisco Router

While configure a cisco router, there are few kind of mode can be use:
  1. User Mode
  2. Priviledge Mode
  3. Config Mode
  4. Interface Mode
  5. line mode
Cisco Router Basic Configuration Need:
  1. Password + Secret
  2. Hostname
  3. Interface (IP and subnet mask, no shut, and clock rate)
  4. Line configuration
Below are some coding on Basic configuration for cisco router:
Enter Privilege Mode
Router > enable
Enter Configuration Mode
Router# configuration terminal
Password need when enter into Privilege Mode next time

Router(config)# enable password p@ssw0rd
Router(config)#enable secret s3cr3t
Configure Hostname / Router Name

Router(config)#hostname myrouter1
[Set the hostname to myrouter1]
Configure Ethernet Port Command
myrouter1(config)# inte f0/0
[Enter Ethernet Interface Mode ( f0/0 for interface1, f0/1 for interface 2)]
myrouter1(config-if)# ip add 192.168.0.1 255.255.255.0
[Set IP address and subnet mask]
myrouter1(config-if)#no shut
[Active the port]
Configure Serial Port Command
myrouter1(config-if)#inte s 0/0/0
[Enter Serial Interface Mode]
myrouter1(config-if)#ip add 192.168.20.1 255.255.255.0
[Set IP address and subnet mask]
myrouter1(config-if)#no shut
[Active the port]
Set the Router BandwidthSet the bandwidth to 1G, Clock Rate only apply at Master Router
myrouter1(config-if)#clock rate 1000000
[Set the bandwidth to 1Gig]
myrouter1(config-if)#exit
Secure Console
myrouter1(config)#line con 0
myrouter1(config-line)#password c0ns0l3

myrouter1(config-line)#login
myrouter1(config-line)#exit
Secure Aux line – Auxiliary Password, use to connect a modem to a router for remote console connection, Aux only available for old router, new router does not apply
myrouter1(config)#line aux0
myrouter1(config-line)#password auXo

myrouter1(config-line)#login
myrouter1(config-line)#exit
Secure VTY line – Virtual Terminal Password, Use to secure your login from telnet or ssh
myrouter1(config)#line vty 0 4
myrouter1(config-line)#password v1rtu@1
myrouter1(config-line)#login
myrouter1(config-line)#exit
myrouter1(config)#exit
Save setting
myrouter1#wr me

or
myrouter1#copy run start

The above code are just a very basic configuration for cisco router, there are more advance configuration need for routing purpose such as static routes, default routes and dynamic routes. Within dynamic routes, there are also RIP Routes (Routing Information Protocol), IGRP Routes (Interior Gateway Routing Protocol) OSPF Routes (Open Shortest Path First) and EIGRP Routes (Enhanced Interior Gateway Routing Protocol)