hcia rip实验

实验需求

1、R3环回为3.3.3.0/24
2、其他基于192.168.1.0/24进行划分
3、r1/2 均存在两个环回
4、整个网络运行RIPV2,但不能直接宣告R3的环回
5、全网可达,保障更新安全,减少路由条目数量,避免环路

分析

共4个网段(2骨干链路+2环回)将192.168.1.0/24划出4个子网

192.168.1.0/26

192.168.1.64/26------------------>骨干链路

192.168.1.128/26

192.168.1.192/26-------------------->环回

接着继续划分环回子网

192.168.1.128/26----------192.168.1.128/27          192.168.1.160/27

192.168.1.192/26----------192.168.1.192/27          192.168.1.224/27

实验拓扑

 配置接口及环回地址(使用sysnameR1/R2/R3,更改设备名称为R1、R2、R3)

R1

[Huawei]sysname R1
[R1]INT L0
[R1-LoopBack0]IP ADD 192.168.1.129 27
[R1-LoopBack0]INT L1
[R1-LoopBack1]IP ADD 192.168.1.161 27
[R1-LoopBack1]INT G0/0/1
[R1-GigabitEthernet0/0/1]IP ADD 192.168.1.1 26

R2

[R2]INT L0
[R2-LoopBack0]IP ADD 192.168.1.193 27
[R2-LoopBack0]INT L1
[R2-LoopBack1]IP ADD 192.168.1.225 27
[R2-LoopBack1]INT G0/0/0
[R2-GigabitEthernet0/0/0]IP ADD 192.168.1.2 26
[R2-GigabitEthernet0/0/0]INT G0/0/1
[R2-GigabitEthernet0/0/1]IP ADD 192.168.1.65 26
[R2-GigabitEthernet0/0/1]DIS IP INT BRI
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.2/26       up         up        
GigabitEthernet0/0/1              192.168.1.65/26      up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.193/27     up         up(s)     
LoopBack1                         192.168.1.225/27     up         up(s)     
NULL0                             unassigned           up         up(s)     

R3

[R3]INT L0
[R3-LoopBack0]IP ADD 3.3.3.1 24
[R3-LoopBack0]INT G0/0/0
[R3-GigabitEthernet0/0/0]IP ADD 192.168.1.66 26
Jul 11 2022 20:10:25-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]Q
[R3]DIS IP INT BRI
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.66/26      up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         3.3.3.1/24           up         up(s)     
NULL0                             unassigned           up         up(s)    

填写动态路由协议(rip),宣告接口

R1

[R1]RIP 1
[R1-rip-1]VERSION 2
[R1-rip-1]NETWORK 192.168.1.0

R2

[R2]RIP 1
[R2-rip-1]VERSION 2
[R2-rip-1]NETWORK 192.168.1.0

R3

[R3]RIP 1
[R3-rip-1]default-route originate
[R3-rip-1]VER	
[R3-rip-1]VERSION 2
[R3-rip-1]NET	
[R3-rip-1]network 192.168.1.0

 进行加密配置,保证安全,并在R1、R2上设置空接口,以避免环路(注:密码配置需一致)

R1

[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]rip authentication-mode md5 usual cipher 1234
[R1-GigabitEthernet0/0/1]rip summary-address 192.168.1.128 255.255.255.192
[R1]Q
[R1]IP ROUTE-STATIC 192.168.1.128 26 NULL 0

R2 

[R2]INT G0/0/0
[R2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 1234
[R2-GigabitEthernet0/0/0]RIP SUMMARY-ADD 192.168.1.192 255.255.255.192
[R2-GigabitEthernet0/0/0]INT G0/0/1
[R2-GigabitEthernet0/0/1]rip authentication-mode md5 usual cipher 1234
[R2-GigabitEthernet0/0/1]RIP SUMMARY-ADD 192.168.1.192 255.255.255.192
[R2-GigabitEthernet0/0/1]q
[R2]ip route-static 192.168.1.192 26 null 0

R3

[R3]INT G0/0/0
[R3-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 1234

 检测(display ip routing-table protocol rip)

 ping一下

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值