How to configure Cisco router in CCNA step by step...

Transcription

How to configure Cisco router in CCNA step by step...
How to configure Cisco router in CCNA step by step guide
In this article w e w ould extend w hat you have learnt from previous article. In previous article you have learnt
How to check running configuration in Cisco router
How to check history
How to check Router version
How to check Router hardw are platform
How to know DCE or DTE port
We w ould use same topology w hich w e have created in our previous article. Either create a topology as given in follow ing image
or you can dow nload this created topology and load in packet tracer
Click inside the Router and select CLI and press Enter to get started. Setup mode start automatically if there is no startup configuration
present. The answ er inside the square brackets [ ], is the default answ er. If this is the answ er you w ant, just press enter. Pressing
CTRL+C at any time w ill end the setup process, shut dow n all interfaces, and take you to user mode (Router>).
You cannot use setup mode to configure an entire router. It does only the basics. For example, you can only turn on either RIPv1 or Interior
Gatew ay Routing Protocol (IGRP), but not Open Shortest Path First Protocol (OSPF) or Enhanced Interior Gatew ay Routing Protocol (EIGRP).
You cannot create access control lists (ACL) here or enable Netw ork Address Translation (NAT). You can assign an IP address to an
interface, but not to a subinterface. All in all, setup mode is very limiting.
--- System Configuration Dialog --- Continue with configuration dialog?
[yes/no]:
Write no and press enter. To get router prompt
You are now connected to Router and are in user m ode prompt. The prompt is broken dow n into tw o parts, the hostname and the mode.
"Router" is the Router0's hostnam e and ">" means you are in user mode.
Press RETURN to get started
Router>
User m ode is indicated w ith the '>' next to the router name. in this mode you can look at settings but can not make changes.
In Privilege m ode(indicated by the '#', you can do anything). To get into privilege mode the keyw ord is enable.
Next type the command enable to get to the privileged mode prompt.
Router > enable
Router#
To get back to the user m ode, simply type disable. From the user mode type logout or exit to leave the router.
Router#disable
Router>
Router>exit
Router con0 is now available
Press RETURN to get started
press enter to get back router prompt
Router>
You are now in User mode. Type ? to view all the available commands at this prompt.
Router>?
Native IPv6 Transit
www.goscomb.net
Available in UK, NL, FR Multihomed International Network
From privilege mode you can enter in configuration mode by typing configure term inal you can exit configuration mode type exit or
<CTL>+z
Router>enable
Router#config terminal
Router(config)#exit
Router#
To view all commands available from this mode type ? and press enter This w ill give you the list of all available commands for the router in
your current mode. You can also use the question mark after you have started typing a command. For example if you w ant to use a show
command but you do not remember w hich one it uses 'show ?' w ill output all commands that you can use w ith the show com m and.
Router#show ?
access-expression List access expression
access-lists List access lists
backup Backup status
cdp CDP information
clock Display the system clock
cls DLC user information
compress Show compression statistics
configuration Contents of Non-Volatile memory
--More-Basic Global Configurations mode Commands
► Cisco Router
► Cisco CCNA
► Router Setup
► Rip
► Cisco Router
► Cisco CCNA
► Router Setup
► Rip
Configuring a Router Name
This command w orks on both routers and sw itches
Router(config)#hostname Lucknow Lucknow(config)#
You could choose any descriptive name for your cisco devices
Configuring Passwords
This command w orks on both routers and sw itches
Router(config)#enable passw ord test
Sets enable passw ord to test
Router(config)#enable secret vinita
Sets enable secret passw ord to vinita
Router(config)#line console 0
Enters console line mode
Router(config-line)#passw ord console
Sets console line mode passw ord to console
Router(config-line)#login
Enables passw ord checking at login
Router(config)#line vty 0 4
Enters vty line mode for all five vty lines
Router(config-line)#passw ord telnet
Sets vty passw ord to telnet
Router(config-line)#login
Enables passw ord checking at login
Router(config)#line aux 0
Enters auxiliary line mode
Router(config-line)#passw ord aux
Sets auxiliary line mode passw ord to aux
Router(config-line)#login
Enables passw ord checking at login
CAUTION: The enable secret passw ord is encrypted by default. The enable passw ord is not. For this reason, recommended practice is
that you never use the enable passw ord command. Use only the enable secret passw ord command in a router or sw itch configuration.
You cannot set both enable secret passw ord and enable passw ord to the same passw ord. Doing so defeats the use of encryption.
► Router Config
► Cisco 2600XM
► Network Router
► CCNA Study Guides
Configuring a Fast Ethernet Interface
Router(config)#interface fastethernet 0/0
Moves to Fast Ethernet 0/0 interface configuration mode
Router(config-if)#description Student Lab LAN
Optional descriptor of the link is locally significant
Router(config-if)#ip address 192.168.20.1 255.255.255.0
Assigns address and subnet mask to interface
Router(config-if)#no shutdow n
Turns interface on
Creating a Message of the Day Banner
Router(config)#banner motd # Next Schedule metting with manager is Postponed
Router(config)#
#
The MOTD banner is displayed on all terminals and is useful for sending messages that affect all users. Use the no banner m otd
com m and to disable the MOTD banner. The MOTD banner displays before the login prompt and the login banner, if one has been created.
Creating a Login Banner
Router(config)#banner login # Unauthorized access is prohibited !
Please enter your username and password. #
Router(config)#
The login banner displays before the username and passw ord login prompts. Use the no banner login command to disable the login
banner. The MOTD banner displays before the login banner.
# is know n as a delimiting character. The delimiting character must surround the banner and login message and can be any character so
long as it is not a character used w ithin the body of the message
Assigning a Local Host Name to an IP Address
Router(config)#ip host Lucknow 172.16.1.1
Assigns a host name to the IP address. After this assignment, you can use the host name rather than an IP address w hen trying to Telnet
or ping to that address
The no ip domain-lookup Command
Router(config)#no ip domain-lookup
Router(config)#
Turns off trying to automatically resolve an unrecognized command to a local host name
Ever type in a command incorrectly and are left having to w ait for a minute or tw o as the router tries to translate your command to a domain
server of 255.255.255.255? The router is set by default to try to resolve any w ord that is not a command to a Domain Name System (DNS)
server at address 255.255.255.255. If you are not going to set up DNS, turn off this feature to save you time as you type, especially if you
are a poor typist
The logging synchronous Command
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#
Sets the time limit w hen the console automatically logs off. Set to 0 0 (minutes seconds) means the console never logs off.
The command exec-timeout 0 0 is great for a lab environment because the console never logs out. This is considered to be bad security
and is dangerous in the real w orld. The default for the exec-timeout command is 10 minutes and zero (0) seconds (exec-timeout 10 0).
Saving and erasing configurations
► CCNA Study Guides
► Cisco Network
► Router Ethernet
Router(config)#exit
Bring you back in Privilege exec mode
Router#copy running-config startup-config
Saves the running configuration to local NVRAM
Router#copy running-config tftp
Saves the running configuration remotely to a TFTP server
Router#erase startup-config
Deletes the startup configuration file from NVRAM
Configuration Example: Basic Router Configuration
Click inside the Router and select CLI and press Enter to get started.
► Router IP Address
--- System Configuration Dialog --Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface fastethernet 0/0
R1(config-if)#description Student Lab LAN
R1(config-if)#ip address 192.168.20.1 255.255.255.0
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state
to up
R1(config-if)#exit
R1(config)#banner motd # Next Schedule metting with is postponed #
R1(config)#banner login # Unauthorized access is prohibited !
Enter you user name and password #
R1(config)#ip host Lucknow 172.16.1.1
R1(config)#no ip domain-lookup
R1(config)#line console 0
R1(config-line)#exec-timeout 0 0
R1(config-line)#logging synchronous
R1(config-line)#password consloe
R1(config-line)#login
R1(config-line)#exit
R1(config)#line vty 0 4
R1(config-line)#password telnet
R1(config-line)#login
R1(config-line)#exit
% Unrecognized command
R1(config)#enable password test
R1(config)#enable secret vinita
R1(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R1#
I have uploaded a configured and tested topology in case you are unable to locate the problem spot then dow nload this configuration file.
And try to find out w here have you committed mistake
Dow nload configured topology
< Prev
Next >
Comments
# m ahiq 2013-12-01 08:36
the w ay of explanation is so easy to understood..Thanks
0
Reply | Reply w ith quote | Quote
# hepenz 2013-11-26 03:30
I learned a lot!
0
Reply | Reply w ith quote | Quote
# klarisseann 2013-11-25 11:07
THIS IS GREAT!!!!
i love it so much!!
this w ill be my guide in understanding CISCO...
0
THANKS ALOT!!!
Reply | Reply w ith quote | Quote
# Stiffanny Ortega 2013-11-22 03:52
w ow ! great I love the explaination
0
Reply | Reply w ith quote | Quote
# JKss 2013-11-14 16:27
nice explanation. easy to understand]. thanks......
0
Reply | Reply w ith quote | Quote
# Chris 2013-10-03 15:19
Aw esome explanation. Very easy to understand. Thanks.
+4
Reply | Reply w ith quote | Quote
# Sanjeev 2013-09-28 03:44
Very Good explaination dear thanks alot
+4
Reply | Reply w ith quote | Quote
Refresh comments list
Add com m ent
Search...
Subscribe
Follow us on Twitter
Follow
Follow us on Google plus
ComputerNetwor​
rkingNotes.co…
google.com/+Comput​
ternetworkingnote…
Your knowledge partner for
networking certificates
Suivre
+ 161
Follow us on Facebook
Find us on Facebook
ComputerNetworkingNotes.com
Like
2,079 people like ComputerNetworkingNotes .com
Fac ebook soc ial plugin
No part of this site c an be duplic ated in any form without written permission from the Webmaster
Copyright © 2010 - 2013 www.ComputerNetworkingNotes.c om.
Terms and c onditions Privac y Polic y Contac t Us