动态路由协议 — RIPv1配置

目录

 

(1)拓扑结构图

(2)在路由器AR1上配置RIP

(3)在路由器AR2上配置RIP

(4)PC配置

(5)验证RIPv1的配置效果

(6)验证PC连通(成功)


(1)拓扑结构图

   管理员要在AR1和AR2上启用RIPv1,并且在RIPv1中通告两台路由器各自直连的子网,使PC1和PC2之间可以进行通信。

(2)在路由器AR1上配置RIP

  • 修改名称
<Huawei>system
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR1
[AR1]
  • 配置接口和RIP
[AR1]interface g0/0/0
[AR1-GigabitEthernet0/0/0]ip address 10.0.1.254 24
[AR1-GigabitEthernet0/0/0]quit

[AR1]interface s0/0/0
[AR1-Serial0/0/0]ip address 10.0.12.1 24
[AR1-Serial0/0/0]quit

[AR1]rip
[AR1-rip-1]network 10.0.0.0

(3)在路由器AR2上配置RIP

  • 修改名称
<Huawei>system
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR2
[AR2]
  • 配置接口和RIP
[AR2]interface g0/0/0
[AR2-GigabitEthernet0/0/0]ip address 10.0.2.254 24
[AR2-GigabitEthernet0/0/0]quit

[AR2]interface s0/0/0
[AR2-Serial0/0/0]ip address 10.0.12.2 24
[AR2-Serial0/0/0]quit

[AR2]rip
[AR2-rip-1]network 10.0.0.0

(4)PC配置

(5)验证RIPv1的配置效果

[AR1]display ip routing-table protocol rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
         Destinations : 1        Routes : 1        

RIP routing table status : <Active>
         Destinations : 1        Routes : 1

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.2.0/24  RIP     100  1           D   10.0.12.2       Serial0/0/0

RIP routing table status : <Inactive>
         Destinations : 0        Routes : 0
[AR2]display ip routing-table protocol rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
         Destinations : 1        Routes : 1        

RIP routing table status : <Active>
         Destinations : 1        Routes : 1

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.1.0/24  RIP     100  1           D   10.0.12.1       Serial0/0/0

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

(6)验证PC连通(成功)

猜你喜欢

转载自blog.csdn.net/fanjufei123456/article/details/105745370