• Home
  • Posts RSS
  • Comments RSS
  • Edit
Blue Orange Green Pink Purple


Get Links to latest E-books, Tutorials and Views. If you need some thing its just a comment away.


Cisco Basic Router Configuration

When configuring a router, certain basic tasks are performed including:

Naming the router
Setting passwords
Configuring interfaces
Configuring a banner
Saving changes on a router
Verifying basic configuration and router operations


You should already be familiar with these configuration commands; however, we will do a brief review. We begin our review with the assumption that the router does not have a current startup-config file.

The first prompt appears at user mode. User mode allows you to view the state of the router, but does not allow you to modify its configuration. Do not confuse the term "user" as used in user mode with users of the network. User mode is intended for the network technicians, operators, and engineers who have the responsibility to configure network devices.

Router>

The enable command is used to enter the privileged EXEC mode. This mode allows the user to make configuration changes on the router. The router prompt will change from a ">" to a "#" in this mode.

Router>enable
Router#


Hostnames and Passwords

The figure shows the basic router configuration command syntax used to configure R1 in the following example. You can open Packet Tracer Activity 1.2.2 and follow along or wait until the end of this section to open it.

First, enter the global configuration mode.
Router#config t

Next, apply a unique hostname to the router.

Router(config)#hostname R1
R1(config)#


Now, configure a password that is to be used to enter privileged EXEC mode. In our lab environment, we will use the password class. However, in production environments, routers should have strong passwords. See the links at the end of this section for more information on creating and using strong passwords.

Router(config)#enable secret class

Next, configure the console and Telnet lines with the password cisco. Once again, the password cisco is used only in our lab environment. The command login enables password checking on the line. If you do not enter the command login on the console line, the user will be granted access to the line without entering a password.


R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login


Configuring a Banner

From the global configuration mode, configure the message-of-the-day (motd) banner. A delimiting character, such as a "#" is used at the beginning and at the end of the message. The delimiter allows you to configure a multiline banner, as shown here.

R1(config)#banner motd #
Enter TEXT message. End with the character '#'.
******************************************
WARNING!! Unauthorized Access Prohibited!!
******************************************
#


Configuring an appropriate banner is part of a good security plan. At a very minimum, a banner should warn against unauthorized access. Never configure a banner that "welcomes" an unauthorized user.

Links:



For discussions about using strong passwords, see:

"Cisco Response to Dictionary Attacks on Cisco LEAP," at http://www.cisco.com/en/US/products/hw/wireless/ps430/prod_bulletin09186a00801cc901.html#wp1002291

"Strong passwords: How to create and use them," at http://www.microsoft.com/athome/security/privacy/password.mspx

Router Interface Configuration

You will now configure the individual router interfaces with IP addresses and other information. First, enter the interface configuration mode by specifying the interface type and number. Next, configure the IP address and subnet mask:

R1(config)#interface Serial0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0


It is good practice to configure a description on each interface to help document the network information. The description text is limited to 240 characters. On production networks a description can be helpful in troubleshooting by providing information about the type of network that the interface is connected to and if there are any other routers on that network. If the interface connects to an ISP or service carrier, it is helpful to enter the third party connection and contact information; for example:

Router(config-if)#description Ciruit#VBN32696-123 (help desk:1-800-555-1234)

In lab environments, enter a simple description that will help in troubleshooting situations; for example:

R1(config-if)#description Link to R2

After configuring the IP address and description, the interface must be activated with the no shutdown command. This is similar to powering on the interface. The interface must also be connected to another device (a hub, a switch, another router, etc.) for the Physical layer to be active.

Router(config-if)#no shutdown

Note: When cabling a point-to-point serial link in our lab environment, one end of the cable is marked DTE and the other end is marked DCE. The router that has the DCE end of the cable connected to its serial interface will need the additional clock rate command configured on that serial interface. This step is only necessary in a lab environment and will be explained in more detail in Chapter 2, "Static Routing."

R1(config-if)#clock rate 64000>

Repeat the interface configuration commands on all other interfaces that need to be configured. In our topology example, the FastEthernet interface needs to be configured.

R1(config)#interface FastEthernet0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#description R1 LAN
R1(config-if)#no shutdown


Each Interface Belongs to a Different Network

At this point, note that each interface must belong to a different network. Although the IOS allows you to configure an IP address from the same network on two different interfaces, the router will not activate the second interface.

For example, what if you attempt to configure the FastEthernet 0/1 interface on R1 with an IP address on the 192.168.1.0/24 network? FastEthernet 0/0 has already been assigned an address on that same network. If you attempt to configure another interface, FastEthernet 0/1, with an IP address that belongs to the same network, you will get the following message:

R1(config)#interface FastEthernet0/1
R1(config-if)#ip address 192.168.1.2 255.255.255.0
192.168.1.0 overlaps with FastEthernet0/0

If there is an attempt to enable the interface with the no shutdown command, the following message will appear:

R1(config-if)#no shutdown
192.168.1.0 overlaps with FastEthernet0/0
FastEthernet0/1: incorrect IP address assignment

Notice that the output from the show ip interface brief command shows that the second interface configured for the 192.168.1.0/24 network, FastEthernet 0/1, is still down.

R1#show ip interface brief

FastEthernet0/1 192.168.1.2 YES manual administratively down down
Verifying Basic Router Configuration

Currently in the example, all of the previous basic router configuration commands have been entered and were immediately stored in the running configuration file of R1. The running-config file is stored in RAM and is the configuration file used by IOS. The next step is to verify the commands entered by displaying the running configuration with the following command:

R1#show running-config

Now that the basic configuration commands have been entered, it is important to save the running-config to the nonvolatile memory, the NVRAM of the router. That way, in case of a power outage or an accidental reload, the router will be able to boot with the current configuration. After the router's configuration has been completed and tested, it is important to save the running-config to the startup-config as the permanent configuration file.

R1#copy running-config startup-config

After applying and saving the basic configuration, you can use several commands to verify that you have correctly configured the router. Click the appropriate button in the figure to see a listing of each command's output. All of these commands are discussed in detail in later chapters. For now, begin to become familiar with the output.

R1#show running-config>

This command displays the current running configuration that is stored in RAM. With a few exceptions, all configuration commands that were used will be entered into the running-config and implemented immediately by the IOS.

R1#show startup-config


This command displays the startup configuration file stored in NVRAM. This is the configuration that the router will use on the next reboot. This configuration does not change unless the current running configuration is saved to NVRAM with the copy running-config startup-config command. Notice in the figure that the startup configuration and the running configuration are identical. They are identical because the running configuration has not changed since the last time it was saved. Also notice that the show startup-config command also displays how many bytes of NVRAM the saved configuration is using.

R1#show ip route

This command displays the routing table that the IOS is currently using to choose the best path to its destination networks. At this point, R1 only has routes for its directly connected networks via its own interfaces.

R1#show interfaces

This command displays all of the interface configuration parameters and statistics. Some of this information is discussed later in the curriculum and in CCNP.

R1#show ip interface brief

This command displays abbreviated interface configuration information, including IP address and interface status. This command is a useful tool for troubleshooting and a quick way to determine the status of all router interfaces.
Read More 0 comments | Posted by Furqan | edit post

0 comments



Post a Comment

Post a Comment

Newer Post Older Post Home



Get Links to latest E-books, Tutorials and Views. If you need some thing its just a comment away.

Furqan.in

  • About me.
      I am Furqan Mistry a Post Graduate in computer science. We blog, we chat, have fun and gather vital information for IT preference. We provide links to E-books, Tutorials,Guides and some strategical planning under views and blogs. Come visit our Blog, if there is any thing you need its just a comment away !



  • Label Cloud

    Adobe Business Blogs
    CCNA CCNP CCSP
    CCIE Cisco-Press Carrers
    Dummies
    E-Books Games Guides
    Islam Linux Networking
    Peotry Photographs Tutorials
    Video Mentor for Cisco Views
    Visual Foxpro
    Wallpapers

    Blog Archive

    • ►  2010 (2)
      • ►  August (1)
        • Search Engine Optimization for Dummies
      • ►  June (1)
        • Search Google Like An Expert.
    • ▼  2009 (132)
      • ►  December (1)
        • The Wedding Invitation
      • ►  November (1)
        • Windows 7 Secrets
      • ►  October (1)
        • AutoCAD 2008
      • ►  September (5)
        • Popular Keyword Research Tools..
        • W3Schools Offline Version (Entire Website)
        • Learning Flash CS4 Professional
        • IT'S EITHER "HER WAY" OR IT'S "NO WAY" ! - King Ar...
        • 'What gender is 'computer' ?
      • ►  July (1)
        • Ubuntu Linux Secrets
      • ►  June (3)
        • 5 Great Things About Server 2008 — Upgrade Worth ...
        • 10 handy Firefox about:config hacks
        • Top 10 Linux financial tools.
      • ►  May (16)
        • The Difference between FOCUSING on PROBLEMS and FO...
        • Web is Punked !
        • The nature of deadlines
        • Cisco CCSP - Exam-Pack 642-523: SNPA
        • CCIE Routing and Switching Exam Certification Guid...
        • CCENT/CCNA ICND2 exam 640-816 (3rd Edition)
        • CBT CCENT/CCNA ICND2 exam 640-816 (3rd Edition)
        • Blogger: Beyond the Basics: Customize and promote ...
        • Arabic For Dummies
        • Adobe Photoshop CS4 Guide
        • Dynasty Warriors Vol. 2 - PSP
        • Dynasty Warriors - PSP
        • Mega Fresh eMedia Brushes Pack for Photoshop
        • Learning Web Design: A Beginner's Guide to (X)HTML...
        • ESET Offline Cumulative Update 4046 (20090430)
        • Internet Download Manager 5.17 build 2 Packed 5 in...
      • ▼  April (72)
        • Introducing Microsoft SQL Server 2008
        • Cisco Basic Router Configuration
        • Ten Features From Windows Xp not Appearing in Vist...
        • 7 winning search engine optimization tactics
        • Rundll32 Commands in Windows XP
        • Next-gen disk capacity 10 times bigger than Blu-ra...
        • Difference Between A Programmer and HR Judging A R...
        • All Cisco Certification Exams Collection
        • Samurai Shodown Anthology - PSP
        • Dynasty Warriors: Strikeforce - PSP
        • Muscular Development - May 2009
        • The Definitive Guide to Linux Network Programming
        • Flash CS4 For Dummies
        • For Dummies Illustrator CS4 For Dummies Nov 2008 a...
        • For Dummies Digital Photography For Dummies Nov 20...
        • Oil Painting For Dummies
        • Folder Guard 8.0 Software !
        • PHP & MySQL for Dummies
        • Google Search Rescue For Dummies
        • Sex For Dummies 3rd Ed Nov 2006
        • Dreamweaver CS4 All-in-One For Dummies
        • MySpace For Dummies
        • Internet Download Manager 5.16.3
        • Photoshop CS4 For Dummies
        • Building Flash Web Sites For Dummies
        • Excel® 2007 VBA Programming FOR DUMmIES by John Wa...
        • Creating Game Art for 3D Engines (Game Development...
        • How To Create Hair (Photoshop Tutorial)
        • Cisco Press LAN Switching Fundamentals
        • CCNA Voice Official Exam Certification Guide (640-...
        • Cisco Wireless LAN Security (Networking Technology...
        • JNCIS: Juniper Networks Certified Internet Special...
        • CCNA Fast Pass (3rd Edition)
        • Adobe Illustrator CS3 One-on-One: Advanced Techniq...
        • Ruby on Rails Power: The Comprehensive Guide
        • Postpartum Depression For Dummies
        • National Geographic Unlocking the Great Pyramid
        • Core CSS Cascading Style Sheets (With CD-ROM) by K...
        • Cascading Style Sheets (CSS) By Example by Steve C...
        • Boost Your Hiring I.Q.
        • IQ Mindbenders
        • Goodness! That must have hurt real bad.
        • RIP (Routing Information Protocol)
        • The debate : - GOD exists or not
        • LinuxCBT Enterprise Linux 5 Edition REPACK DVDR-HE...
        • CBT NUGGETS CISCO CCSP EXAM-PACK 642-524 SNAF DVD-...
        • Dandruff Treatment & Tips !
        • Red shirt and Yellow trousers..
        • Keep Smiling !!
        • "THE AYURVEDA ENCYCLOPEDIA"
        • Make a LEGO man - A Totally Rad Tutorial
        • April Fools !
        • Add google Webmaster Tools to your Blogs.
        • Useful Run command for Windows.
        • The Duck & Shaytan !
        • Ithaa Restaurant at Maldives Rangali Island
        • Grand Theft Auto IV: The Lost and Damned
        • Windows Server 2008 for the dummies
        • Networking For Dummies, 8th Edition - Doug Lowe
        • Microsoft Press - Visual Foxpro 6.0 Programmer's G...
        • Enhancing CAD Drawings with Photoshop by Scott Ons...
        • CBT NUGGETS CCIE Video Practice Lab
        • Cisco Certified Internetwork Expert (CCIE) Secu...
        • Train Signal Cisco CCNP ONT
        • Todd Lammle CCNA IOS Commands Survival Guide
        • CCNA Security Official Exam Certification Guide
        • Seven tips to help you pray Fajr !
        • " I Am The Money "
        • The Dead Space Guide !
        • Checking common port numbers on Cisco IOS
        • Quality of Service Summary
        • Adsense is going serious with Blogger blog !
      • ►  March (32)
    link to web hosting page
    Loading...

    Followers

    Follow this blog
  • Search






    • Home
    • Posts RSS
    • Comments RSS
    • Edit

    © Copyright Think Binary... All rights reserved.
    | Bloggerized by FalconHive.com
    brought to you by Smashing Magazine

    Back to Top