Monday 22 August 2011

lesson-8,Basic Router Configuration Using Packet Tracer


 

Basic Router Configuration

In this post we will discuss how to configure a cisco router with some basic configurations. Following are the terms being described in this post :

·         Hostname
·         Banner Message of the day
·         Bringing up an interface
·         Discribing the purpose of interface
·         Disabling DNS lookup
·         Clock Rate on Serials
·         IP addressing
·         Viewing, saving and erasing configurations

Hostname

The identity of any Router can be set with the host name command. It is only locally significant.
Example :

Router>enable
Router#configure terminal
Router(config)#hostname Maati
Maati(config)#exit



Banners

Banners is the information being displayed when someone tries to access the console or virtual terminal lines of your router to logon to your router. You can use the Banners to display the security warnings or some message at the login time.
Example:

Router>enable
Router#configure terminal
Router(config)#banner motd  x maati’s router x
Router(config)#exit

Here x is the delimeter character you can use any character as delimeter character.





Bring up an interface

On cisco routers all interfaces by default are in shut down mode means administratively down
You can check the status of these interfaces by using the command show ip interface brief  at the user privellige mode on cisco routers. To bring up the status of an interface we use the no shutdown command.
Example:

Router>enable
Router#configure terminal
Router(config)#interface serial0/0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fastethernet0/0
Router(config-if)#no shutdown
Router(config-if)#exit



Disabling DNS lookup

DNS lookup can sometime take your time looking for the name translations even if you didn’t configure any host name but we can disable the DNS lookup from your cisco device.
Example:

Router>enable
Router#configure terminal
Router(config)#no ip domain-lookup
Router(config)#exit



Clock rate on serial interfaces

Serial interfaces need to be configured with the clock rate and following example describe the commands used to set the clock rate on serial interfaces.
Example:

Router>enable
Router#configure terminal
Router(config)#interface serial0/0
Router(config-if)#no shutdown
Router(config-if)#clock rate 4800
Router(config-if)#exit
The clock rate can be set from some specific values.



IP addressing

Every interface need to be configured with an IP address on the router to communicate over the network. Consider an example in which we will assign the ip address 192.168.10.1 with subnet mask 255.255.255.0 on fastethernet interface of router and ip address 192.168.20.1 with subnet mask 255.255.255.0 on the serial interface of router.

Router>enable
Router#configer terminal
Router(config)#interface fastethernet0/0
Router(config-if)#ip address 192.168.10.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)interface serial0/0
Router(config-if)#ip add 192.168.20.1 255.255.255.0
Router(config-if)#no shutdown
Router (config-if)exit



Viewing, saving and erasing configurations

After you are done with your router’s configurations you can view save and erase the configurations of your router.
Example:

Viewing
Router>enable
Router#show running-config





Saving

Router>enable
Router#copy running-config starup-config
Or
Router#write



Erasing startup configurations

Router>enable
Router#erase startup-config


0 comments:

    Post a Comment