Huawei emulator eNSP dynamic routing protocol RIP
1. Dynamic Routing Information Protocol RIP
Dynamic Routing Information Protocol (RIP): It is a protocol based on the
Distance-Vector algorithm, which uses the number of hops as a metric to measure the distance to the destination network. RIP is mainly used in small-scale networks, and the convergence speed is very slow.
How it works: After the router runs RIP, it will first send a route update request, and the route that receives the request will send its own RIP route in response. After the network is stable, the router will periodically (30 seconds) send routing update information, the destination address is the multicast address of 224.0.0.9, and the message stores the routing information. The default priority of RIP is 100. RIP only looks at the distance of the route. The distance is measured by the number of hops (the number of routers passing through). The maximum number of hops cannot exceed 15 hops. The router after 16 hops is unreachable.
Suppression interface: also known as silent interface, configure the interface to be in a suppressed state, send but not receive RIP routing update packets, the suppression interface is usually used to connect to the PC-side router, such as the Ethernet0/0/1 interface of R1, and its priority is greater than RIP Input And RIP Output.
[R1]rip
[R1-rip-1]silent-interface e0/0/1
Two, configure RIP commands
As shown in the figure above, configure the RIP protocol after configuring the IP addresses of each interface of the R1, R2, and R3 routers.
(1) Configure RIP routing of router RI
[R1]rip 1 #RIP process number
[R1-rip-1]version 2 #Use RIP 2 version
[R1-rip-1]network 192.168.1.0 # Declare direct connection network
[R1-rip-1]network 12.0 .0.0 # Announce direct connection network
[R1-rip-1]undo summary #Turn off automatic routing summary
[R1-rip-1]display this
rip 1
undo summary
version 2
network 192.168.1.0
network 12.0.0.0
return
(2) Configure RIP routing of router R2
[R2]rip 1
[R2-rip-1]version 2
[R2-rip-1]undo summary
[R2-rip-1]network 12.0.0.0
[R2-rip-1]network 23.0.0.0
[R2-rip-1]network 172.16.0.0
[R2-rip-1]display this
rip 1
undo summary
version 2
network 12.0.0.0
network 23.0.0.0
network 172.16.0.0
(3) Configure RIP routing of router R3
[R3]rip 1
[R3-rip-1]version 2
[R3-rip-1]undo summary
[R3-rip-1]network 23.0.0.0
[R3-rip-1]network 10.0.0.0
[R3-rip-1]display this
rip 1
undo summary
version 2
network 23.0.0.0
network 10.0.0.0
(4) Suppress router R1 interface E0/0/1
RIP Input和RIP Output。
[R1]rip
[R1-rip-1]silent-interface e0/0/1
3. Test the connectivity between routers
Four, Wireshark packet capture analysis e/0/0/0