用静态路由配置各路由器使得三地的网络能够通信
用静态路由配置各路由器使得三地的网络能够通信 实验环境如下: ⑴ R1路由器配置IP地址和IP路由:
R1#conf t
R1(config)#interface f0/0
R1(config-if)#ip address 10.1.1.254 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#interface s0/0
R1(config-if)#ip address 10.1.2.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 10.1.3.0 255.255.255.0 10.1.2.2
R1(config)#ip route 10.1.4.0 255.255.255.0 10.1.2.2
⑵ R2路由器配置IP地址和IP路由:
R2#conf t
R2(config)#interface s0/0
R2(config-if)#ip address 10.1.2.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config-if)#interface s0/1
R2(config-if)#ip address 10.1.3.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#ip route 10.1.1.0 255.255.255.0 10.1.2.1
R2(config)#ip route 10.1.4.0 255.255.255.0 10.1.3.2
⑶ R3路由器配置IP地址和IP路由:
R3#conf t
R3(config)#interface f0/0
R3(config-if)#ip address 10.1.4.254 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#interface s0/0
R3(config-if)#ip address 10.1.3.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#ip route 10.1.1.0 255.255.255.0 10.1.3.1
R3(config)#ip route 10.1.2.0 255.255.255.0 10.1.3.1
⑷ 在R1、R2、R3路由器上检查接口、路由情况:
R1#show ip route 。。。。。
【用静态路由配置各路由器使得三地的网络能够通信】转载于:https://blog.51cto.com/project/234044
推荐阅读
- Docker应用:容器间通信与Mariadb数据库主从复制
- JS中的各种宽高度定义及其应用
- 由浅入深理解AOP
- 【译】20个更有效地使用谷歌搜索的技巧
- 涉毒患者(新诗)
- 参保人员因患病来不及到指定的医疗机构就医,能否报销医疗费用()
- mybatisplus如何在xml的连表查询中使用queryWrapper
- MybatisPlus|MybatisPlus LambdaQueryWrapper使用int默认值的坑及解决
- MybatisPlus使用queryWrapper如何实现复杂查询
- 标签、语法规范、内联框架、超链接、CSS的编写位置、CSS语法、开发工具、块和内联、常用选择器、后代元素选择器、伪类、伪元素。