ca ex s2m02 static routing
TRANSCRIPT
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 1/88
Chapter 2 - Static Routing
CCNA Ex loration 4.0
Please purchase apersonal license.
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 2/88
Objectives
• Define the general role a router plays in networks.
• Describe the directly connected networks, different router
interfaces• Examine directly connected networks in the routing table
and use the CDP protocol
Hc vin mng Bach Khoa - Website: www.bkacad.com 2
• Describe summary and default route
• Examine how packets get forwarded when using staticroutes
• Identify how to manage and troubleshoot static routes
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 3/88
Labs
Hc vin mng Bach Khoa - Website: www.bkacad.com 3
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 4/88
Routers and Network
Hc vin mng Bach Khoa - Website: www.bkacad.com 4
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 5/88
Role of the Router
• The router is a special-purpose computer that plays a key role in theoperation of any data network.
• Routers are primarily responsible for interconnecting networks by:
1. Determining the best path to send packets
2. Forwarding packets toward their destination
Hc vin mng Bach Khoa - Website: www.bkacad.com 5
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 6/88
Introducing the topology
• Topology Lab
Hc vin mng Bach Khoa - Website: www.bkacad.com 6
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 7/88
Introducing the topology
• Topology Lab
Hc vin mng Bach Khoa - Website: www.bkacad.com 7
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 8/88
Reference: Cisco router 1841’s Component
Product Description Quantity
CISCO1841Modular Router w/2xFE, 2 WAN slots, 32FL/128 DR 1
CAB-ACE Power Cord Europe 1
S184IPB-12406T Cisco 1841 IOS IP BASE W/O CRYPTO 1
Hc vin mng Bach Khoa - Website: www.bkacad.com 8
WIC-2T 2-Port Serial WAN Interface Card 1
CAB-SS-V35FCV.35 Cable, DCE Female to Smart Serial, 10Feet 2
CAB-SS-V35MT V.35 Cable, DTE Male to Smart Serial, 10 Feet 2
MEM1800-32CF 32MB Cisco 1800 Compact Flash 1
ROUTER-SDM-CD CD for SDM software 1
CON-OSP-CISCO1841 ONSITE 24X7X4 Modular Router w/2xF 1
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 9/88
Cable Standards
Hc vin mng Bach Khoa - Website: www.bkacad.com 9
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 10/88
Cable Standards
Hc vin mng Bach Khoa - Website: www.bkacad.com 10
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 11/88
Cable for LAN/WAN interfaces
Hc vin mng Bach Khoa - Website: www.bkacad.com 11
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 12/88
Examining the Connections of the Router
Hc vin mng Bach Khoa - Website: www.bkacad.com 12
• Serial Connectors – DB-60 port and Smart port: five-in-one serial port:
• EIA/TIA-232, EIA/TIA-449, V.35, X.21, and EIA/TIA-530standards
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 13/88
Examining the Connections of the Router
Hc vin mng Bach Khoa - Website: www.bkacad.com 13
• Ethernet Connectors – 2 types of connectors can be used: Straight through and Cross-over Straight through used to connect:
• Switch-to-Router, Switch-to-PC, Router-to-Server, Hub-to-PC, Hub-to-Server Cross-over used to connect:
• Switch-to-Switch, PC-to-PC, Switch-to-Hub, Hub-to-Hub, Router-to-Router
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 14/88
Router Configuration Review
Hc vin mng Bach Khoa - Website: www.bkacad.com 14
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 15/88
Examining Router Interfaces
• Examining Router Interfaces
– show ip route command – used to view routing table
– show interfaces command – used to show status of an interface
– show ip interface brief command – used to show a portion of theinterface information
– show running-config command – used to show configuration file
Hc vin mng Bach Khoa - Website: www.bkacad.com 15
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 16/88
Configuring an Ethernet Interface
• Configuring an Ethernet interface
– By default all serial and Ethernet interfaces are down
– To enable an interface use the no shutdown command
Hc vin mng Bach Khoa - Website: www.bkacad.com 16
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 17/88
Configuring an Ethernet Interface
• Verifying Ethernet interface
– Show interfaces for fastEthernet 0/0 – command used to showstatus of fast Ethernet port
– show ip interface brief
– show running-config
• Ethernet interfaces participate in ARP
Hc vin mng Bach Khoa - Website: www.bkacad.com 17
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 18/88
Configuring an Ethernet Interface
• The IOS will return the following error message if youattempt to configure the second interface with thesame IP subnet as the first interface:
R1(config-if)#int fa0/1
Hc vin mng Bach Khoa - Website: www.bkacad.com 18
- . . . . . .
172.16.3.0 overlaps with FastEthernet0/0
R1(config-if)#
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 19/88
Extra: Testing using the OSI Model
Hc vin mng Bach Khoa - Website: www.bkacad.com 19
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 20/88
Logging Synchronous Command
• In order to keep the unsolicited output separate from your input,enter line configuration mode for the consoled port and add the
logging synchronous command.
Hc vin mng Bach Khoa - Website: www.bkacad.com 20
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 21/88
Configuring a Serial Interfaces
• Configuring a Serial interface
– Enter interface configuration mode
– Enter in the ip address and subnet mask
– Enter in the no shut down command
• Example:
– R1(config)#interface serial 0/0
Hc vin mng Bach Khoa - Website: www.bkacad.com 21
– con g- p a ress . . . . . .
– R1(config-if)#no shutdown
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 22/88
Examining Router Interfaces
• Activity 2.2.5.1
• Examining Router Interfaces
– Physically connecting a WAN Interface.
– A WAN Physical Layer connection has sides:
- –
Hc vin mng Bach Khoa - Website: www.bkacad.com 22
This is the service provider. CSU/DSU is a DCEdevice.
Data Terminal Equipment (DTE) – Typically the
router is the DTE device.
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 23/88
Examining Router Interfaces
Hc vin mng Bach Khoa - Website: www.bkacad.com 23
• on gur ng ser a n s n a a env ronmen One side of a serial connection must be considered a DCE This requires placing a clocking signal – use the clock rate
command. Example:
• R1(config)#interface serial 0/0• R1(config-if)#clockrate 64000 Serial Interfaces require a clock signal to control the timing of
the communications.
• Note: WIC-2a/s support maximum clock rate is 128000 bps
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 24/88
Extra: Clock Rate
RouterB(config)#inter serial 1
RouterB(config-if)#clock rate ?
Hc vin mng Bach Khoa - Website: www.bkacad.com 24
pee s per secon
12002400
4800
9600
<text omitted>
2000000
4000000
<300-4000000> Choose clockrate from list above
RouterB(config-if)#clock rate 64000
RouterB(config-if)#
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 25/88
Examining Router Interfaces
• Verifying the Serial Interface Configuration
– show interfaces
– show ip interface brief – show running-config
– ping
–
Hc vin mng Bach Khoa - Website: www.bkacad.com 25
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 26/88
Verifying Changes to the Routing Table
• The routing table consists of a list of "known" network addresses- that is, those addresses that are directly connected, configured
statically, and learned dynamically.
Hc vin mng Bach Khoa - Website: www.bkacad.com 26
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 27/88
Verifying Changes to the Routing Table
• Observing Routes as They are Added to the Routing Table
– debug ip routing command will let us see any changes that
the router performs when adding or removing routes.
Hc vin mng Bach Khoa - Website: www.bkacad.com 27
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 28/88
Devices on Directly Connected Networks
• When a router only has its interfaces configured, and the routingtable contains the directly connected networks but no other
routes, only devices on those directly connected networks are
reachable.
Hc vin mng Bach Khoa - Website: www.bkacad.com 28
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 29/88
Devices on Directly Connected Networks
Hc vin mng Bach Khoa - Website: www.bkacad.com 29
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 30/88
Extra: Directly Connected Networks and the IP Routing Table
RTA# debug ip routing
RTA(config)#inter e 0
RTA(config-if)#shutdown
00:34:38: RT: interface Ethernet0 removed from routing table
00:34:38: RT: del 192.168.2.0 via 0.0.0.0, connected metric [0/0]
00:34:38: RT: delete network route to 192.168.2.0
RTA#show ip route
-
Hc vin mng Bach Khoa - Website: www.bkacad.com 30
• Viewing the Routing Table Process
– Directly connected routes will also be removed if the link goes down. – Directly connected routes will only be in the routing table if, it is not
administratively down, the line is “up” and protocol is “up”
– For serial interfaces, don’t forget the “clock rate” command on the routerwith the DCE cable – neither interface will be “up” and “up” until both ends
are configured correctly.
,..
RTA# undebug all
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 31/88
Extra: Directly Connected Networks and the IP Routing Table
RTA#show ip routeCodes: C - connected,.. <Other codes and gateway information omitted>
C 172.16.0.0/16 is directly connected, Serial0
C 192.168.2.0/24 is directly connected, Ethernet0
172.16.0.0/16 192.168.1.0/24
.1 .1.2 .2
RTA RTB RTC
192.168.2.0/24
.1 .1
10.0.0.0/8
s0 s0 s1s1e0 e0
Hc vin mng Bach Khoa - Website: www.bkacad.com 31
RTB#show ip route
Codes: C - connected,.. <Other codes and gateway information omitted>
C 172.16.0.0/16 is directly connected, Serial0
C 192.168.1.0/24 is directly connected, Serial1
RTC#show ip route
Codes: C - connected,.. <Other codes and gateway information omitted>C 10.0.0.0/8 is directly connected, Ethernet0
C 192.168.1.0/24 is directly connected, Serial1
• The Routing Tables
– Notice that the routers only know about their own directly connected networks.
– They are not sharing routing information because we have not configured any static routes ordynamic routing protocols.
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 32/88
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 33/88
Extra: Extended Ping Command
RTA#show ip route
C 172.16.0.0/16 is directly connected, Serial0
C 192.168.2.0/24 is directly connected, Ethernet0
172.16.0.0/16 192.168.1.0/24
.1 .1.2 .2
RTA RTB RTC
192.168.2.0/24
.1 .1
10.1.0.0/16
s0 s0 s1s1e0 e0
Hc vin mng Bach Khoa - Website: www.bkacad.com 33
RTB#show ip route
Codes: C - connected,.. <Other codes and gateway information omitted>C 172.16.0.0/16 is directly connected, Serial0
C 192.168.1.0/24 is directly connected, Serial1
RTA#ping
Protocol [ip]:
Target IP address: 172.16.0.2
Extended commands [n]: ySource address or interface: 192.168.2.1
Sending 5, 100-byte ICMP Echos to 172.16.0.2, timeout is 2 seconds:
.....
RTA#ping 172.16.0.2 source 192.168.2.1
E Li h ibl h f h Pi
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 34/88
Extra: Lists the possible output characters from the Pingfacility
Hc vin mng Bach Khoa - Website: www.bkacad.com 34
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 35/88
Extra: IP Traceroute Text Characters
Hc vin mng Bach Khoa - Website: www.bkacad.com 35
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 36/88
Cisco Discovery Protocol (CDP)
Network discovery with CDP
• CDP is an information-gathering tool used by network administrators toget information about directly connected Cisco devices.
• CDP is a proprietary tool that enables you to access a summary ofprotocol and address information about Cisco devices that are directlyconnected.
• These advertisements contain information such as the types of devices
Hc vin mng Bach Khoa - Website: www.bkacad.com 36
that are connected, the router interfaces they
are connected to, the interfaces used to
make the connections, and the model
numbers of the devices.
• Concept of neighbors – 2 types of neighbors
Layer 3 neighbors
Layer 2 neighbors
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 37/88
Cisco Discovery Protocol (CDP)
CDP Operation
• CDP runs at the Data Link layer connecting the physical media to theupper-layer protocols (ULPs).
• Cisco network devices, such as routers that support different Networklayer protocols (for example, IP and Novell IPX), can learn about eachother
•
Hc vin mng Bach Khoa - Website: www.bkacad.com 37
device: – Device identifiers
– Address list
– Port identifier
– Capabilities list
– Platform
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 38/88
Default Setting
Feature Default Setting
CDP global state Enabled
Hc vin mng Bach Khoa - Website: www.bkacad.com 38
nter ace state na e
CDP holdtime (packet holdtime in seconds) 180
CDP timer (packets sent every x seconds) 60
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 39/88
Using CDP for Network Discovery
• The information gathered by the CDP protocol can beexamined with the show cdp neighbors command.
Hc vin mng Bach Khoa - Website: www.bkacad.com 39
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 40/88
Using CDP for Network Discovery
Field Definition
Device ID The name of the neighbor device and either the
MAC address or the serial number of this
device.
Local Intrfce The protocol being used by the connectivity
Hc vin mng Bach Khoa - Website: www.bkacad.com 40
.
Holdtme The remaining amount of time (in seconds) thecurrent device will hold the CDP advertisement
from a sending router before discarding it.
C
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 41/88
Using CDP for Network Discovery
Capability
(Capability
Codes)
Capability (type of routing device) of the listed
neighboring device.
The capability types that can be discovered are:
R—RouterT—Transparent bridge
B—Source-routing bridge
Hc vin mng Bach Khoa - Website: www.bkacad.com 41
S—Switch
H—Host
I— device is using IGMP
r—Repeater
Platform The product number of the device.
Port ID The protocol and port number of the device.
U i CDP f N k Di
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 42/88
Using CDP for Network Discovery
Hc vin mng Bach Khoa - Website: www.bkacad.com 42
CDP C d
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 43/88
CDP Commands
Hc vin mng Bach Khoa - Website: www.bkacad.com 43
CDP C d
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 44/88
CDP Commands
Hc vin mng Bach Khoa - Website: www.bkacad.com 44
CDP C d
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 45/88
CDP Commands
Hc vin mng Bach Khoa - Website: www.bkacad.com 45
CDP Commands
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 46/88
CDP Commands
Hc vin mng Bach Khoa - Website: www.bkacad.com 46
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 47/88
Static Routeswith “Next Hop” Addresses
Hc vin mng Bach Khoa - Website: www.bkacad.com 47
Purpose and Command Syntax of ip route
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 48/88
Purpose and Command Syntax of ip route
• Static routes are commonly used when routing from a network toa stub network.
– A stub network is a network accessed by a single route.
Hc vin mng Bach Khoa - Website: www.bkacad.com 48
Purpose and Command Syntax of ip route
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 49/88
Purpose and Command Syntax of ip route
Hc vin mng Bach Khoa - Website: www.bkacad.com 49
Configuring Static Routes
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 50/88
Configuring Static Routes
• Installing a Static Route in the Routing Table
Hc vin mng Bach Khoa - Website: www.bkacad.com 50
Verifying Static Route Commands
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 51/88
Verifying Static Route Commands
Configuring Routes to Two More Remote Networks
Hc vin mng Bach Khoa - Website: www.bkacad.com 51
Routing Table Principles and Static Routes
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 52/88
Routing Table Principles and Static Routes
Hc vin mng Bach Khoa - Website: www.bkacad.com 52
Routing Table Principles and Static Routes
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 53/88
Routing Table Principles and Static Routes
• Applying the Principles
Hc vin mng Bach Khoa - Website: www.bkacad.com 53
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 54/88
Resolving to an Exit Interface
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 55/88
Resolving to an Exit Interface
• Exit Interface is down
Hc vin mng Bach Khoa - Website: www.bkacad.com 55
Extra: Static Routing – Recursive Lookups
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 56/88
RTA(config)#ip route 192.168.1.0 255.255.255.0 172.16.0.2
RTA#show ip route
172.16.0.0/16 192.168.1.0/24
.1 .1.2 .2
RTA RTB RTC
192.168.2.0/24
.1 .1
10.1.0.0/16
s0 s0 s1s1e0 e0
Extra: Static Routing Recursive Lookups
Hc vin mng Bach Khoa - Website: www.bkacad.com 56
Co es: C - connecte , S - stat c,
C 172.16.0.0/16 is directly connected, Serial0S 192.168.1.0/24 [1/0] via 172.16.0.2
C 192.168.2.0/24 is directly connected, Ethernet0
12
Extra: Static Routing – Recursive Lookups
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 57/88
RTA(config)#ip route 10.1.0.0 255.255.0.0 192.168.1.2
RTA#show ip route
Codes: C - connected, S - static,
172.16.0.0/16 192.168.1.0/24
.1 .1.2 .2
RTA RTB RTC
192.168.2.0/24
.1 .1
10.1.0.0/16
s0 s0 s1s1e0 e0
g p
Hc vin mng Bach Khoa - Website: www.bkacad.com 57
C 172.16.0.0/16 is directly connected, Serial0
S 192.168.1.0/24 [1/0] via 172.16.0.2
S 10.1.0.0/16 [1/0] via 192.168.1.2
C 192.168.2.0/24 is directly connected, Ethernet01
2
3
Extra: Static Routing – Endless Recursion
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 58/88
• Route1: ip route 10.1.0.0 255.255.0.0 20.1.1.1
g
Hc vin mng Bach Khoa - Website: www.bkacad.com 58
• Route2: ip route 20.1.0.0 255.255.0.0 30.1.1.1
• Route3: ip route 30.1.0.0 255.255.0.0 10.1.1.1
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 59/88
Static Routes with Exit Interface
Hc vin mng Bach Khoa - Website: www.bkacad.com 59
Configuring a Static Route with an Exit Interface
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 60/88
• Static routes can be configured with an exit interface, whichallows the routing table to resolve the exit interface in a single
search instead of two searches.
Hc vin mng Bach Khoa - Website: www.bkacad.com 60
Configuring a Static Route with an Exit Interface
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 61/88
• Static Route and an Exit Interface
Hc vin mng Bach Khoa - Website: www.bkacad.com 61
Modifying Static Routes
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 62/88
• There are times when a previously configured static route needs to bemodified:
– The destination network no longer exists, and therefore the staticroute should be deleted.
– There is a change in the topology, and either the intermediateaddress or the exit interface has to be changed.
Hc vin mng Bach Khoa - Website: www.bkacad.com 62
Verifying the Static Route Configuration
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 63/88
• Use the following commands
Step 1: show running-config
Step 2 verify static route has been entered correctly
Step 3: show ip route
Step 4 verify route was configured in routing table
Step 5 issue ping command to verify packets can reach destination
Hc vin mng Bach Khoa - Website: www.bkacad.com 63
an a e urn pa s wor ng
Static Routes with Ethernet Interfaces
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 64/88
• Ethernet interfaces and ARP.
– If a static route is configured on an Ethernet link, if the packet issent to the next-hop router then
• the destination MAC address will be the address of the nexthop’s Ethernet interface
• This is found by the router consulting the ARP table
’
Hc vin mng Bach Khoa - Website: www.bkacad.com 64
–
Static Routes with Ethernet Interfaces
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 65/88
Static routes and Ethernet exit interfaces
• With Ethernet networks, may be many different devices sharing
the same multi-access network so the router does not know the
next-hop IP address and it cannot determine the destinationMAC address for the Ethernet frame.
Hc vin mng Bach Khoa - Website: www.bkacad.com 65
Extra: Static Routing – Ethernet interfaces
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 66/88
172.16.0.0/16 192.168.1.0/24
.1 .1.2 .2
RTA RTB RTC
192.168.2.0/24
.1 .1
10.1.0.0/16
s0 s0 s1s1e0 e0
RTA(config)#ip route 192.168.1.0 255.255.255.0 eth1 172.16.0.2
RTA#show ip route
e1 e0
Hc vin mng Bach Khoa - Website: www.bkacad.com 66
• Static routes via point-to-point links
– It is best to configure static routes with only the exit interface.
• Static routes via broadcast networks such as Ethernet
– It is best to configure static routes with both the next-hop address
and the exit-interface.
Codes: C - connected, S - static,
C 172.16.0.0/16 is directly connected, Ethernet1S 192.168.1.0/24 [1/0] via 172.16.0.2 Ethernet1
C 192.168.2.0/24 is directly connected, Ethernet0
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 67/88
Hc vin mng Bach Khoa - Website: www.bkacad.com 67
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 68/88
Summary and Default Static Routes
Hc vin mng Bach Khoa - Website: www.bkacad.com 68
Summary Static Routes
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 69/88
• Summarizing Routes to Reduce the Size of the Routing Table
• Route Summarization: Multiple static routes can be summarized into asingle static route if:
– The destination networks can be summarized into a single networkaddress, and
– The multiple static routes all use the same exit-interface or next-
Hc vin mng Bach Khoa - Website: www.bkacad.com 69
Summary Static Routes
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 70/88
• Configuring a Summary Route:
Step 1: Delete the currentstatic route
Step 2: Configure thesummary static route
Hc vin mng Bach Khoa - Website: www.bkacad.com 70
route
Host 1
172.16.1.0/24
Extra: Summarizing static routes
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 71/88
Hub
S0S0
S0 S1
E0
172.16.2.0/24
172.16.1.0/24
192.168.1.0/24
SanJose2
SanJose1
Baypointe
.1
.1 .1
.2.2172.16.0.0/22
Hc vin mng Bach Khoa - Website: www.bkacad.com 71
• Baypointe(config)# ip route 172.16.1.0 255.255.255.0 192.168.1.2• Baypointe(config)# ip route 172.16.2.0 255.255.255.0 192.168.1.2
• Baypointe(config)# ip route 172.16.3.0 255.255.255.0 192.168.1.2
• Summarized route:
Baypointe(config)#ip route 172.16.0.0 255.255.252.0 192.168.1.2
Host 2 Host 3
Hub Hub
172.16.3.0/24 192.168.2.0/24
..
Default Static Route
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 72/88
• A default static route is a route that will match all packets. Default staticroutes are used:
– When no other routes in the routing table match the packet'sdestination IP address. In other words, when a more specific matchdoes not exist. A common use is when connecting a company'sedge router to the ISP network.
– When a router has only one other router to which it is connected.
Hc vin mng Bach Khoa - Website: www.bkacad.com 72
This condition is known as a stub router.
Default Static Route
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 73/88
• Verifying a Default Static Route
Hc vin mng Bach Khoa - Website: www.bkacad.com 73
Extra: Common uses for Static Routes
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 74/88
ISP
10.1.1.2/24
10.1.1.1/24
ip route 172.16.0.0 255.255.0.0 10.1.1.2
Default
Hc vin mng Bach Khoa - Website: www.bkacad.com 74
172.16.0.0/16ip route 0.0.0.0 0.0.0.0 10.1.1.1
RTB#show ip route
Gateway of last resort is 10.1.1.1 to network 0.0.0.0
C 172.16.0.0/16 is directly connected, Ethernet0
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial1
S* 0.0.0.0/0 [1/0] via 10.1.1.1
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 75/88
Managing and
Hc vin mng Bach Khoa - Website: www.bkacad.com 75
Static Routes and Packet Forwarding
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 76/88
• Static Routes and Packet Forwarding
Hc vin mng Bach Khoa - Website: www.bkacad.com 76
Static Routes and Packet Forwarding
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 77/88
Hc vin mng Bach Khoa - Website: www.bkacad.com 77
Static Routes and Packet Forwarding
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 78/88
Hc vin mng Bach Khoa - Website: www.bkacad.com 78
Static Routes and Packet Forwarding
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 79/88
Hc vin mng Bach Khoa - Website: www.bkacad.com 79
Static Routes and Packet Forwarding
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 80/88
Hc vin mng Bach Khoa - Website: www.bkacad.com 80
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 81/88
Static Routes and Packet Forwarding
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 82/88
Hc vin mng Bach Khoa - Website: www.bkacad.com 82
Troubleshooting a Missing Route
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 83/88
• Tools that can be used to isolate routing problems include:
– ping – tests end to end connectivity
– traceroute – used to discover all of the hops (routers) along
the path between 2 points – show IP route – used to display routing table & ascertain
forwarding process
Hc vin mng Bach Khoa - Website: www.bkacad.com 83
– show ip interface brief - used to show status of router
interfaces
– show cdp neighbors detail – used to gather configurationinformation about directly connected neighbors
Solving the Missing Route
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 84/88
• Finding a missing or miss-configured route requires methodically usingthe correct tools
– Start with ping . If ping fails then use traceroute to determinewhere packets are failing to arrive
• Issue: show ip route to examine routing table.
– If there is a problem with a miss-configured static route remove the
Hc vin mng Bach Khoa - Website: www.bkacad.com 84
Solving:
– R2(config)#no ip route 172.16.3.0 255.255.255.0 serial0/0/1
– R2(config)#ip route 172.16.3.0 255.255.255.0 serial 0/0/0
Basic Static Route Configuration Lab
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 85/88
Hc vin mng Bach Khoa - Website: www.bkacad.com 85
Challenge Static Route Configuration Lab
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 86/88
Hc vin mng Bach Khoa - Website: www.bkacad.com 86
Summary
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 87/88
Hc vin mng Bach Khoa - Website: www.bkacad.com 87
8/3/2019 CA Ex S2M02 Static Routing
http://slidepdf.com/reader/full/ca-ex-s2m02-static-routing 88/88
Hc vin mng Bach Khoa - Website: www.bkacad.com 88