RIP配置实验

一,实验需求

1,R3环回为3.3.3.0/24

2, 其他基于192.168.1.0/24进行划分

3 ,R1/R2均存在两个环回

4,整个网络运行RIPV2,但不能直接宣告R3的环回

5 ,全网可达,保障更新安全,减少路由条目数量,避免环路

二,实验目的

掌握RIPV2手工认证配置

掌握RIPV2的手工汇总配置

掌握RIP缺省路由配置

掌握空接口路由配置防止环路出现

掌握RIP基础配置

三,实验步骤

1,新建拓扑,布置器件,连线开机

2,数广播域,划分网段

骨干链路

192.168.1.128/26 R1-R2

192.168.1.192/26 R2-R3

r1环回 192.168.1.0/26 192.168.1.0/27 192.168.1.32/27

r2环回 192.168.1.64/26 192.168.1.64/27 192.168.1.96/27

 

3,每个接口配置IP地址并更改名字(记得保存配置)

R1配置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1
[r1]int	
[r1]interface g	
[r1]interface GigabitEthernet 0/0/0
[r1-GigabitEthernet0/0/0]ip addr	
[r1-GigabitEthernet0/0/0]ip address 192.168.1.129 26
Oct 13 2023 23:10:24-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r1-GigabitEthernet0/0/0]int l 0
[r1-LoopBack0]ip address 192.168.1.1 27
[r1-LoopBack0]int l 1
[r1-LoopBack1]ip address 192.168.1.33 27
[r1-LoopBack1]q
[r1]q
<r1>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated

R2配置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys r2
[r2]int	
[r2]interface g	
[r2]interface GigabitEthernet 0/0/0
[r2-GigabitEthernet0/0/0]ip a	
[r2-GigabitEthernet0/0/0]ip accounting
[r2-GigabitEthernet0/0/0]ip address 192.168.1.130 26
Oct 13 2023 23:15:55-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r2-GigabitEthernet0/0/0]interface GigabitEthernet 0/0/1
[r2-GigabitEthernet0/0/1]ip address 192.168.1.193 26
Oct 13 2023 23:16:09-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r2-GigabitEthernet0/0/1]int l 0
[r2-LoopBack0]ip address 192.168.1.65 27
[r2-LoopBack0]int l 1
[r2-LoopBack1]ip address 192.168.1.97 27
[r2-LoopBack1]q
[r2]q
<r2>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated

R3配置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r3
[r3]int	
[r3]interface g	
[r3]interface GigabitEthernet 0/0/0
[r3-GigabitEthernet0/0/0]ip ad	
[r3-GigabitEthernet0/0/0]ip address 192.168.1.194 26
Oct 13 2023 23:18:36-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]int l 0
[r3-LoopBack0]ip address 3.3.3.3 24
[r3-LoopBack0]q
[r3]q
<r3>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated

4,配置RIPV2,实现全网可达,进行RIPV2的手工汇总,为避免出现环路,配置空接口路由。

RIP基础配置

1,启动RIP进程

2,选择版本

3,宣告

R1配置

[r1]rip 1
[r1-rip-1]v	
[r1-rip-1]verify-source
[r1-rip-1]version 2
[r1-rip-1]network 192.168.1.0

R2配置

<r2>sys
Enter system view, return user view with Ctrl+Z.
[r2]rip 1
[r2-rip-1]ve	
[r2-rip-1]verify-source
[r2-rip-1]version 2
[r2-rip-1]network 192.168.1.0

R3配置(不能直接宣告R3的环回,配置RIP缺省路由.)

<r3>sys
Enter system view, return user view with Ctrl+Z.
[r3]rip 
[r3-rip-1]ver	
[r3-rip-1]verify-source
[r3-rip-1]version 2
[r3-rip-1]network 192.168.1.0
[r3-rip-1]default-route originate

5,为了保障更新安全,进行RIPV2的手工认证,为了减少路由条目数量,避免环路,配置手工汇总,空接口防环配置

[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123456
[r1-GigabitEthernet0/0/0]rip summary-address 192.168.1.0 255.255.255.192
[r1]ip route-static 192.168.1.0 26 null 0
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123456
[r2-GigabitEthernet0/0/0]rip sum	
[r2-GigabitEthernet0/0/0]rip summary-address 192.168.1.64 255.255.255.192
[r2-GigabitEthernet0/0/0]q
[r2]int g 0/0/1
[r2-GigabitEthernet0/0/1]rip au	
[r2-GigabitEthernet0/0/1]rip authentication-mode md5 usual c	
[r2-GigabitEthernet0/0/1]rip authentication-mode md5 usual cipher 123456
[r2-GigabitEthernet0/0/1]rip sum	
[r2-GigabitEthernet0/0/1]rip summary-address 192.168.1.64 255.255.255.192
[r2-GigabitEthernet0/0/0]q
[r2]ip ro	
[r2]ip route
[r2]ip route-static 192.168.1.64 26 null 0
[r3]int g	
[r3]int GigabitEthernet 0/0/0
[r3-GigabitEthernet0/0/0]rip au	
[r3-GigabitEthernet0/0/0]rip authentication-mode md5 usual c	
[r3-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123456
[r3-GigabitEthernet0/0/0]q
[r3]q
<r3>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated

6,检验:display ip routing-table protocol rip

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值