Showing posts with label Certification. Show all posts
Showing posts with label Certification. Show all posts

Tuesday, December 7, 2010

CCNA Certification Exam Prep - Cisco IOS Router Operation Tutorial

This article will cover a few points that you will be tested for the CCNA regarding the configuration of basic Cisco IOS router operation. IOS (Internetwork Operating System) is the software operating system running on most Cisco network devices, including switches and routers. To configure any Cisco network device you need to master the Cisco IOS Configuration Commands and use the Command Line Interface (CLI) to configure and troubleshoot a Cisco device.

How to connect to a Router in order to Configure it:

You can connect to a Cisco IOS Router either directly or remotely. For the first time when the device is not configured yet, you usually connect directly with a console cable via the CON port or remotely by dialing into a modem connected to the AUX port. These are called "out-of-band" connection methods. After you configure the router and assign IP addresses to its interfaces, you can connect to the router from the network with an "in-band" connection method using Telnet or SSH.

Router Configuration Modes

After connecting to a Cisco Router (let's say using a console), you are presented with the Command Line Interface in which you type and enter configuration commands. After typing a command, you press enter and the command is automatically active on the device. For example using the "shutdown" command on an interface, automatically disables the interface. Now, there are two Router Configuration Modes (or access modes):


User EXEC Mode: Allows the administrator to access only limited monitoring commands. You can not actually make any configurations from this mode. The command prompt on this mode is "router>"

Privileged EXEC Mode: Allows the administrator to access all device commands, such as those used for configuration and management, and can be password protected to allow only authorized users to access the device at this "full-access" level. This mode is also called enable mode because you get to it with the enable command. The command prompt on this mode is "router#". From the privileged EXEC mode you can start configuring the device by typing "configure terminal".

Router Memory Types

A Cisco router has four memory types:


ROM: This is where the POST script of the router is located. The POST software (Power On Self Test) is used during startup to perform the initial hardware checking of the device. The ROM also holds a mini-IOS used for password recovery.
RAM: This is where the running configuration is located. After the device boots up, the IOS software is loaded into RAM. Also, RAM holds routing tables, network parameters during operation etc. When configuring the router, we actually change the running-configuration which as we said is stored into RAM
NVRAM: When we save the running-configuration (using the command "write") it is stored into the NVRAM and becomes the startup-configuration. After rebooting the router, the startup-configuration is loaded from the NVRAM.
Flash: This is like the hard-disk of a PC. It holds the IOS software image file and any backup configurations that you might save from time to time.

When you issue the "show running-configuration" command on the router you instruct the device to display the current running configuration in RAM. When you issue the "show startup-configuration" command you instruct the router to display the stored configuration in the NVRAM.

Saturday, November 20, 2010

Cisco Certification: Building Your Own Home Lab, Part I

CCNAs and CCNA candidates hear it all the time: 'Get some hands-on experience'. From my personal experience climbing the Cisco certification ladder, I can tell you firsthand that there is no learning like hands-on learning. No simulator in the world is going to give you the experience you will get cabling and configuring your own routers.

Whenever I mention this to one of my students, they always say it costs too much. The truth is, it is cheaper now to build your own CCNA and CCNP lab than it has ever been. The secret? Used routers.

The word 'used' turns off a lot of people; not many of us buy used computers or used servers. Cisco routers, though, are robust; I personally own a Cisco 4000 router that I use as a Frame Relay switch in my lab that I've had for about four years, and I've never had a problem with it.

The good news for current CCNA and CCNP candidates interested in building their own labs is that used Cisco equipment has never been more plentiful or cheaper. eBay is a good way to get an idea of what's out there and what the prices are, but you don't have to assemble your lab one piece at a time. Many eBay vendors who sell used Cisco equipment sell ready-made CCNA and CCNP labs for one price, including cables.

I asked one major vendor of CCNA and CCNP labs, http://www.ciscokits.com, what the most common questions are regarding building your own home lab. Here's what they had to say:

Why do I need real routers instead of a simulator?

You need a physical router as the simulators just don't have the ability to give you the 'hands on' you need to see what happens when you disconnect a cable or put a cable in the wrong location. You will come to find quite quickly that mistakes you make on Router 1 are affecting Router 5 all because you did not screw in a cable properly. No simulator can simulate that.

How many routers do I need?

Two routers really are required to see if anything works. If you have a very limited budget, you can receive value from only purchasing a single router over working with a simulator. However, you will not be able to see the main thing we are trying to accomplish. The propagation of route tables! The only way you can see if your configurations work, is to have at least two routers. Therefore, I strongly recommend that you purchase a dual router kit that comes with all the accessories you need. Otherwise you can spend days trying to find all the little extra pieces you need to get your lab up and running.

Do I need a switch?

Well, it is nice to have. However, with only about 2 questions on the test dedicated to 'hands on' switch knowledge, if you have to skimp on something, skimp on the switch.

What routers and switches should I buy?

Choices, choices, choices! Which 2500/2600 router do I pick? I will list some pros and cons of each router below, along with current prices (note that prices are generally lower if you buy a dual router kit instead of a single router):

1) Cisco 2501 Router with 16 MB Flash/16MB DRAM $94.99. The cheapest introduction router, and it can support a vast majority of the commands that you will need to learn for your CCNA test. All 2500 routers that we will discuss come with a minimum of two serial ports and an Ethernet port. You will need to add a transceiver to this unit to convert the Ethernet AUI port to an RJ-45 style Ethernet port.

2) Cisco 2503 Router with 16 MB Flash/16MB DRAM $119.99. This is the same as a Cisco 2501, except it adds an ISDN port so you can complete all your ISDN commands for the CCNA test. You will need to add a transceiver to convert the Ethernet AUI port to an RJ-45 style Ethernet port.

3) Cisco 2505/2507 with 16 MB Flash/16MB DRAM $109.99. The same as a Cisco 2501 except it has a built-in 8 or 16 port hub so you do not have to purchase a transceiver.

4) Cisco 2514 Router with 16 MB Flash/16MB DRAM $149.99. This router is the same as a Cisco 2501 except instead of one Ethernet port you have two. You may ask, what is the big deal? Well, you can use this as your Cable Modem/DSL Modem router. Now you can test your ability to setup a firewall and router in a live environment on the Internet. Lots of fun! You will need to add two transceivers to convert the Ethernet AUI ports to an RJ-45 style Ethernet ports.

5) Cisco 2520 Router with 16 MB Flash/16MB DRAM $119.99. This is the same as a 2503 but it also adds two more serial ports so you can use this as a frame relay switch later in your CCNA studies. It costs the same as a 2503, so this is a great money saving tip.

6) Cisco 2612 Router with 32 DRAM and 8 MB Flash $199.99. This is a modular router unlike any of the 2500 series routers. So the big benefit of this is you can buy extra modules to add functionality such as more serial ports, ISDN ports, Ethernet ports, WICs and such. However, due to the flexibility you will pay a bit more. One day it is a frame relay switch, the next it is your ISDN router. In the long run it will be cheaper than purchasing a bunch of dedicated routers for each discipline you want to learn.

7) Cisco 1912 or 1924 Switch with Enterprise Software $109.99. This is a good low cost switch.. The only draw back is it is a 10 MB switch except for the two 100 MB uplink ports. Not a big deal since you have 10 MB routers.

8) Cisco 2912 or 2924 Switch with Enterprise Software $249.99. This switch will run all the current commands needed for the test and is a full 100 MB switch.

And should you desire to sell your lab after you complete your certification, you can either negotiate a price with the vendor who sold it to you, or you can sell it yourself on ebay. It's my experience that 95% of candidates who earn their CCNA go on to pursue their CCNP within one year, though, so don't sell it too quickly.

In the end, you spend only a few hundred dollars, and you gain invaluable experience and knowledge that will help you both in your certification quest and your job performance. Having been there, I can tell you that you will learn much more from actually configuring and cabling your own equipment than you ever will from any simulation of the real thing.

To your success,

Monday, November 1, 2010

Cisco CCNA / CCNP Certification Exam Lab: Frame Relay Split Horizon and subinterfaces

Gather your Cisco CCNA and CCNP is a statement hard, and one of them is that you quickly learn that it is usually more than one way, things with Cisco routers - and while this is generally a good thing, it's better to know the pros and cons of all options when it comes to days of testing and working on production networks. Working with Frame Relay subinterfaces and split horizon is just such a situation.

One reason for using subinterfaces is to circumvent the ruleSplit Horizon. Do you remember your CCNA studies requiring Split Horizon, has announced that a path can not be ruled out, the same interface that has been learned in the first place. In this example, the hub of R1 and R2 and R3 are the spokes. All three routers using their physical interfaces for frame relay connections, and run RIPv2 172.12.123.0 / 24, each router is advertising a loopback interface, the number of routers for eachOctet.

R1 (config) # int s0

R1 (config-if) # ip address 172.12.123.1 255.255.255.0

R1 (config-if) # no frame inverse

R1 (config-if) # ip 172.12.123.2 122 broadcast frame map

R1 (config-if) # ip 172.12.123.3 123 broadcast frame map

R1 (config-if) # no shutdown

R2 (config) # int s0

R2 (config-if) # encap frame

R2 (config-if) # no frame inversion

R2 (config-if) # frame map ip 172.12.123.1 221 broadcast

R2 (config-if) # frame map ip 172.12.123.3 221Mission

R2 (config-if) # ip address 172.12.123.2 255.255.255.0

R3 (config) # int s0

R3 (config-if) # encap frame

R3 (config-if) # no frame inversion

R3 (config-if) # frame map ip 172.12.123.1 321 broadcast

R3 (config-if) # frame map ip 172.12.123.2 321 broadcast

R3 (config-if) # ip address 172.12.123.3 255.255.255.0

R1 # show ip route rip

2.0.0.0/32 is subnetted, 1 subnets

R 2.2.2.2 [120 / 1] via 172.12.123.2, 00:00:20, Serial0

3.0.0.0/32 isSubnets, 1 subnets

R 3.3.3.3 [120 / 1] via 172.12.123.3, 00:00:22, Serial0

R2 # show ip route rip

1.0.0.0/32 is subnetted, 1 subnets

R 1.1.1.1 [120 / 1] via 172.12.123.1, 00:00:06, Serial0

R3 # show ip route rip

1.0.0.0/32 is subnetted, 1 subnets

R 1.1.1.1 [120 / 1] via 172.12.123.1, 00:00:04, Serial0

The Hub Router R1 has a path for both cycles, but did not speak a route to the other spoke of loopback. This is becauseSplit horizon prevents the advertisement of a network via Serial0 when the route was learned on Serial0, R1 to start.

We have two options, one of which paid off in the horizon on the interface. This is the desired effect in our small network, disable the split horizon is not a good idea and should be avoided whenever possible. We have no intention of doing so in the lab, but here is the syntax to do this:

R1 (config) # interface Serial0

R1 (config-if) # no ipSplit horizon

A better solution is to configure subinterfaces on R1. The IP address must be revised, but that is not a problem here. R1 and R2 use to communicate 172.12.123.0 / 24, while R1 and R3 to use 172.12.13.0 / 24. Interface Serial0 R3 must be numbered, and then look at all three router configurations:

R1 (config) # interface Serial0

R1 (config-if) # encap frame

R1 (config-if) # no frame inverse-arp

R1 (config-if) # no ipAddress

R1 (config-if) # interface serial0.12 multipoint

R1 (config-if) # ip address 172.12.123.1 255.255.255.0

R1 (config-if) # ip 172.12.123.2 122 broadcast frame map

R1 (config-if) # interface serial0.31 point-to-point

R1 (config-if) # ip address 172.12.13.1 255.255.255.0

R1 (config-if) # frame interface-dlci 123

R2 (config) # int s0

R2 (config-if) # ip address 172.12.123.2 255.255.255.0

R2 (config-if) # encap frame

R2 (config-if) # ip framework map172.12.13.3 221 broadcast

R2 (config-if) # frame map ip 172.12.123.1 221 broadcast

R3 (config) # int s0

R3 (config-if) # ip address 172.12.13.3 255.255.255.0

R3 (config-if) # encap frame

R3 (config-if) # frame map ip 172.12.13.1 321 broadcast

R3 (config-if) # frame map ip 172.12.123.2 321 broadcast

A statement setting accessible map the remote IP address and local DLCI. Do not forget the option of broadcasting!

Frame Show map shows us that all the static mappingR1 and running. Note: The "static" version, these mappings are a consequence of their use are part of the map command. Pings are not visible, but all three routers can ping each other at this point.

R1 # show frame map

Serial0 (up): ip 172.12.123.2 dlci 122 (0x7A, 0x1CA0), static,

Broadcast, Cisco, status defined, active

Serial0 (up): ip 172.12.13.3 dlci 123 (0x7B, 0x1CB0), static,

Broadcast, Cisco, status defined, active

After the network 172.12.13.0 / 24R1 and R3 was added to the configuration of RIP, R2 and R3 are now mutually loopback network in its RIP routing table.

R2 # show ip route rip

1.0.0.0/32 is subnetted, 1 subnets

R 1.1.1.1 [120 / 1] via 172.12.123.1, 00:00:20, Serial0

3.0.0.0/32 is subnetted, 1 subnets

R 3.3.3.3 [120 / 1] via 172.12.123.1, 00:00:22, Serial0

R3 # show ip route rip

1.0.0.0/32 is subnetted, 1 subnets

R 1.1.1.1 [120 / 1] via 172.12.13.1, 00:00:20,Serial0

2.0.0.0/32 is subnetted, 1 subnets

R 2.2.2.2 [120 / 1] via 172.12.13.1, 00:00:22, Serial0

As you turn split horizon off is a way to reach a total of IP connectivity, may have other undesirable results. The use of subinterfaces is an effective way to see the rays so that the loopback network hub.