When a router boots up, it performs a series of steps, called the boot sequence, to test the hardware and load the necessary software. The boot sequence consists of the following steps:
1. The router performs a POST. The POST tests the hardware to verify that all components of the device are operational and present. For example, the POST checks for the different interfaces on the router. The POST is stored in and run from ROM (read-only memory).
2. The bootstrap looks for and loads the Cisco IOS software. The bootstrap is a program in ROM that is used to execute programs. The bootstrap program is responsible for finding where each IOS program is located and then loading the file. By default, the IOS software is loaded from flash memory in all Cisco routers.
3. The IOS software looks for a valid configuration file stored in NVRAM. This file is called startup-config and is only there if an administrator copies the running-config file into NVRAM.
4. If a startup-config file is in NVRAM, the router will load and run this file. The router is now operational. If a startup-config file is not in NVRAM, the router will start the setup-mode configuration upon bootup.
In: Networking
29 Apr 2009You known about Cisco’s three-layer hierarchical model for network design: core layer, distribution layer, and access layer. Once you have designed your network and have decided on the types of devices you’ll be using at each of the three layers, you must then pick a specific product for each of these devices. When choosing a networking product, consider the following:
- Is the product easy to install and support?
- Does the product provide the necessary features/functions to meet your networking requirements?
- Does the product support enough ports and offer enough backplane capacity to meet your network’s growth and bandwidth requirements?
- Is the product reliable, and can it provide redundancy?
- If it is a layer-3 device, does the product provide support for both mobile users and branch office connections?
- Can the product be easily upgraded, protecting your investment in the product?
If you are implementing a WAN solution, you should consider the following when making a choice:
- Make sure the solution is cost-effective.
- Make sure the service you want to use is available in the location where you will be installing it. Some services, such as ATM, DSL, and ISDN, are not available in all areas.
- Make sure the solution you choose provides the necessary amount of bandwidth for your user’s needs.
In: Networking
28 Apr 2009Using the ping Command
To see all the different protocols that you can use with the ping program, type ping ? :
Router#ping ?
WORD Ping destination address or hostname
apollo Apollo echo
appletalk Appletalk echo
clns CLNS echo
decnet DECnet echo
ip IP echo
ipx Novell/IPX echo
srb srb echo
tag Tag encapsulated IP echo
vines Vines echo
xns XNS echo
<cr>
The ping output displays the minimum, average, and maximum times it takes for a ping packet to find a specified system and return. Here’s an example:
Router#ping RouterA
Translating “RouterA”…domain server (192.168.0.1)[OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
Router#
You can see that the DNS server was used to resolve the name, and the device was pinged in 32ms (milliseconds).
Using the traceroute Command
Traceroute (the traceroute command, or trace for short) shows the path a packet takes to get to a remote device. To see the protocols that you can use with the traceroute command, type traceroute ? :

You can connect to a Cisco router to configure it, verify its configuration, and check statistics. There are different ways to do this, but most often, the first place you would connect to is the console port. The console port is usually an RJ-45 (8-pin modular) connection located at the back of the router–by default, there’s no password set.
You can also connect to a Cisco router through an auxiliary port–which is really the same thing as a console port, so it follows that you can use it as one. But this auxiliary port also allows you to configure modem commands so that a modem can be connected to the router. This is a cool feature—it lets you dial up a remote router and attach to the auxiliary port if the router is down and you need to configure it “out-of-band” (meaning “out-of-the-network”). “In-band” means the opposite—configuring the router through the network.
The third way to connect to a Cisco router is in-band, through the program Telnet. Telnet is a terminal emulation program that acts as though it’s a dumb terminal. You can use Telnet to connect to any active interface on a router, such as an Ethernet or serial port.

When you first bring up a Cisco router, it will run a power-on self-test (POST). If it passes, it will then look for and load the Cisco IOS from flash memory–if an IOS file is present. (Just in case you don’t know, flash memory is an electronically erasable programmable read-only memory– an EEPROM.) After that, the IOS loads and looks for a valid configuration–the startup-config– that’s stored by default in nonvolatile RAM, or NVRAM. The following messages appear when you first boot or reload a router:
System Bootstrap, Version 12.2(13)T, RELEASE SOFTWARE (fc1)
Copyright (c) 2000 by cisco Systems, Inc.
C2600 platform with 32768 Kbytes of main memory
This is the first part of the router boot process output. It’s information about the bootstrap program that first runs the POST, and then tells the router how to load, which by default is to find the IOS in flash memory.
The next part shows us that the IOS is being decompressed into RAM:
program load complete, entry point: 0×80008000, size:
0×43b7fc
Self decompressing the image :
###############################
###########################
################### [OK]

Before you upgrade or restore a Cisco IOS, you really should copy the existing file to a TFTP host as a backup just in case the new image crashes and burns.
And you can use any TFTP host to accomplish this. By default, the flash memory in a router is used to store the Cisco IOS. In this page describe how to check the amount of flash memory, how to copy the Cisco IOS from flash memory to a TFTP host, and how to copy the IOS from a TFTP host to flash memory.
But before you back up an IOS image to a network server on your intranet, you’ve got to do these three things:
1. Make sure you can access the network server.
2. Ensure that the network server has adequate space for the code image.
3. Verify the file naming and path requirement.
And if you have a laptop Ethernet port directly connected to a router’s Ethernet interface, as shown in Figure as below, you need to verify the following before attempting to copy the image to or from the router:


Backing Up the Cisco Router Configuration
To copy the router’s configuration from a router to a TFTP server, you can use either the copy running-config tftp or the copy startup-config tftp command. Either one will back up the router configuration that’s currently running in DRAM, or that’s stored in NVRAM.
Verifying the Current Configuration
To verify the configuration in DRAM, use the show running-config command (sh run for short) like this:
Router#sh run
Building configuration…
Current configuration:
!
version 12.0
The current configuration information indicates that the router is now running version 12.0 of the IOS.
Verifying the Stored Configuration
Next, you should check the configuration stored in NVRAM. To see this, use the show startup-config command (sh start for short) like this:
Router#sh start
Using 366 out of 32762 bytes
!
version 11.2
The second line shows you how much room your backup configuration is using. Here, we can see that NVRAM is 32KB and that only 366 bytes of it are used.

In this Example will open ports for need to use out of using will close it alls.
This case no have inside (internal) server.
Step for setting Up :
Router#conf t
Router(config)#access-list 100 permit tcp any any range 20 23
Router(config)#access-list 100 permit tcp any any eq 25
Router(config)#access-list 100 permit tcp any any eq 53
Router(config)#access-list 100 permit tcp any any eq 80
Router(config)#access-list 100 permit tcp any any eq 110
Router(config)#access-list 100 permit tcp any any eq 143
Router(config)#access-list 100 permit tcp any any eq 443
Router(config)#access-list 100 permit udp any any eq 53
Router(config)#access-list 100 permit udp any any eq 161
Router(config)#access-list 100 permit tcp any any eq 3306
Router(config)#access-list 100 permit icmp any any echo
Router(config)#access-list 100 deny ip any any
Router(config)#int f0
Router(config-if)#ip access-group 100 in
This case : have inside (internal server)
Server IP for this case as below :
Web Server : 202.129.49.194
FTP Server : 202.129.49.195
DNS Server : 202.129.49.196
Mail Server : 202.129.49.197
Step for Setting Up :
In: Networking
25 Apr 2009Before delving into the mechanics of how information is transferred between computers, you must grow familiar with the terminology used to describe the transmitted data. Many of the layers of the OSI Reference Model use their own specific terms to describe data transferred back and forth. As this information is passed from higher to lower layers, each layer adds information to the original data typically a header and possibly a trailer. This process is called encapsulation. Generically speaking, the term protocol data unit (PDU) is used to describe data and its overhead. Table as below describes the terms used at the various layers of the OSI Reference Model. For instance, as data is passed from the session layer to the transport layer, the transport layer encapsulates the data PDU in a transport layer segment. For TCP and UDP in the TCP/IP protocol stack, the transport layer only adds a header.
|
Term
|
OSI Reference Model Layer
|
| Data | Application, presentation, and session layers |
| Segment | Transport layer |
| Packet | Network layer (TCP/IP calls this a datagram) |
| Frame | Data link layer |
| Bits | Physical layer |
As the PDU information is passed down, each layer adds its own header and, possibly, trailer.