Академический Документы
Профессиональный Документы
Культура Документы
Routing Concepts
Tariq Bader
CCIE # 35627
Security/VPN team
Cisco TAC
Presentation_ID © 2010 Cisco Systems, Inc. All rights reserved. Cisco Confidential 1
Agenda
Introduction to Routers
Static Routing
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 2
Routers
Introduction to Routers
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3
Why Router?
The router is responsible for the routing of traffic between
networks.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 4
Routers
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 5
Routers
Routers use specialized ports and network interface cards to
interconnect to other networks.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 6
Router Functions – Interconnect Networks
Routers can connect multiple networks.
Routers have multiple interfaces, each on a different IP network.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 7
Router Functions – Choose Best Paths
Routers use static
routes and dynamic
routing protocols to
learn about remote
networks and build
their routing tables.
Routers use routing
tables to determine
the best path to
send packets.
Routers encapsulate
the packet and
forward it to the
interface indicated
in routing table.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 8
Router Packet Forwarding Methods
Process switching – An older
packet forwarding
mechanism still available for
Cisco routers.
Fast switching – A common
packet forwarding
mechanism which uses a
fast-switching cache to store
next hop information.
Cisco Express Forwarding
(CEF) – The most recent,
fastest, and preferred Cisco
IOS packet-forwarding
mechanism. Table entries
are not packet-triggered like
fast switching but change-
triggered
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 9
IP Addresses & Default Gateways
To enable network
access devices must be
configured with the
following IP address
information
o IP address - Identifies a
unique host on a local
network.
o Subnet mask -
Identifies the host’s
network subnet.
o Default gateway -
Identifies the router
that a packet is sent to
when the destination is
not on the same local
network subnet.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 10
IP Address Assigning Methods
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 11
Router LEDs
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 12
Router Console Access
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 13
IOS CLI
Router Basic Configuration
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 14
Configure Basic Router Settings
Name the device
Secure management access
Configure a banner
Save the Configuration
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 15
Configure an IPv4 Router Interface
To be available, a router
interface must be:
o Configured with an
address and subnet
mask .
o Must be activated using
no shutdown command.
By default LAN and WAN
interfaces are not
activated.
o Serial cable end labeled
DCE must be configured
with the clock
rate command.
o Optional description can
be included.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 16
Configure a Loopback Interface
A loopback interface is a
logical interface that is
internal to the router:
o It is not assigned to a
physical port, it is
considered a software
interface that is
automatically in an UP
state.
o A loopback interface is
useful for testing.
o It is important in the
OSPF routing process.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 17
Verify Interface Settings
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 18
Verify Interface Settings
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 19
Verify The Directly Connected Networks
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 20
Filter Show Command Output
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 21
Command History Feature
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 22
Routing
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 23
Routing Packets Between Networks
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 24
Routing Packets Between Networks (Cont.)
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 25
Routing Packets Between Networks (Cont.)
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 26
Routing Packets Between Networks (Cont.)
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 27
Routing Decision Process
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 28
Path Determination – Best Path
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 29
Path Determination – Administrative Distance
If multiple paths to a destination are configured on a router,
the path installed in the routing table is the one with the
lowest Administrative Distance (AD):
o A static route with an AD of 1 is more reliable than an EIGRP-
discovered route with an AD of 90.
o A directly connected route with an AD of 0 is more reliable than a
static route with an AD of 1.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 30
The Routing Table
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 31
The Routing Table
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 32
The Routing Table
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 33
The Routing Table
Interpreting the entries in the routing table.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 34
Directly Connected Routes
A newly deployed
router, without any
configured interfaces,
has an empty routing
table.
An active, configured,
directly connected
interface creates two
routing table entries:
o Link Local (L)
o Directly Connected
(C)
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 35
Directly Connected Routes
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 36
Static Routes
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 38
Dynamic Routing
Dynamic routing is used by routers to share information
about the reachability and status of remote networks. It
performs network discovery and maintains routing tables.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 39
Dynamic Routing – IPv4 Routing Protocols
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 40
Dynamic Routing – IPv4 Routing Protocols
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 41
Routing
Static Routing
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 42
Static Routing Advantages
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 43
Static Routing Disadvantages
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 44
Static Route Applications
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 45
Types of Static Routes
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 46
Standard Static Route
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 47
Default Static Route
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 48
Summary Static Route
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 49
Floating Static Route
Floating static routes are
static routes that are used
to provide a backup path to
a primary static or dynamic
route, in the event of a link
failure.
The floating static route is
only used when the primary
route is not available.
To accomplish
this, the floating static
route is configured with
a higher administrative
distance than the primary
route.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 50
Configure IPv4 Static Routes
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 51
Configure IPv4 Default Static Route
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 52
Next-Hop Options
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 53
Configure a Next-Hop Static Route
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 54
Configure Directly Connected Static Route
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 55
Configure a Fully Specified Static Route
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 56
Configure a Default Static Route
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 57
Configure a Floating Static Route
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 58
Verify a Default Static Route
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 59
Verify & Troubleshoot a Static Route
ping
traceroute
show ip route
show ip route static
show ip route network
show ip interface brief
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 60
Q&A
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 61
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 62