Académique Documents
Professionnel Documents
Culture Documents
Static Route
www.huawei.com
It need maintenance manually: when the network fails, the static route
RTA RTB
.1 1.1.1.0/24 .2
10.1.1.1/32 20.1.1.1/32
S0 S0
and some dynamic route can also create default route, such as
also 0.0.0.0).
destination in routing table, it will send the data packet to the next
hop of default .
RTA RTB
1.1.1.0/24
10.1.1.1/30 20.1.1.1/30
.1 .2
www.huawei.com
between the router, routers share the network status and network
AS65000
AS65001
RIPv1/v2
BGP
OSPF
ISIS
Working area
AS65000
AS65001
RIPv1/v2
BGP
OSPF
ISIS
protocol algorithm
Each routing protocol can only advertise and learn the known route
routing table
The static route and direct route are often imported. Sometimes,
Fast convergence
When the topological network structure changes, the route can be changed
accordingly in the AS.
Low cost
The cost of the protocol itself (memory, CPU, network bandwidth) is minimum.
Security
With the relevant security mechanism, the protocol itself is not easy to attack.
Universal application
Be universal to networks of various topological structures and scales.
www.huawei.com
10.1.4.0 10.1.3.2 1
Initialization
With the router starts, it initializes the routing table, creates a table item for each direct
connected network.
The hop count of every initialization table item is 0.
Updating periodically
RTA RTB RTC
10.1.4.0 10.1.3.2 1
each router sends its own routing table to its direct connected routers periodically.
Updating periodically
RTA RTB RTC
each router sends its own routing table to its direct connected routers periodically.
adding
RTB have no route
towards 10.1.1.1, so it
RTA RTB
should add this item
10.1.1.0/30 10.1.2.0/30 10.1.3.0/30
.1 .1 .2 .1
hop
destination next hop
count
next hop hop
destination destination next hop
hop count count 10.1.2.0 -- 0
.1 .1 .2 .1
Hop count:
Next hop is router A 4+1
.1 .1 .2 .1
10.0.3.0 10.1.2.1 2
11.3.0.0 S0 0
11.4.0.0
11.4.0.0 S0 2
11.2.0.0 S0 1
11.1.0.0 S0 2
11.4.0.0 11.3.0.0 S0 0
11.1.0.0. S0 2
11.1.0.0
E0 B
11.2.0.0
S0 S0
S1
A
Poison reverse update, 11.3.0.0
network 11.4.0.0 is C
unreachable S0
E0
11.4.0.0
The network 11.4.0.0 is
disconnected
11.1.0.0
E0 B
11.2.0.0
11.4.0.0
Network 11.4.0.0 is
unreachable
S0 S0
S1
A
The network 11.4.0.0 is
disconnected 11.3.0.0
C
E0 S0
11.4.0.0
The network 11.4.0.0 is
disconnected
E0 B
11.2.0.0
Update after hold- S0 S0
down time
A
S1 Update after hold-
The network down time
11.4.0.0 is 11.3.0.0
C
disconnected
E0 S0
11.4.0.0
The network 11.4.0.0 is
disconnected
www.huawei.com
————
————
NET1 ————
———— NET2
RTA RTB
Response
Request
N3 E RTA RTB
Route update
N1 C N1 A
N2 D RTA N2 A
RTB
N3 E N3 A
N4 B N4 F
Metric
Metric
[RTA] rip
[RTA-rip-1]version 2
[RTA-rip-1] network 192.168.1.0
[RTA-rip-1] network 172.16.0.0
[RTB]rip
[RTB-rip-1]version 2
[RTB-rip-1]network 192.168.1.0
[RTB-rip-1]network 192.168.2.0
[RTC]rip
[RTC-rip-1]version 2
[RTC-rip-1]network 192.168.2.0
[RTC-rip-1]network 10.0.0.0
RIP neighbor
address, the The metric to destination,
Classless route namely hop count
interface connected and variable
with neighbor subnet mask
[Quidway-rip-1]version 2
[Quidway-Serial0/0/1]rip version 2 multicast
[Quidway]display rip 1
Public VPN-instance name:
RIP process: 1
RIP version: RIP-2
the same natural network segment are advertised, the route will be
domain routing
By default, RIPv2 enable function of route aggregation; when all the sub-
route aggregation
aggregate
route manually
[RTA-rip-1] preference ?
INTEGER<1-255> Value of Preference
[RTA-rip] preference 150
[RTA-rip] display ip routing-table
Routing Table: public net
Destination/Mask Protocol Pre Cost Nexthop Interface
10.0.0.0/8 RIP 150 2 192.168.1.2 Ethernet0/0
……
172.16.0.0/16 RIP 150 0 127.0.0.1 InLoopBack0
192.168.1.0/24 RIP 150 1 192.168.1.2 Ethernet0/0
The metric is
[RTA-Serial0/0/0]rip metricout 4
0+4=4