Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (2.37 MB, 128 trang )
<span class='text_page_counter'>(1)</span><div class='page_container' data-page=1></div>
<span class='text_page_counter'>(2)</span><div class='page_container' data-page=2>
<b>- Erasable reprogrammable ROM</b>
<b>- Contents are kept on Power down or reload</b>
<b>- Routing Tables</b>
<b>- Running Configuration</b>
<b>- Contents are lost on reboot</b>
Random Access Memory, also called dynamic RAM (DRAM)
RAM has the following characteristics and functions:
Stores routing tables
Holds ARP cache
Performs packet buffering (shared RAM)
Provides temporary memory for the configuration file of
the router while the router is powered on
Interfaces have the following characteristics and functions:
Connect router to network for frame entry and exit
Can be on the motherboard or on a separate module
Types of interfaces:
Ethernet
Fast Ethernet
Serial
ISDN BRI
<b>Checks All interfaces</b>
<b>RAM</b>
<b>14</b>
<b>15</b> <b><sub>13 12</sub>11</b> <b><sub>10</sub></b> <b>9 8</b> <b>7</b> <b>6</b> <b>5 4</b> <b>3</b> <b><sub>2</sub></b> <b>1 0</b>
<b>4</b>
<b>8</b> <b><sub>2 1</sub></b> <b>8</b> <b><sub>4</sub></b> <b>2 1</b> <b>8</b> <b>4</b> <b>2 1</b> <b>8</b> <b><sub>4</sub></b> <b>2 1</b>
After the POST, the following events occur as the router initializes:
<b>Step 1</b>
The generic bootstrap loader in ROM executes. A bootstrap is a simple set of instructions that
tests hardware and initializes the IOS for operation.
<b>Step 2</b>
The IOS can be found in several places. The boot field of the configuration register determines
the location to be used in loading the IOS.
<b>Step 3</b>
The operating system image is loaded.
<b>Step 4</b>
Take the following steps to connect a terminal to the console port on the router:
First, connect the terminal using the RJ-45 to RJ-45 rollover cable and an RJ-45 to
DB-9 or RJ-45 to DB-25 adapter.
The Cisco command-line interface (CLI) uses a hierarchical structure. This structure
requires entry into different modes to accomplish particular tasks.
Each configuration mode is indicated with a distinctive prompt and allows only
commands that are appropriate for that mode.
All command-line interface (CLI) configuration changes to a Cisco router are made
from the global configuration mode. Other more specific modes are entered
depending upon the configuration change that is required.
Global configuration mode commands are used in a router to apply configuration
statements that affect the system as a whole.
The following command moves the router into global configuration mode
Router#<b>configure terminal (or config t)</b>
Router(config)#
When specific configuration modes are entered, the router prompt changes to
indicate the current configuration mode.
<b>wg_ro_a#show version</b>
<b>Cisco Internetwork Operating System Software </b>
<b>IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fc1)</b>
<b>Copyright (c) 1986-1999 by cisco Systems, Inc.</b>
<b>Compiled Mon 08-Feb-99 18:18 by phanguye</b>
<b>Image text-base: 0x03050C84, data-base: 0x00001000</b>
<b>ROM: System Bootstrap, Version 11.0(10c), SOFTWARE</b>
<b>BOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE(fc1)</b>
<b>wg_ro_a uptime is 20 minutes</b>
<b>System restarted by reload</b>
<b>System image file is "flash:c2500-js-l_120-3.bin"</b>
<i><b>(output omitted)</b></i>
<b></b>
<b>Using 1359 out of 32762 bytes</b>
<b>!</b>
<b>version 12.0</b>
<b>!</b>
<b> More </b>
<b>--wg_ro_c#show running-config</b>
<b>Building configuration...</b>
<b>Current configuration:</b>
<b>!</b>
<b>version 12.0</b>
<b>!</b>
<b> More </b>
<b>--In NVRAM</b>
<b>In RAM</b>
Configurations in two locations - RAM and NVRAM.
•The running configuration is stored in RAM.
•Any configuration changes to the router are made to the
running-configuration and take effect immediately after the
command is entered.
•The startup-configuration is saved in NVRAM and is loaded into
the router's running-configuration when the router boots up.
• To save the running-configuration to the startup configuration,
type the following from privileged EXEC mode (i.e. at the
"Router#" prompt.)
A router should be given a unique name as one of the first
configuration tasks.
This task is accomplished in global configuration mode using
the following commands:
Router(config)#hostname Gates
Gates(config)#
connected terminals.
Enter global configuration mode by using the command <b>config t</b>
Enter the command
<b>banner motd # Welcome to Gates Training #</b>.
Passwords restrict access to routers.
Passwords should always be configured for virtual terminal
lines and the console line.
Passwords are also used to control access to privileged EXEC
A password must be set on one or more of the virtual
terminal (VTY) lines for users to gain remote access to the
router using Telnet.
Typically Cisco routers support five VTY lines numbered 0
Only the enable secret password is encrypted by default
Need to manually configure the user-mode and enable
passwords for encryption
To manually encrypt your passwords, use the service
password-encryption command
Router#config t
<b>20.0.0.1</b> <b><sub>20.0.0.2</sub></b> <b><sub>30.0.0.1</sub></b>
R1(config)#<b>int e0</b>
R1(config-if)#<b>description Sales Lan</b>
R1(config-if)#<b>int s0</b>
The DCE end of a serial interface needs a clock rate.
R1#<b>config t</b>
R1(config)#<b>int e0</b>
R1(config)#<b>Description Connoted to Host </b>
R1(config-if)#<b>ip address 10.0.0.1 255.0.0.0</b>
R1(config-if)#<b>no shutdown</b>
R1(config-if)#<b>exit</b>
R1(config)#<b>interface serial 0</b>
R1(config-if)#<b>ip address 20.0.0.1 255.255.255.0</b>
R1(config-if)# bandwidth 64
R1(config-if)#<b>clock rate 64000 (required for serial DCE only) </b>
R1(config-if)#<b>no shutdown</b>
R1(config-if)#<b>exit</b>
R1(config)#<b>exit</b>
R1#
To Check the status of interface
#Show IP interface brief
or
To copy RAM to NVRAM
# copy run startup-config
To remove all configuration
Distinguish the use and operation of static and dynamic
routes
Configure and verify a static route
Identify how distance vector IP routing protocols such as
RIP and IGRP operate on Cisco routers
Enable Routing Information Protocol (RIP)
The process of transferring data from one local area
network to another
Layer 3 devices
Routed protocol Enables to forward packet from one
router to another – Ex – IP, IPX
Routing protocol sends and receives routing
information packets to and from other routers – Ex
-RIP, OSPF , IGRP
Routing protocols gather and share the routing
information used to maintain and update routing
tables.
That routing information is in turn used to route a
From
Raj
House #213, 4th Street
Jayanagar, Bangalore
To
Ram
<b>Network</b>
<b>Protocol</b>
<b>Destination</b>
<b>Network</b>
<b>Connected</b>
<b>Learned</b> <b>10.120.2.0172.16.1.0</b>
<b>Exit </b>
<b>Interface</b>
<b>E0</b>
<b>S0</b> <b>Routed Protocol: IP</b>
<b>172.16.1.0</b>
<b>10.120.2.0</b>
<b>E0</b>
Static routing - network administrator configures
information about remote networks manually. They are
used to reduce overhead and for security.
Dynamic routing - information is learned from other
routers, and routing protocols adjust routes
automatically.
Because of the extra administrative requirements, static
Step-by-step what happens when Host A wants to
communicate with Host B on a different network
<b>E0</b> <b>E1</b>
<b>10.0.0.1</b>
<b>10.0.0.2</b> <b>A</b> <b>B</b> <b>20.0.0.2</b>
<b>20.0.0.1</b> <b><sub>20.0.0.2</sub></b> <b><sub>30.0.0.1</sub></b>
• Host A can ping router R1 and R2
<sub>No overhead on the router CPU </sub>
<sub>No bandwidth usage between routers </sub>
<sub> Adds security </sub>
– <b>R1(config)# iproute DestAddress SNM Nexthop address</b>
<b>R1(config)#ip route </b><i><b>network </b></i><b>[</b><i><b>mask</b></i><b>] </b>
<b>{</b><i><b>address </b></i><b>| </b><i><b>interface</b></i><b>}[</b><i><b>distance</b></i><b>] [permanent]</b>
<b>ip route </b>The command used to create the static route.
<b>destination_network </b>The network you’re placing in the routing table.
<b>mask </b>The subnet mask being used on the network.
<b>next-hop_address </b>The address of the next-hop router that will receive the packet
and forward it to the remote network. This is a router interface that’s on a directly
connected network.
<b>exitinterface </b>You can use it in place of the next-hop address if you want, but it’s
got to be on a point-to-point link, such as a WAN
<b>administrative_distance </b>By default, static routes have an administrative distance
of 1 (or even 0 if you use an exit interface instead of a next-hop address)
<b>permanent </b>If the interface is shut down, or the router can’t communicate to the
next-hop router, the route will automatically be discarded from the routing table.
<b>ip route [destination_network] [mask] [next-hop_address or exitinterface]</b>
<b> [administrative_distance] [permanent</b>
<b>20.0.0.1</b> <b><sub>20.0.0.2</sub></b> <b><sub>30.0.0.1</sub></b>
<b>A</b>
<b>S0</b>
<b>E0</b>
<b>40.0.0.2</b>
<b>40.0.0.1</b>
<b>B</b>
<b>S1</b>
R1# config t
R1(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.2
R1(config)#ip route 40.0.0.0 255.0.0.0 20.0.0.2
R2# config t
R2(config)#ip route 10.0.0.0 255.0.0.0 20.0.0.1
R2(config)#ip route 40.0.0.0 255.0.0.0 30.0.0.2
R3# config t
After static routes are configured it is important to verify
that they are present in the routing table and that routing is
working as expected.
The command <b>show running-config</b> is used to view the
active configuration in RAM to verify that the static route was
entered correctly.
The <b>show ip route</b> command is used to make sure that the
<b>S0</b> <b><sub>S0</sub></b>
<b>E0</b>
<b>10.0.0.1</b>
<b>10.0.0.2</b>
<b>30.0.0.2</b>
<b>20.0.0.1</b> <b><sub>20.0.0.2</sub></b> <b><sub>30.0.0.1</sub></b>
<b>A</b>
R1# config t
R1(config)#no ip route 30.0.0.0 255.0.0.0 20.0.0.2
R1(config)#no ip route 40.0.0.0 255.0.0.0 20.0.0.2
R2# config t
R2(config)#no ip route 10.0.0.0 255.0.0.0 20.0.0.1
R2(config)#no ip route 40.0.0.0 255.0.0.0 30.0.0.2
R3# config t
R3(config)#no ip route 10.0.0.0 255.0.0.0 30.0.0.1
R3(config)#no ip route 20.0.0.0 255.0.0.0 30.0.0.1
• Can only use default routing on stub networks
• Stub networks are those with only one exit path out of
the network
• The only routers that are considered to be in a stub
<b>Stub Network</b>
<b>ip route 0.0.0.0 0.0.0.0 172.16.2.2</b>
This route allows the stub network to reach all known
Default routes are used to route packets with destinations that do not
match any of the other routes in the routing table.
A default route is actually a special static route that uses this format:
ip route 0.0.0.0 0.0.0.0 [next-hop-address | outgoing interface]
This is sometimes referred to as a “Quad-Zero” route.
Example using next hop address:
<b>R2# config t</b>
Routing protocols are
used between
routers to determine
paths and maintain
routing tables.
Once the path is
determined a router can
route a routed protocol.
<b>Network</b>
<b>Protocol</b> <b>DestinationNetwork</b>
<b>Connected</b>
<b>RIP</b>
<b>IGRP</b>
<b>10.120.2.0</b>
<b>172.16.2.0</b>
<b>172.17.3.0</b>
<b>Exit </b>
<b>Interface</b>
<b>E0</b>
<b>S0</b>
<b>S1</b>
<b>Routed Protocol: IP</b>
<b>172.17.3.0</b>
<b>172.16.1.0</b>
<b>10.120.2.0</b>
<b>E0</b>
<b>Autonomous System</b>
<b>AS 2000</b>
<b>AS 3000</b>
<b>IGP</b>
Interior Gateway Protocols are
used for routing decisions
Exterior Gateway
Protocols are used
for routing between
Autonomous Systems
<b>EGP</b>
<b>AS 1000</b>
An Autonomous System (AS) is a group of IP networks, which has a
single and clearly defined routing policy.
Group of routers which can exchange updates
<sub>AS are identified by numbers</sub>
<b>All Routing protocols are categorized as IGP or EGP</b>
<b>IGP</b>
<b>Interior Gateway Protocol</b>
<b>(IGP)</b>
<b>Exterior Gateway </b>
<b>Protocol (EGP)</b>
<b>EGP</b>
<b>EGP</b>
<b>EGP</b>
An autonomous system is a collection of networks under a
common administrative domain.
Distance Vector
RIP V1
IGRP
RIP V2
Link state
OSPF
Hybrid
Classful routing protocols do not include the subnet mask with the
route advertisement.
Within the same network, consistency of the subnet masks is
Summary routes are exchanged between foreign networks.
Examples of classful routing protocols:
RIP Version 1 (RIPv1)
Classless routing protocols include the subnet mask with
the route advertisement.
Classless routing protocols support variable-length
subnet masking (VLSM) and subnetting
Examples of classless routing protocols:
RIP Version 2 (RIPv2)
EIGRP
OSPF
• Routers pass periodic copies of routing table to neighbor
Uses Bellman Ford Algorithm
It needs to find out the shortest path from one network to other
How to determine which path is best?
There are two Distance Vector Protocol, Both uses different metric
RIP – Hops
IGRP - Composite
<b>192.168.10.1</b>
DV protocol are known as Routing by rumor
RIP uses only Hop count
<b>192.168.10.1</b>
<b>192.168.20.1</b>
<b>56 kbps</b>
<b>1 Mbps</b> <b>1 Mbps</b>
<b>1 Mbps</b>
<b>56 kbps</b>
• IGGRP uses bandwidth and delay as Metric
• RI routing table metric for 192.168.20.1 network will be
• Routers discover the best path to
destinations from each neighbor.
• Slow convergence produces inconsistent routing.
• <b>Router A updates its table to reflect the new but </b>
<b>erroneous hop count.</b>
• <b>Packets for network 10.4.0.0 bounce (loop) between </b>
<b>routers B and C.</b>
• One way of solving routing loop problem is to define a
maximum hop count.
• RIP permits a hop count of up to 15, so anything that
requires 16 hops is deemed unreachable
• Route Poisoning. Usually used in conjunction with split
horizon
• Route poisoning involves explicitly poisoning a routing
table entry for an unreachable network
• Once Router C learned that network 10.4.0.0 was
unavailable it would have immediately poisoned the
route to that network by setting its hop count to the
routing protocol’s infinity value
New routing tables are sent to neighboring routers on a regular basis.
RIP updates occur every 30 seconds
However a triggered update is sent immediately in response to some
change in the routing table.
The router that detects a topology change immediately sends an update
message to adjacent routers that, in turn, generate triggered updates
notifying their adjacent neighbors of the change.
• Holddowns are a technique used to ensure that a route recently
removed or changed is not reinstated by a routing table update
from another route
• Holddown prevents regular update messages from reinstating a
route that is going up and down (called flapping)
• Holddowns prevent routes from changing too rapidly by allowing
time for either the downed route to come back up
<b>192.168.10.1</b>
<b>192.168.20.1</b>
<b>1Mbps</b> <b>1Mbps</b>
<b>56kbps</b>
• <b>Route update timer</b> Sets the interval (typically 30 seconds)
between periodic routing updates
• <b>Route invalid timer</b> Determines the length of time (180 seconds)
before a router determines that a route has become invalid
• <b>Holddown timer</b> This sets the amount of time during which
routing information is suppressed. This continues until either an
update packet is received with a better metric or until the holddown
timer expires. The default is 180 seconds
Routing Information Protocol (RIP) is a true distance-vector routing
protocol.
It sends the complete routing table out to all active interfaces every
30 seconds
RIP only uses hop count to determine the best way to a remote
network
It has a maximum allowable hop count of 15
AD is 120
Bellman-ford algorithm
Works well in small networks, but it’s inefficient on large networks
RIP version 1 uses only classful routing, which means that all
devices in the network must use the same subnet mask
The <b>router</b> command starts a routing process.
The <b>network</b> command is required because it enables the
routing process to determine which interfaces participate in
the sending and receiving of routing updates.
An example of a routing configuration is:
Gates(config)#<b>router rip</b>
<b>R1# config t</b>
<b>R1(config)# )#router rip</b>
<b>R1(config)#network 192.168.10.0</b>
<b>R1(config)#network 192.168.20.0</b>
<b>R2# config t</b>
<b>R2(config)#router rip</b>
<b>R2(config)#network 192.168.20.0</b>
<b>R2(config)#network 192.168.30.0</b>
<b>192.168.10.2</b>
<b>R3# config t</b>
<b>R3(config)# )#router rip</b>
Passive-interface command prevents RIP update
broadcasts from being sent out a defined interface, but
same interface can still receive RIP updates
R1#config t
R1(config)#router rip
R1(config-router)#network 192.168.10.0
R1(config-router)#passive-interface serial 0
Passive-interface command depends upon the routing
protocol
RIP router with a passive interface will still learn about
the networks advertised by other routers
EIGRP, a passive-interface will neither send nor receive
<b>S0</b> <b>S0</b>
<b>E0</b>
<b>E0</b>
<b>192.168.0.16/29</b>
A B
<b>S0</b> <b>S1</b>
<b>192.168.0.4/30</b> <b>192.168.0.8/30</b>
<b>192.168.0.32/28</b>
<b>R2# config t</b>
<b>R2(config)#router rip</b>
<b>R2(config)#network 192.168.0.4</b>
<b>R2(config)#network 192.168.0.8</b>
<b>R2(config)#version 2</b>
<b>R1# config t</b>
<b>R1(config)# )#router rip</b>
<b>R1(config)#network 192.168.0.4</b>
<b>R1(config)#network 192.168.0.16</b>
<b>R1(config)#version 2</b>
<b>R3# config t</b>
<b>R3(config)# )#router rip</b>
<sub>CISCO Proprietary</sub>
<sub>More scalable than RIP</sub>
Bandwidth
Delay
Some of the IGRP key design characteristics emphasize the following:
It is a distance vector routing protocol.
Routing updates are broadcast every 90 seconds.
Bandwidth, load, delay and reliability are used to create a
composite metric.
<b>R1# config t</b>
<b>R1(config)# )#router igrp 10</b>
<b>R2# config t</b>
<b>R2(config)#router igrp 10</b>
<b>R2(config)#network 192.168.20.0</b>
<b>R3# config t</b>
LabA#<b>sh ip route</b>
[output cut]
I 192.168.50.0 [100/170420] via 192.168.20.2, Serial0/0
I 192.168.40.0 [100/160260] via 192.168.20.2, Serial0/0
I 192.168.30.0 [100/158360] via 192.168.20.2, Serial0/0
C 192.168.20.0 is directly connected Serial0/0
C 192.168.10.0 is directly connected, FastEthernet0/0
• The I means IGRP-injected routes. The 100 in [100/160360] is the
administrative distance of IGRP. The 160,360 is the composite
metric. The lower the composite metric, the better the route.
debug ip igrp events Command
summary of the IGRP routing information that is running on the
network.
debug ip igrp transactions Command