Saturday, February 19, 2011

Basic configuration !










(>) for user mode





(?) for help



Type (enable) on the user mode to enter to the privilege mode

(#) for privilege mode



Type (configure terminal) on the privilege mode to enter to the global configuration mode


(config)# for global configuration mode

Note:

1. This case understanding the abbreviation for example : you can type ena (for enable) and you can type conf t (for configure terminal)

2. Use your Tab key for complete your abbreviation .. for example you can type ena then press on Tab key for complete your abbreviation after press on Tab key it will be enable another example conf then Tab key it will be configure then type t it will be terminal … (Basics#conf +Tab key igure t +Tab key it will be Basics#configure terminal ) .

3.if you want to move from global configuration mode to privilege mode press on CTRL + C or CTRL + Z or you can type end or exit


Now you can configure your router lets start


Basics(config)#hostname (the name of your router)


Basics#terminal history size 50

This command for save latest 50 commands

to disable this command it will be Basics#terminal no history size 50

Note:
You can change number 50 to any number u want


To install clock on your router

Basics(config)#clock timezone gmt +2

Basics#clock set 07:11:00 february 17 2011
Basics#
* Feb 17 05:11:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 04:26:28 gmt Fri Mar 1 2002 to 07:11:00 gmt Thu Feb 17 2011, configured from console by console.








You can show clock set by this command

Basics#show clock
07:11:39.067 gmt Thu Feb 17 2011





 (Top commands using on cisco devices)


Basics#show running-config 1.
This command for know what is the setting for this device but this settings not added to memory you should type this command to copy it to memory (Nvram) by type Basics#copy running-config startup-config




2. Basics#show interfaces

This command for show some information about your router interfaces and what is MTU (maximum transmission unit) and BW(Bandwidth) and know if the protocol down or up ..etc








3. Basics#show ip interface brief

This command for know if this interface up or down and are found any problem on layer two or layer one .








4. Basics(config-if)#no shutdown
This command for open the interface or enable it by enter to interface mode then type no shutdown command

For example :

Basics(config)#interface f0/0
Basics(config-if)#no shutdown



Basics(config-if)#no shutdown

*Mar 1 04:45:47.382: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 04:45:48.382: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up




5. Basics#show ip route

This command for show routing table&this routing table for showhow routers can connect with each other and which type of this protocols used to connect with another routers .



6. Basics#show version

This command for show a lot of information about this device for example router model , memory , configuration register , IOS revision number , IOS name .







7. Basics#debug






For example debug ip routing
debug eigrp packets
Basics#debug eigrp fsm
Basics#debug ip rip

This command using for Troubleshooting between protocols by sending updates between routers or know how many hops the way when the packet travelling to the destination to disable debug type Basics#undebug all .














8. Basics#show history

This command for show what commands your are typed





9. Basics#show ip protocols

This command for show some information about what protocols used on this router and what is the router ID and some Routing Information Sources .

10. Basics#write

This command equal copy running-config startup-config its mean copy configuration to memory (Nvram)

Basics#write
Building configuration...
[OK]






We want to configure

Console port
Vty port (telnet)
Aux port







For configure Console port lets see



Basics(config)#line console 0
Basics(config-line)#password cisco1
Basics(config-line)#login
Basics(config-line)#exec-timeout <0-35791> Timeout in minutes

exec-timeout command is used to configure the number of minutes without terminal activity before the session is automatically ended to diable it you can type Basics(config-line)#no exec-timeout

Note :

Line console (0) for one console port on the router








For configure Vty port (telnet) lets see

Basics(config)#line vty 0 15
Basics(config-line)#pas
Basics(config-line)#password cisco2
Basics(config-line)#login

Note :

1. Basics(config)#line vty 0 15 in the old IOS not support more than 5 user to telnet this router but in the new IOS it will be support 16 user to configure this router by telnet port .




For configure aux port lets see

Basics(config)#line aux 0
Basics(config-line)#password cisco3
Basics(config-line)#login



Now we should save our configuration to Nvram(memory) bye typing

Basics# copy running-config startup-config






Lets see how can put password for privilege mode

Basics(config)#enable secret cisco3




Note:
You can put some banners or message for warning any one try to login into your router
Banner login
Motd (message of the day banner )
Or (exec-banner)

For configure banner login type Basics(config) banner login #dont try to login#
For configure Motd (message of the day banner ) Basics(config)#banner motd # arning message dont try to login my router :- #

The following example sets a MOTD banner. The pound sign (#) is used as a delimiting character.
For configure (exec-banner) Basics(config)#$ $ Session activated. Enter commands at the prompt $

The following example sets an EXEC banner. The dollar sign ($) is used as a delimiting character.



To encrypt the passwords we should enter to global configuration mode the type Basics(config)#service password-encryption

Then type Basics#show running-config


Ok now we want to add ip address to interfaces and give it subnet mask lets see

Go to global configuration mode then type Basics(config)#interface f0/0

Then put the ip address and subnet musk Basics(config-if)#ip address 192.168.10.1 255.255.255.0




Now we need to verify are this interface become up or not lets see by type this command Basics#show ip interface brief





Note :

You can put small description on the interfaces for example

Basics(config-if)#description IT department










Don’t forget to save your configuration to startup-config (Nvram)






Enjoy!!

No comments:

Post a Comment