动态路由练习

文章详细描述了如何基于192.168.1.0/24网段划分骨干链路和环回链路,并配置AR1、AR2和AR3路由器的接口IP,以及使用RIP协议宣告IP网络。
摘要由CSDN通过智能技术生成

题目

在这里插入图片描述

解决步骤

  1. 划分网段
    基于192.168.1.0/24网段,分为骨干链路(路由器直接相连)和环回链路。将192.168.1.0/24分为两个网段,一个配置骨干链路(192.168.1.0/25),一个配置环回链路(192.168.1.128/24)。
  • 骨干链路一共两个网段。因为骨干链路一共就两个ip分配给两个路由的接口,所以主机位就2位(因为主机位全0和全1不能分配)该网段应为192.168.1.0/30和192.168.1.4/30。
  • 环回链路一共四个网段,AR1和AR2分别有两个环回接口。先分别分配两个网段给路由,再从中分配两个网段给路由。AR1(192.168.1.128/27和192.168.1.160/27),AR2(192.168.1.192/27和192.168.1.224/27)


2.分配接口ip

  • 配置AR1的接口
<Huawei>sy
[Huawei]sysname AR1
[AR1]interface g 0/0/0
[AR1-GigabitEthernet0/0/0]ip address 192.168.1.1 30
Jan 29 2024 17:36:16-08:00 AR1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[AR1-GigabitEthernet0/0/0]q
[AR1]interface LoopBack 0
[AR1-LoopBack0]ip address 192.168.1.129 27
[AR1-LoopBack0]q
[AR1]interface LoopBack 1
[AR1-LoopBack1]ip address 192.168.1.177 27
[AR1-LoopBack1]q
[AR1]
<AR1>save 
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  • 配置AR2接口
<Huawei>system-view 	
[Huawei]sysname AR2
[AR2]interface GigabitEthernet 0/0/0
[AR2-GigabitEthernet0/0/0]ip address 192.168.1.2 30
[AR2-GigabitEthernet0/0/0]q	
[AR2]interface g 0/0/1
[AR2-GigabitEthernet0/0/1]ip address 192.168.1.5 30. 
[AR2-GigabitEthernet0/0/1]q
[AR2]interface LoopBack 0
[AR2-LoopBack0]ip address 192.168.1.193 27
[AR2-LoopBack0]q
[AR2]interface LoopBack 1
[AR2-LoopBack1]ip address 192.168.1.225 27
[AR2-LoopBack1]q
<AR2>save 
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  • 配置AR3接口
<Huawei>system-view 	
[Huawei]sysname AR3
[AR3]interface g 0/0/0
[AR3-GigabitEthernet0/0/0]ip address 192.168.1.6 30
[AR3-GigabitEthernet0/0/0]q
[AR3]interface LoopBack 0
[AR3-LoopBack0]ip address 3.3.3.1 24
[AR3-LoopBack0]q
[AR3]
<AR3>save 
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y

3.ip宣告

  • AR1
[AR1-rip-1]network 192.168.1.0//宣告ip主类(A类地址前8位,B类前16,C类前24)
  • AR2

        

<AR2>system-view 	
[AR2]rip 1
[AR2-rip-1]version 2
[AR2-rip-1]undo summary //关闭自动汇总
[AR2-rip-1]network 192.168.1.0
<AR2>save 
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  • AR3

        

<AR3>system-view 
[AR3]rip 1
[AR3-rip-1]version 2
[AR3-rip-1]network 192.168.1.0
[AR3-rip-1]network 0.0.0.0
[AR3-rip-1]
<AR3>save 
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值