The principle of the rip dynamic routing protocol is combined with the experiment. Xiaobai can understand in seconds (learning will not exist) (experimental environment Huawei ensp)

One, dynamic routing

1. What is dynamic routing

Based on a dynamic routing protocol

2. Features of dynamic routing

Reduced management tasks and
occupied network bandwidth

3. Overview of dynamic routing protocols

The language used to exchange information between routers

4. The metric value of dynamic routing

Hop count, bandwidth, load, delay, reliability cost

5. What does convergence mean

It is the process by which the routing tables of all routes reach a consistent state

6. Classification of dynamic routing protocols

1. The distance vector routing protocol
selects routing based on the number of routers passing through from the source network to the target network ( RIP )
2. The link state routing protocol selects routing based on the
comprehensive consideration of each path from the source network to the target network (OSPF) , IS-IS)

Two, RIP protocol

RIP (Distance Vector Protocol)

  • RIP:

RIP is a protocol based on the distance vector algorithm. The distance vector algorithm can be simply summarized in one sentence.
Use the distance vector router to flood its entire routing table to neighbors.
Therefore, a typical distance vector routing protocol has some common attributes: regular updates, neighbors, broadcast updates, flood routing

  • neighbor:

In the distance vector protocol, you can understand the router directly connected to it

  • Periodic update:

After a specified period of time, the routing sends updated information to other neighbors.
Therefore, the distance vector routing protocol update method is also called "hop by hop" update, and the update time is usually defined as 30S

  • Metric:

Also known as the metric value, the RIP protocol uses Hop (hop count) as the metric value. Each device passing through is regarded as 1 hop. The maximum hop count of the RIP protocol is 15 hops, and 16 hops is an infinite value. If it is this value , Regarded as unreachable

  • version:

Two versions

The difference between the two versions of RIP

Difference 1:

RIP1 is a classful routing protocol, that is, all update packages do not contain subnet masks and do not support VLSM. Therefore, all devices in the network must use the same subnet mask, otherwise errors will occur. RIP2 is a Classless routing protocol, it uses a subnet mask.

Difference 2:

The second difference is that RIP1 uses broadcast packets when sending update packets, while RIP2 uses multicast 224.0.0.9 by default and also supports broadcast transmission, which saves a portion of network bandwidth compared to RIP1.

Difference three:

The third is that RIP2 supports plaintext or MD5 authentication, which requires two routers to verify when synchronizing the routing table, and then the routing can be synchronized after passing, which can enhance security.

Three, RIP experiment

1. Experiment purpose and environment

Learn to configure RIP dynamic routing, and use commands to make the two versions of VRP converge. Huawei ensp simulator, three routers

2 Experimental topology diagram

Insert picture description here

3. Experimental configuration (focus)

The configuration of R1:
sysname R1
interface GigabitEthernet0/0/0
ip address 15.0.0.1 255.255.255.252
rip 1
version 1
network 1.0.0.0
network 15.0.0.0
The configuration of the announcement network segment R2:
sysname R2
interface GigabitEthernet0/0/0
ip address 15.0 .0.2 255.255.255.252
interface GigabitEthernet0/0/1
ip address 20.0.0.1 255.255.255.252

rip version 2 multicast
added after testing rip compatibility

interface LoopBack0
ip address 2.2.2.2 255.255.255.0
rip 1
network 2.0.0.0
network 15.0.0.0
network 20.0.0.0
R3的配置:
sysname R 3
interface GigabitEthernet0/0/1
ip address 20.0.0.2 255.255.255.252
interface LoopBack0
ip address 3.3.3.3 255.255.255.0
rip 2
version 2
network 3.0.0.0
network 20.0.0.0

4. Experimental results

Insert picture description here
Insert picture description here

to sum up

When configuring rip, the version 1 declared network segment is declared based on the network bits of the A, B, and C network segments

Guess you like

Origin blog.csdn.net/wulimingde/article/details/107086010