Documente Academic
Documente Profesional
Documente Cultură
HUAWEI
www.huawei.com
What a route is
HUAWEI
R1 ( N,R1,M )
Other networks
www.huawei.com
HUAWEI
Quidway#show ip route R o u t i n g Ta b l e s : Destination/Mask proto pref Metric Nexthop Interface 0.0.0.0/0 Static 60 0 120.0.0.2 Serial0 8.0.0.0/8 RIP 100 3 120.0.0.2 Serial0 9.0.0.0/8 OSPF 10 50 20.0.0.2 Ethernet0 9.1.0.0/16 R IP 100 4 120.0.0.2 Serial0 11.0.0.0/8 Static 60 0 120.0.0.2 Serial0
www.huawei.com
Static route
HUAWEI
10.1.3.0
S0
Network
A
10.1.1.1 10.1.1.2
www.huawei.com
Static route configuration command and configuration mode Quidway (config) # ip route ip-address { mask | mask-length } { interface-type interface-name | nexthop-address } [ preference value ] [ reject | blackhole ]
www.huawei.com
129.1.0.0/16
Quidway A
10.0.0.1
Quidway B
SO 10.0.0.2 EO
www.huawei.com
Default route
HUAWEI
Public Network
Quidway A Quidway B
10.0.0.1 SO
SO 10.0.0.2
Network N
NetworkN1
NetworkN2
www.huawei.com
a set of routers managed by a unified institution and using the same routing strategy
www.huawei.com
IGP&EGP
HUAWEI
Exterior route gateway protocols (EGP) Autonomous system(AS) 100 BGP Autonomous system (AS) 200
www.huawei.com
www.huawei.com
B a n d w idth
Delay
Load Reliability
NetworkN2
www.huawei.com
Route priority
HUAWEI
The route obtained from the protocol in the highest priority is first selected and added to a routing table in priority.
RIP OSPF IGRP
www.huawei.com
D istance-vector algorithmisbasedontheprincipleofvectoraddition
M=M1+M2
www.huawei.com
The distance-vector routing protocol transfers routing information between adjacent routers
R1 Route table Destination network Next hop N1 R3 N2 R4 N3 R5
R1
Routeswitching
R2
www.huawei.com
HUAWEI
Invalid routing information is transferred between routers and will cause routing loops Routing loops will cause the problems such as cyclic route, slow convergence, route inconsistency, etc.
www.huawei.com
Counting to Infinity
HUAWEI
www.huawei.com
Define a maximum routing metric to prevent infinite cycle Split horizon: routing information received from a port is disabled to send from this port Route holding: Route poisoning: identify a route unreachable with "Unreachable" Triggered updates: send immediately unreachable routing information Set hold-down timers:keep routing information within hold-down time
www.huawei.com
1 2
When synchronization is achieved, R1 and R2 both know the topology of the whole network
www.huawei.com
Hop count metric selects the path (number of routers it passes) Routes update every 30 seconds RIP protocol is applicable to small and medium-sized networks
R1
PC
R2
PC
R4
R3
www.huawei.com
Route table
net1
net2
Request
R1
R2
Response
www.huawei.com
Response
net1 16
R1
R2
Cloud
Response
net2 net3 3 5
Rn
GW R2 Rn Rn
Metric 16 4 6
www.huawei.com
router(config-router-rip)#network all
www.huawei.com
www.huawei.com
www.huawei.com
HUAWEI
Quidway# show ip rip RIP is turning on checkzero is on default-metric : 16 neighbor: 202.38.165.1 auto-summary is on preference : 100
www.huawei.com
HUAWEI
Quidway#show ip route Routing Tables: Destination/Mask proto pref Metric Nexthop Interface 8.0.0.0/8 RIP 100 3 120.0.0.2 Serial0 9.0.0.0/8 RIP 100 5 20.0.0.2 Ethernet0 20.0.0.0/8 Direct 0 0 20.0.0.1 Ethernet0 20.0.0.1/8 Direct 0 0 127.0.0.1 LoopBack0 ......
www.huawei.com
Q u id w a y # d e b u giprippacket
R ippacketdebuggingison Q u id w a y # M O N R ip:receiveResponsefrom120.0.0.2 packet:vers1,cmdResponse,length24 dest 110.0.0.0,Metric1 R ip:sendfrom2 0 .0.0.1to255.255.255.255 packet:vers1,cmdResponse,length44 dest 110.0.0.0,Metric2 dest 120.0.0.0,Metric1 R ip:sendfrom120.0.0.1to255.255.255.255 packet:vers1,cmdResponse,length24 dest 20.0.0.0,Metric1 www.huawei.com
Applicable to larger networks Quicker response to network topology changes Complex route metric
www.huawei.com
Stable feature
HUAWEI
Router
Router
Router
Poison reverse
Router
www.huawei.com
Reliability MTU
Desktop system
Router Router
Desktop system
www.huawei.com
IGRP configuration
HUAWEI
Start IGRP
router(config)#router igrp
Enable IGRP network address router(config-router-rip)#network network_number or router(config-router-rip)#network all Configure current IGRP autonomous system numb
router(config-router-rip)#asystem a s _ n u m b e r Default: as- n u m b e r 1
www.huawei.com
network 10.0.0.0
Router
network 129.102.0.0
202.38.169.1
202.38.160.1
IGRP
Router
OSPF
www.huawei.com
www.huawei.com
www.huawei.com
Quidway(config)#router id router-id
Start the OSPF protocol
show ip ospf show ip ospf error show ip ospf interface show ip ospf neighbor
www.huawei.com
Summary
HUAWEI
After completing this chapter, you should be able to the following tasks:
S e lecteitherastaticrouteordynam icroutetobeconfiguredbasedonnetwork c o n d ition s C o n figureastaticroute Describethebasicprinciplesofdistance-vectorroutingprotocol C o n fig u r eR I Pa n dI G R Pr o u t ingprotocols M o n itorandm a in tainroutingstatusbythecom m a n d ss h o wo rd e b u g
www.huawei.com