04 IP - SP2003 - E01 - 1-Basic Principle of Routing-27p
04 IP - SP2003 - E01 - 1-Basic Principle of Routing-27p
Objectives
2
Contents
n Basic conception
n Classification and features of route
n Using the route table
n Relationship between route table and router
3
Route table
Example
Dest Mask Gw Interface Owner pri metric
n Basic conception
n Classification and features of route
n Using the route table
n Relationship between route table and router
8
Route Types
Directly connected
route
Static route
Dynamic route
10.0.0.1/24 192.168.0.1/30
e1_1
fei_1/1
A 192.168.0.2/30 B 172.16.0.1/24
Stub Network
172.16.1.0
10.0.0.0
B BA
Network 172.16.2.2 172.16.2.1
Stub Network
172.16.1.0
Network
A B
172.16.2.2 172.16.2.1
n Select the route that has the highest priority to the route table。
RIP OSPF
10.0.0.0/16 fei_1/3
Route table
Notice: the comparison of
route priority must be
between identical routes.
© ZTE All rights reserved 16
Default route priority
Network
178.1.1.1
DDN
Network
178.1.1.1
DDN
n Basic conception
n Classification and features of route
n Using the route table
n Relationship between route table and router
20
Longest Prefix Match principle
ZXR10#show ip route
IPv4 Routing Table:
Dest Mask Gw Interface Owner pri metric
1.0.0.0 255.0.0.0 1.1.1.1 fei_1/1 direct 0 0
1.1.1.1 255.255.255.255 1.1.1.1 fei_1/1 address 0 0
2.0.0.0 255.0.0.0 2.1.1.1 fei_1/2 direct 0 0
2.1.1.1 255.255.255.255 2.1.1.1 fei_1/2 address 0 0
3.0.0.0 255.0.0.0 3.1.1.1 fei_1/3 direct 0 0
3.1.1.1 255.255.255.255 3.1.1.1 fei_1/3 address 0 0
10.0.0.0 255.0.0.0 1.1.1.1 fei_1/1 ospf 110 10
10.1.0.0 255.255.0.0 2.1.1.1 fei_1/2 static 1 0
10.1.1.0 255.255.255.0 3.1.1.1 fei_1/3 rip 120 5
0.0.0.0 0.0.0.0 1.1.1.1 fei_1/1 static 1 0
10.1.1.1?
© ZTE All rights reserved 21
Contents
n Basic conception
n Classification and features of route
n Using the route table
n Relationship between route table and router
22
Routing function
Longest match
principles
Routing protocol study
possible route, select the
best route based on metric