组网 RIP配置实验

本文详细介绍如何配置RouterA和RouterB的RIP路由,包括基本IP接口设置、RIP路由的网络宣告,以及通过show ip route检查配置效果。通过实际操作演示了如何确保客户机间通信,最后展示了如何删除RIP协议。

实验拓扑

在这里插入图片描述

实验要求

(1)路由器的基本配置:设置路由接口IP地址

(2)根据以上拓扑划分出的三个网段,要求配置RIP路由使所有客户机都能通信,该如何实现?


实验步骤

路由器的基本配置

设置路由器接口IP地址

  1. RouterA的基本配置

在这里插入图片描述

Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#no ip domain-look
Router(config)#int f0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#int f1/0
Router(config-if)#ip address 172.1.1.1 255.255.255.0
Router(config-if)#no shut
  1. RouterB的基本配置

在这里插入图片描述

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#no ip domain-look
Router(config)#int f0/0
Router(config-if)#ip address 172.2.2.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#int f1/0
Router(config-if)#ip address 192.168.1.2 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
  1. RIP路由配置

    RouterA的RIP路由配置

在这里插入图片描述

Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 172.1.1.0
Router(config-router)#network 192.168.1.0
Router(config-router)#end

RouterB的RIP路由配置

在这里插入图片描述

Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#router rip(进入路由配置模式)
Router(config-router)#network 172.2.2.0
Router(config-router)#network 192.168.1.0
Router(config-router)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
  1. 查看配置

    在RouterA运行show ip route会显示路由配置信息

在这里插入图片描述

在RouterB运行show ip route会显示路由配置信息

在这里插入图片描述

  1. 测试连通,如果互通就说明配置成功

    ip route 0.0.0.0 0.0.0.0 192.168.1.2
    
  2. 删除路由协议

no router rip
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

阿呆攻防

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值