hcia作业 关于rip的配置 实验报告

题如图

要求:
1、路由器上分别配置环回
2、连接路由器的线速网段为12.1.1.0/24、23.1.1.0/24
3、R1和R3连接的网络地址分别为192.168.1.0/24、192.168.2.0/24
4、整个网络使用RIP达到全网可达

 一、实验分析

1、配好每个路由器的接口IP与环回IP pc端可以手工配也可以DHCP 建议手工配省事

2、在每个路由器配置好RIP表 实现全网互通 注意检查配置

3、使用pc1 ping到pc2那端 如果通 证明实验成功

实验拓扑图的补充:

AR1的环回IP:1.1.1.1/32

g 0/0/0口的IP:192.168.1.254/24

g 0/0/1口的IP:12.1.1.1/24

AR2的环回IP:2.2.2.2/32

g 0/0/0口的IP:12.1.1.2/24

g 0/0/1口的IP:23.1.1.1/24

AR3的环回IP:3.3.3.3/32

g 0/0/0口的IP:23.1.1.2/24

g 0/0/1口的IP:192.168.2.254/24

第一步:配置pc的IP与路由器的IP

pc1的配置如图:

pc2的配置如图:

pc3的配置如图:

pc4的配置如图:

AR1的配置环回IP接口其他接口的指令:

[Huawei]sys ar1
[ar1]int LoopBack 0
[ar1-LoopBack0]ip address 1.1.1.1 32
[ar1-LoopBack0]q
[ar1]int g 0/0/0
[ar1-GigabitEthernet0/0/0]ip add    
[ar1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[ar1-GigabitEthernet0/0/0]q
[ar1]int g 0/0/1
[ar1-GigabitEthernet0/0/1]ip address 12.1.1.1 24

配好之后检查配置 :

[AR1-GigabitEthernet0/0/1]display ip interface brief

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.254/24     up         up        
GigabitEthernet0/0/1              12.1.1.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         1.1.1.1/32           up         up(s)     
NULL0                             unassigned           up         up(s)    

以上配置成功 完成AR1配置接口任务

AR2的配置环回IP接口其他接口的指令:

[Huawei]SYS AR2

[AR2]int LoopBack 0
[AR2-LoopBack0]ip address 2.2.2.2 32
[AR2-LoopBack0]q
[AR2]int g 0/0/0
[AR2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[AR2-GigabitEthernet0/0/0]q   
[AR2]int g 0/0/1
[AR2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
[AR2-GigabitEthernet0/0/1]q

检查配置:

[AR2]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.1.1.2/24          up         up        
GigabitEthernet0/0/1              23.1.1.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         2.2.2.2/32           up         up(s)     
NULL0                             unassigned           up         up(s)  

 

AR3的配置环回IP接口其他接口的指令:

[ar3]int g 0/0/0
[ar3-GigabitEthernet0/0/0]ip address 32.1.1.2 24
[ar3-GigabitEthernet0/0/0]q
[ar3]int g 0/0/1
[ar3-GigabitEthernet0/0/1]ip address 192.168.2.254 24
[ar3-GigabitEthernet0/0/1]q
[ar3]int LoopBack 0  
[ar3-LoopBack0]ip address 3.3.3.4 32

检查配置:

[ar3]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              32.1.1.2/24          up         up        
GigabitEthernet0/0/1              192.168.2.254/24     up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         3.3.3.4/32           up         up(s)     
NULL0                             unassigned           up         up(s) 

 

完成配置

第二步:配置RIP表(使用version 2版本)

AR1的配置:

[AR1]rip 1
[AR1-rip-1]version 2
[AR1-rip-1]network 192.168.1.0
[AR1-rip-1]network 12.0.0.0
[AR1-rip-1]network 1.0.0.0

检查配置:

 [AR1-rip-1]display ip routing-table protocol rip

Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
         Destinations : 4        Routes : 4        

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        2.2.2.2/32  RIP     100  1           D   12.1.1.2        GigabitEthernet
0/0/1
        3.3.3.3/32  RIP     100  2           D   12.1.1.2        GigabitEthernet
0/0/1
       23.1.1.0/24  RIP     100  1           D   12.1.1.2        GigabitEthernet
0/0/1
    192.168.2.0/24  RIP     100  2           D   12.1.1.2        GigabitEthernet
0/0/1

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

完成RIP表配置

 AR2的配置:

[AR2]rip 1
[AR2-rip-1]version 2
[AR2-rip-1]network 12.0.0.0
[AR2-rip-1]network 23.0.0.0
[AR2-rip-1]network 2.0.0.0

 

检查配置:

[AR2-rip-1]display ip routing-table protocol rip 

Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
         Destinations : 4        Routes : 4        

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  RIP     100  1           D   12.1.1.1        GigabitEthernet
0/0/0
        3.3.3.3/32  RIP     100  1           D   23.1.1.2        GigabitEthernet
0/0/1
    192.168.1.0/24  RIP     100  1           D   12.1.1.1        GigabitEthernet
0/0/0
    192.168.2.0/24  RIP     100  1           D   23.1.1.2        GigabitEthernet
0/0/1

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

完成RIP表配置

AR3的配置:

[AR3]rip 1
[AR3-rip-1]version 2
[AR3-rip-1]network 23.0.0.0
[AR3-rip-1]network 192.168.2.0
[AR3-rip-1]network 3.0.0.0

检查配置:

 

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

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  RIP     100  2           D   23.1.1.1        GigabitEthernet
0/0/0
        2.2.2.2/32  RIP     100  1           D   23.1.1.1        GigabitEthernet
0/0/0
       12.1.1.0/24  RIP     100  1           D   23.1.1.1        GigabitEthernet
0/0/0
    192.168.1.0/24  RIP     100  2           D   23.1.1.1        GigabitEthernet
0/0/0

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

完成配置

第三步:配好之后,路由与pc互相ping(如果能ping通,实验rip表全网可通实现) 

如图所示:

pc1 ping pc3:

可通

pc3 ping pc1:

可通

AR1 ping pc3:

可通

AR1 ping 环回IP 3.3.3.3:

可通

AR3 ping pc1

可通

实验成功!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值