eNSP 动态路由(RIP)


Ⅰ RIP简介

Routing Information Protocol,路由信息协议。两个网段中的两台电脑能相互访问,那么需要在每台路由器上做静态路由来实现,但是做静态路由需要知道下一跳的地址。在小型的网络中,我们用rip协议来实现(RIP协议通常应用在小型网络,用于发现和生成路由信息),只需要知道本台路由器上接口的网段的地址就可以了。

Ⅱ 构建拓扑图

在这里插入图片描述

Ⅲ 配置pc ipv4

① pc1

在这里插入图片描述

② pc2

在这里插入图片描述

Ⅳ 路由器端口配置IP地址

① R1命令:

sys
[Huawei]sysname R1
[R1]un in en
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.1.1 24
[R1-GigabitEthernet0/0/1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 10.0.0.1 24
[R1-GigabitEthernet0/0/0]quit
[R1]quit
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命令:

sys
[Huawei]un in en
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.2.1 24
[Huawei-GigabitEthernet0/0/1]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 10.0.0.2 24
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]sysname R2
[R2]quit
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

Ⅴ 配置rip协议:

① R1:

sys
Enter system view, return user view with Ctrl+Z.
[R1]rip
[R1-rip-1]version 2 #可以选择版本2
[R1-rip-1]network 10.0.0.0
[R1-rip-1]network 192.168.2.0
[R1-rip-1]quit
[R1]quit
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:

sys
Enter system view, return user view with Ctrl+Z.
[R2]rip
[R2-rip-1]version 2 #可以选择版本2
[R2-rip-1]network 10.0.0.0
[R2-rip-1]network 192.168.2.0
[R2-rip-1]quit
[R2]quit
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

Ⅵ 测试连通性

① pc1

在这里插入图片描述

② pc2

在这里插入图片描述

Ⅶ 总结

记住network + 与本路由器接口的网段地址就可以了,注意结合拓扑图即可。

  • 5
    点赞
  • 94
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

梁辰兴

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

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

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

打赏作者

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

抵扣说明:

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

余额充值