Professional Documents
Culture Documents
Routing
[Chapter 6: Routing]
Version 1.0
Chapter 6
Routing
2
Chapter 6
Routing
3
Chapter 6
Routing
4
Chapter 6
Routing
5
Chapter 6
Routing
Routing Metrics
6
Chapter 6
Routing
Routing Methods
There are two main routing methods used widely:
• Distance vector routing, where the router needs to know the direction
(vector) in which to send the packets.
• Link state routing, where the router needs to have its own map of the
network’s topology.
7
Chapter 6
Routing
Routing Preference
Protocol Preference
Local 0
Default 1
Static 60
RIP 100
OSPF Intra 80
OSPF Inter 90
OSPF ExtT1 110
OSPF ExtT2 115
EBGP 70
IBGP 130
8
Chapter 6
Routing
9
Chapter 6
Routing
10
Chapter 6
Routing
t0 NET VIA HOP NET VIA HOP NET VIA HOP NET VIA HOP
t1
NET VIA HOP NET VIA HOP NET VIA HOP NET VIA HOP
t2
NET VIA HOP NET VIA HOP NET VIA HOP NET VIA HOP
t3
NET VIA HOP NET VIA HOP NET VIA HOP NET VIA HOP
.1 .1 .2 .1 .2 .1 .2 .1
Router A Router B Router C Router D
NET VIA HOP NET VIA HOP NET VIA HOP NET VIA HOP
12
Chapter 6
Routing
Split Horizon
10.0.1.0 10.0.2.0 10.0.3.0 10.0.4.0 10.0.5.0
.1 .1 .2 .1 .2 .1 .2 .1
Router A Router B Router C Router D
13
Chapter 6
Routing
Counting to Infinity
10.0.4.0 10.0.5.0
A B
Link Failure
10.0.1.0 10.0.3.0
10.0.2.0
C D
14
Chapter 6
Routing
Holddown Timer
Holddown timer is a mechanism to prevent a router from accepting
any changes to a route for a period of time so that some problems,
like interface flapping, do not impact the network.
15
Chapter 6
Routing
10.0.4.0 is 10.0.4.0 is
unreachable!
reachable! unreachable!
reachable!
Page is animated 16
Chapter 6
Routing
17
Chapter 6
Routing
Identifier
IP Address
Must be zero
Must be zero
Metric
…………
Address Family
Must be zero
Route Entry 2
Identifier
IPv4 Address
Must be zero
Must be zero
Metric
18
Chapter 6
Routing
Router A Router B
100.100.100.100 10.1.1.1 10.1.1.2 200.200.200.200
To: 10.1.1.2
Routers A and B reply to each other
2
with the full routing table. To: 10.1.1.1
To: 255.255.255.255
A periodic update will be
3
forwarded with a broadcast packet. To: 255.255.255.255
Page is animated 19
Chapter 6
Routing
Response Packet
20
Chapter 6
Routing
Classful Routing
Address Class Most Significant Bit Value Ranges
Class A 0000 0.0.0.0 to 126.255.255.255
Class B 1000 128.0.0.0 to 191.255.255.255
Class C 1100 192.0.0.0 to 223.255.255.255
Class D 1110 224.0.0.0 to 239.255.255.255
Class E 1111 240.0.0.0 to 255.255.255.255
10.10.20.64
10.10.20.192
10.15.75.64
192.168.1.0 10.93.1.1
10.100.3.5
192.168.1.32
192.168.1.64
192.168.1.96 10.0.0.0
192.168.1.128
Network boundary
22
Chapter 6
Routing
Identifier
IPv4 Address
Subnet Mask
Next Hop
Metric
…………
Address Family
Route Tag
Route Entry 2
Identifier
IP Address
Subnet Mask
Next Hop
Metric
23
Chapter 6
Routing
Router A Router B
100.1.1.0 10.1.1.1 10.1.1.2 200.1.1.0
To: 10.1.1.2
Routers A and B reply to each
2
other with the full routing table. To: 10.1.1.1
To: 224.0.0.9
A periodic update will be
3
forwarded with a multicast packet. To: 224.0.0.9
Page is animated 24
Chapter 6
Routing
25
Chapter 6
Routing
26
Chapter 6
Routing
Example: RIPv1
DGS-3627-1 DGS-3627-2
100.1.1.1 10.1.1.1 10.1.1.2 200.1.1.1
Routing Table
IP Address/Netmask Gateway Interface Cost Protocol
------------------ --------- --------- ------ --------
10.1.1.0/24 0.0.0.0 System 1 Local
100.1.1.0/24 0.0.0.0 int1 1 Local
200.1.1.0/24 10.1.1.2 System 2 RIP
Total Entries : 2
27
Chapter 6
Routing
Example: RIPv2
DGS-3627-1 DGS-3627-2
100.1.1.1 10.1.1.1 10.1.1.2 200.1.1.1
Routing Table
IP Address/Netmask Gateway Interface Cost Protocol
------------------ --------- --------- ------ --------
10.1.1.0/24 0.0.0.0 System 1 Local
100.1.1.0/24 0.0.0.0 int1 1 Local
200.1.1.0/24 10.1.1.2 System 2 RIP
Total Entries : 2
28
Chapter 6
Routing
Total Entries : 2
DGS-3627-1 DGS-3627-2
100.1.1.1 10.1.1.1 10.1.1.2 200.1.1.1
29
Chapter 6
Routing
30
Chapter 6
Routing
31
Chapter 6
Routing
32
Chapter 6
Routing
33
Chapter 6
Routing
DGS-3627:admin#
enable rip
34
Chapter 6
Routing
35
Chapter 6
Routing
36
Chapter 6
Routing
DGS-3627:admin#
config route preference [static | default | rip |
ospfIntra | ospfInter | ospfExt1 | ospfExt2 | ebgp |
ibgp] <value 1-999>
37
Chapter 6
Routing
38
Chapter 6
Routing
Summary
This chapter introduces routing, including the static route and the
dynamic route.
A static route is configured by the administrator manually. For a
dynamic route, a routing protocol is configured and routing updates
are received automatically.
RIP is an example of a routing protocol. It has two versions: RIPv1,
a classful routing protocol, and RIPv2, a classless routing protocol.
39
Chapter 6
Routing
Lab Topology
40