Solve the "RIP announcement network" problem

Insert picture description here
When performing RIP v2 configuration on AR 1, when I wanted to announce the network, I used the command network 1.1.1.0, but an error occurred: Error: The network address is invalid, and the specified address must be major-net address without any subnets.

Solution:
Declare the network, that is, specify the interface to run RIP, only need to enter the main class network address of the interface. That is to say, when configuring AR 1, you should use network 1.0.0.0, because the main class address of 1.1.1.1 is 1.0.0.0

The correct configuration of AR1 is as follows (the configuration of interface ip is omitted):
[AR1]rip 1
[AR1-rip-1]version 2
[AR1-rip-1]net 1.0.0.0
In AR3, you can view the routing information of rip:
dis ip routing-table In protocol rip,
Insert picture description here
you can see that AR 3 has learned the subnet of /24, which is 1.1.1.0/24

The packet capture results of g 0/0/0 in AR 1 are as follows:
Insert picture description here
From the packet capture results, you can see that the announcement is the main network, and the announcement is the subnet route.

Guess you like

Origin blog.csdn.net/qq_44933518/article/details/104881878