Professional Documents
Culture Documents
ODP500001 Principles of
the Routing Protocols
Destination
R1 network N
(N,R1,
M)
Other networks
<Router>display ip routing-table
Routing Tables:
Destination/Mask proto pref Cost Nexthop Interface
0.0.0.0/0 STATIC 60 0 10.0.1.1 Ethernet1/0
1.0.0.0/8 RIP 100 1 10.0.1.1 Ethernet1/0
1.1.1.0/24 STATIC 60 0 10.0.1.1 Ethernet1/0
1.1.1.1/32 OSPF 10 2 10.0.1.1 Ethernet1/0
2.2.2.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0
10.0.1.0/30 DIRECT 0 0 10.0.1.2 Ethernet1/0
10.0.1.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
Routing Preference
Protocol
DIRECT 0
OSPF 10
IS-IS 15
STATIC 60
RIP 100
IBGP 255
OSPF ASE 150
EBGP 255
Untrustworthy 255
The route metric identifies the cost for arriving at the destination
address. Generally, the route metric value is influenced by:
Line delay, bandwidth, line seizure ratio, degree of line reliability,
hop count, MTU
The metric value of the static route is 60.Different dynamic routing
protocols will select one or several factor (s) to calculate the metric
value.
The metric value is meaningful for comparison of the routing
protocols of a type. The metric values of different routing protocols
are not comparable and thus no conversion relationship exists
among them.
longest matching
preference
cost
Example:
ip route-static 129.1.0.0 16 10.0.0.2
ip route-static 129.1.0.0 255.255.0.0 10.0.0.2
ip route-static 129.1.0.0 16 Serial 2/0
Note: only the interface of the next hop is of point-to-point nature (PPP,HDLC) , ca
n <interface_name> be filled, otherwise, the <gateway_address> must be filled.
Router A Router B
S2/0 S2/0 E0/1
10.0.0.1 10.0.0.2
.1 10.0.0.0/8 .2
S2/1 S2/0
Public Network
On the router A, configure :
ip route-static 0.0.0.0 0.0.0.0 10.0.0.2
.1 10.0.0.0/ 8 .2
S2/1 S2/0