RIP dynamic routing protocol configuration test

Background of the project

Planning and configuration interface IP address

AR1:

[AR1-GigabitEthernet0/0/0]ip address 20.0.1.1 24
[AR1-GigabitEthernet0/0/1]ip address 10.0.1.1 24

AR2:

[AR2-GigabitEthernet0/0/0]ip address 20.0.1.2 24
[AR2-GigabitEthernet0/0/1]ip address 20.0.2.1 24

AR3

[AR3-GigabitEthernet0/0/0]ip address 20.0.2.2 24
[AR3-GigabitEthernet0/0/1]ip address 10.0.2.1 24

Configuring loopback address

LoopBack0                         192.168.1.1/24       up         up(s)     
LoopBack1                         192.168.2.1/24       up         up(s)     
LoopBack2                         192.168.3.1/24       up         up(s)

Each device configuration RIP announcement

AR1:

 network 20.0.0.0
 network 10.0.0.0

AR2:

 network 20.0.0.0
 network 10.0.0.0

AR3:

 network 20.0.0.0
 network 10.0.0.0

V2 version open in each device, the default is version 1

[AR1-rip-2]version 2

View RIP routing table entries on each device, checking whether the learned.

dis ip routing-table protocol rip 

Route Flags: R - relay, D - download to fib
Public routing table : RIP
         Destinations : 2        Routes : 2        
RIP routing table status : <Active>
         Destinations : 2        Routes : 2
Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

10.0.2.0/24  RIP     100  2           D   20.0.1.2        GigabitEthernet 0/0/0
20.0.2.0/24  RIP     100  1           D   20.0.1.2        GigabitEthernet 0/0/0

RIP routing table status : <Inactive>
         Destinations : 0        Routes : 0

Test connectivity PC1 PING PC2

PC>ping 10.0.1.2

Ping 10.0.1.2: 32 data bytes, Press Ctrl_C to break
From 10.0.1.2: bytes=32 seq=1 ttl=125 time=15 ms
From 10.0.1.2: bytes=32 seq=2 ttl=125 time=32 ms
From 10.0.1.2: bytes=32 seq=3 ttl=125 time=31 ms
From 10.0.1.2: bytes=32 seq=4 ttl=125 time=16 ms
From 10.0.1.2: bytes=32 seq=5 ttl=125 time=31 ms

--- 10.0.1.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 15/25/32 ms

Introducing loopback address AR1 RIP view

[AR1]rip 2
[AR1-rip-2]import-route direct 

Each device after the RIP routing table and finds the introduction of more routing table entries, to do the following interfaces manually polymerized on AR1

[AR1-GigabitEthernet0/0/0]rip summary-address 192.168.0.0 255.255.252.0

Check the routing table AR2, manual aggregation success

[AR2]dis ip routing-table protocol rip 
Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.1.0/24  RIP     100  1           D   20.0.1.1        GigabitEthernet 0/0/0
       10.0.2.0/24  RIP     100  1           D   20.0.2.2        GigabitEthernet 0/0/1
    192.168.0.0/22  RIP     100  1           D   20.0.1.1        GigabitEthernet 0/0/0

Export processing cost value in AR1

[AR1-GigabitEthernet0/0/0]rip metricout 5
//如果需要配置入口则配置命令为:metricin//

View AR2 routing table, find the cost changes

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

10.0.1.0/24  RIP     100  5           D   20.0.1.1         GigabitEthernet0/0/0
10.0.2.0/24  RIP     100  1           D   20.0.2.2         GigabitEthernet0/0/1
192.168.0.0/22  RIP     100  5           D   20.0.1.1      GigabitEthernet0/0/0

Change the priority on AR1

[AR1]rip 2
[AR1-rip-2]preference 10

Table look-up verification, RIP local priorities have changed

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.2.0/24  RIP     10   7           D   20.0.1.2        GigabitEthernet0/0/0
       20.0.2.0/24  RIP     10   6           D   20.0.1.2        GigabitEthernet0/0/0

Do authentication on the AR2

[Huawei-GigabitEthernet0/0/1]rip authentication-mode simple huawei

Wait a moment and check the routing table on the AR3, found not learned RIP routes.

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.2.0/24  Direct  0    0           D   10.0.2.1        GigabitEthernet 0/0/1
       10.0.2.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
     10.0.2.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
       20.0.2.0/24  Direct  0    0           D   20.0.2.2        GigabitEthernet0/0/0
       20.0.2.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/0
     20.0.2.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/0
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

In order to configure the same peer device you can learn the route to the RIP.

Inhibition of RIP packets on an interface,

[AR1-rip-2]silent-interface g0/0/1 //静默接口 只接受 不发送报文

Guess you like

Origin www.cnblogs.com/yu15/p/11184605.html