Monday, August 24, 2009

Purpose and Functions of Various Network Devices

It is likely that at some point you’ll have to break up one large network into a bunch of smaller ones because user response will have dwindled to a slow crawl as the network grows and grows. And with all that growth, your LAN’s traffic congestion has reached epic proportions. The answer to this is breaking up a really big network into a number of smaller ones—something called network segmentation.

You do this by using devices like routers, switches, and bridges. Figure 1.1 displays a network that’s been segmented with a switch so each network segment connected to the switch is now a separate collision domain. But make note of the fact that this network is still one broadcast domain.


Keep in mind that the hub used in Figure 1.1 just extended the one collision domain from the switch port. Here’s a list of some of the things that commonly cause LAN traffic congestion:
  • Too many hosts in a broadcast domain
  • Broadcast storms
  • Multicasting
  • Low bandwidth
  • Adding hubs for connectivity to the network
  • A bunch of ARP or IPX traffic ( IPX is a Novell protocol that is like IP but really, really chatty. Typically, it is not used in today’s networks.)

Now routers are used to connect networks together and route packets of data from one network to another. Cisco became the de facto standard of routers because of its high-quality router products, great selection, and fantastic service. Routers, by default, break up a broadcast domain -the set of all devices on a network segment that hear all the broadcasts sent on that segment. Figure 1.2 shows a router in our little network that creates an internetwork and breaks up broadcast domains.

The network in Figure 1.2 shows that each host is connected to its own collision domain, and the router has created two broadcast domains. And don’t forget that the router provides connections to WAN services as well! The router uses something called a serial interface for WAN connections, specifically, a V.35 physical interface on a Cisco router.


Breaking up a broadcast domain is important because when a host or server sends a network broadcast, every device on the network must read and process that broadcast—unless you’ve got a router. When the router’s interface receives this broadcast, it can respond by basically saying, “Thanks, but no thanks,” and discard the broadcast without forwarding it on to other networks. Even though routers are known for breaking up broadcast domains by default, it’s important to remember that they break up collision domains as well. There are two advantages of using routers in your network:
  • They don’t forward broadcasts by default.
  • They can filter the network based on layer 3 (Network layer) information (e.g., IP address).
Four router functions in your network can be listed as follows:
  • Packet switching
  • Packet filtering
  • Internetwork communication
  • Path selection

Remember that routers are really switches; they’re actually what we call layer 3 switches. Unlike layer 2 switches, which forward or filter frames, routers (layer 3 switches) use logical addressing and provide what is called packet switching . Routers can also provide packet filtering by using access lists, and when routers connect two or more networks together and use logical addressing (IP or IPv6), this is called an internetwork. Last, routers use a routing table (map of the internetwork) to make path selections and to forward packets to remote networks.

Conversely, switches aren’t used to create internetworks (they do not break up broadcast domains by default); they’re employed to add functionality to a network LAN. The main purpose of a switch is to make a LAN work better—to optimize its performance—providing more bandwidth for the LAN’s users. And switches don’t forward packets to other networks as routers do. Instead, they only “switch” frames from one port to another within the switched network.

By default, switches break up collision domains . This is an Ethernet term used to describe a network scenario wherein one particular device sends a packet on a network segment, forcing every other device on that same segment to pay attention to it. At the same time, a different device tries to transmit, leading to a collision, after which both devices must retransmit, one at a time. Not very efficient! This situation is typically found in a hub environment where each host segment connects to a hub that represents only one collision domain and only one broadcast domain. By contrast, each and every port on a switch represents its own collision domain.

The term bridging was introduced before routers, switches and hubs were implemented, so it’s pretty common to hear people referring to bridges as switches. That’s because bridges and
switches basically do the same thing—break up collision domains on a LAN (in reality, you cannot buy a physical bridge these days, only LAN switches, but they use bridging technologies, so Cisco still calls them multiport bridges).

So what this means is that a switch is basically just a multiple-port bridge with more brainpower, right? Well, pretty much, but there are differences. Switches do provide this function, but they do so with greatly enhanced management ability and features. Plus, most of the time, bridges only had 2 or 4 ports. Yes, you could get your hands on a bridge with up to 16 ports, but that’s nothing compared to the hundreds available on some switches!

Sunday, August 16, 2009

Cisco Router Components

Bootstrap
Brings up the router during initialization

POST
Checks basic functionality; hardware & interfaces

ROM monitor
Manufacturing testing & troubleshooting

Mini-IOS
Loads Cisco IOS into flash memory

RAM
Holds packet buffers, routing tables, & s/w
Stores running-config

ROM
Starts & maintains the router

Flash Memory
Holds Cisco IOS
Not erased when the router is reloaded

NVRAM
Holds router (& switch) configurations
Not erased when the router is reloaded

Configuration Register
Controls how the router boots up


Boot Sequence


1: Router performs a POST

2: Bootstrap looks for & loads the Cisco IOS

3: IOS software looks for a valid configuration file

4: Startup-config file (from NVRAM) is loaded
If startup-config file is not found, the router will start the setup mode


Configuration Registers

Configuration Meanings


Boot Field Meanings


Checking the Register Value

Changing the Configuration Register
  • Force the system into the ROM monitor mode
  • Select a boot source & default boot filename
  • Enable or disable the Break function
  • Set the console terminal baud rate
  • Load operating software from ROM
  • Enable booting from a TFTP server

Changing the Configuration Register


Recovering Passwords

1: Boot the router & interrupt the boot sequence by performing a break
2: Change the configuration register to turn on bit 6 (0x2142)
3: Reload the router
4: Enter the privileged mode
5: Copy the startup-config to running-config
6: Change the password
7: Reset the configuration register to the default value
8: Reload the router


Recovering Passwords:

1: Boot the router & interrupt the boot sequence by performing a break using the Ctrl+Break key combination.

You may need to upgrade your version of hyper-terminal in order for this to work successfully.

2: Change the configuration register to turn on bit 6 (0x2142)
rommon>confreg 0x2142
You must reset or power cycle for new config to take effect

3: Reload the router
Type reset
The router will reload & ask if you want to enter setup mode
Answer NO

4: Enter the privileged mode
Router>enable
Router#

5: Copy the startup-config to running-config
Router#copy startup-config running-config

6: Change the password
Router#config t
Router(config)#enable secret cisco

7: Reset the configuration register to the default value
Router(config)#config-register 0x2102

8: Reload the router


Backing up the Cisco IOS


Restoring or Upgrading the Cisco IOS

Backing up the Configuration


Restoring the Configuration

Sunday, August 9, 2009

Cisco Router IOS

  • Carries network protocols and functions
  • Connects high-speed traffic between devices
  • Adds security to control access
  • Provides scalability for growth
  • Supplies reliability

Connecting To A Cisco Router


Cisco 2811


Cisco 1841


Bringing up a Router

Boot-up process:

1: POST
2: Looks for the Cisco IOS from Flash memory
3: IOS loads & looks for a valid configuration;
startup-config
stored in nonvolatile RAM (NVRAM)
4: If a valid config is not found in NVRAM: setup mode


Logging into the Router

User mode:
Router>
Used mostly to view statistics

Privileged mode:
Router#
Used to view & change router configuration


Overview of Router Modes


Global changes:

config terminal or config t
Changes made to running-config (DRAM)
To change the startup-config (NVRAM)

config memory or config mem

Note: Any configuration changes need to be placed into RAM. Typing config mem or config net (from a TFTP host) will append the current running-config


Editing & Help Features


Enhanced Editing Commands



Router Command History


Gathering Basic Routing Information


Administrative Functions

The administrative functions that you can configure on a router and switch are
  • Hostnames
  • Banners
  • Password
  • Interface descriptions

Hostnames & Descriptions

Hostnames
Router(config)#hostname todd
todd(config)#

Descriptions
Atlanta(config)#int e0
Atlanta(config-if)#description Sales Lan


Banners

Purpose

Types
  • exec
  • incoming
  • login
  • motd
Delimiting character


Setting the Passwords

5 passwords:

1st two used to set your enable password
Used to secure privileged mode; Router>enable

Other three are used to configure a password in user mode via:
  • console port
  • auxiliary port
  • Telnet

Passwords
Enable passwords
Router(config)#enable password cisco
Router(config)#enable secret cisco

Auxiliary Password
Console Password
Telnet Password

Encrypting Your Password
Router(config)#service password-encryption


Interface Descriptions

Setting descriptions on an interface is helpful to the administrator and, like the hostname, only locally significant. The description command is a helpful one because you can, for instance, use it to keep track of circuit numbers.

Here’s an example:
Atlanta(config)#int e0
Atlanta(config-if)#description Sales Lan
Atlanta(config-if)#int s0
Atlanta(config-if)#desc Wan to Miami circuit:6fdda4321

You can view the description of an interface either with the show running-config command or the show interface command.


Router Interfaces

Bringing up an Interface
no shutdown
shutdown
show interface

Configuring an IP Address on an Interface
Router(config)#int e0
Router(config-if)#ip address 172.16.10.2 255.255.255.0
Router(config-if)#no shut

Serial Interface Commands
clock rate & bandwidth (entered in kilobits)


Viewing, & Saving Configurations

Viewing & Saving Configurations
running-config saved in DRAM
startup-config saved in NVRAM
copy run start
sh run
sh start
erase startup-config


Verifying Your Configuration
  • show running-config
  • show startup-config
  • ping
  • show cdp nei detail
  • trace
  • telnet
Verifying with the show interface command
Router#show interface ?

Verifying with the show ip interface command
Router#show ip interface
Router#show ip interface brief
Router#show controllers