静态路由配置示例_难点

简介:
RIP V2配置
r1配置
enable
conf t
host r1
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.0.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.60.1 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.110.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.120.1 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.0.1
network 192.168.60.1
network 192.168.110.2
network 192.168.120.1
end
write
show ip route
 
r2配置
enable 
conf t
host r2
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.10.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.60.2 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.70.1 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.130.2 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.10.1
network 192.168.60.2
network 192.168.70.1
network 192.168.130.2
end
write
show ip route

r3配置
enable
conf t
host r3
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.20.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.80.1 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.70.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.140.2 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.20.1
network 192.168.70.2
network 192.168.80.1
network 192.168.140.2
end
write
show ip route

r4配置
enable 
conf t
host r4
no ip do lo 
line c 0 
logg sy
exit
int e0/0
ip add 192.168.30.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.80.2 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.90.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.120.2 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.30.1
network 192.168.80.2
network 192.168.90.2
network 192.168.120.2
end
write
show ip ro
 
r5配置
enable 
conf t
host r5
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.40.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.100.2 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.90.1 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.130.1 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.40.1
network 192.168.100.2
network 192.168.90.1
network 192.168.130.1
end
write
show ip route

r6配置
enable
conf t
host r6
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.50.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.100.1 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.110.1 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.140.1 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.50.1
network 192.168.100.1
network 192.168.110.1
network 192.168.140.1
end
write
show ip route
 

vpc配置
ip 192.168.0.2 192.168.0.1 24
2
ip 192.168.10.2 192.168.10.1 24
3
ip 192.168.20.2 192.168.20.1 24
4
ip 192.168.30.2 192.168.30.1 24
5
ip 192.168.40.2 192.168.40.1 24
6
ip 192.168.50.2 192.168.50.1 24
 

静态路由配置
r1配置
enable
conf t
host r1
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.0.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.60.1 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.110.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.120.1 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.60.2
ip route 192.168.10.0 255.255.255.0 192.168.60.2
ip route 192.168.70.0 255.255.255.0 192.168.60.2
ip route 192.168.20.0 255.255.255.0 192.168.60.2
ip route 192.168.30.0 255.255.255.0 192.168.120.2
ip route 192.168.80.0 255.255.255.0 192.168.120.2
ip route 192.168.90.0 255.255.255.0 192.168.120.2
ip route 192.168.50.0 255.255.255.0 192.168.110.1
ip route 192.168.100.0 255.255.255.0 192.168.110.1
ip route 192.168.40.0 255.255.255.0 192.168.110.1
ip route 192.168.140.0 255.255.255.0 192.168.110.1
ip route 192.168.130.0 255.255.255.0 192.168.110.1
end
wr
 

r2配置
enable 
conf t
host r2
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.10.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.60.2 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.70.1 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.130.2 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.70.2
ip route 192.168.0.0 255.255.255.0 192.168.60.1
ip route 192.168.110.0 255.255.255.0 192.168.60.1
ip route 192.168.120.0 255.255.255.0 192.168.60.1
ip route 192.168.50.0 255.255.255.0 192.168.60.1
ip route 192.168.20.0 255.255.255.0 192.168.70.2
ip route 192.168.140.0 255.255.255.0 192.168.70.2
ip route 192.168.80.0 255.255.255.0 192.168.70.2
ip route 192.168.40.0 255.255.255.0 192.168.130.1
ip route 192.168.100.0 255.255.255.0 192.168.130.1
ip route 192.168.90.0 255.255.255.0 192.168.130.1
ip route 192.168.30.0 255.255.255.0 192.168.130.1
end
wr

r3配置
enable
conf t
host r3
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.20.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.80.1 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.70.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.140.2 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.80.2
ip route 192.168.30.0 255.255.255.0 192.168.80.2
ip route 192.168.90.0 255.255.255.0 192.168.80.2
ip route 192.168.120.0 255.255.255.0 192.168.80.2
ip route 192.168.10.0 255.255.255.0 192.168.70.1
ip route 192.168.60.0 255.255.255.0 192.168.70.1
ip route 192.168.130.0 255.255.255.0 192.168.70.1
ip route 192.168.50.0 255.255.255.0 192.168.140.1
ip route 192.168.100.0 255.255.255.0 192.168.140.1
ip route 192.168.110.0 255.255.255.0 192.168.140.1
ip route 192.168.120.0 255.255.255.0 192.168.140.1
ip route 192.168.130.0 255.255.255.0 192.168.140.1
end
wr

r4配置
enable 
conf t
host r4
no ip do lo 
line c 0 
logg sy
exit
int e0/0
ip add 192.168.30.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.80.2 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.90.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.120.2 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.90.1
ip route 192.168.40.0 255.255.255.0 192.168.90.1
ip route 192.168.100.0 255.255.255.0 192.168.90.1
ip route 192.168.130.0 255.255.255.0 192.168.90.1
ip route 192.168.50.0 255.255.255.0 192.168.90.1
ip route 192.168.0.0 255.255.255.0 192.168.120.1
ip route 192.168.110.0 255.255.255.0 192.168.120.1
ip route 192.168.60.0 255.255.255.0 192.168.120.1
ip route 192.168.20.0 255.255.255.0 192.168.80.1
ip route 192.168.10.0 255.255.255.0 192.168.80.1
ip route 192.168.140.0 255.255.255.0 192.168.80.1
ip route 192.168.130.0 255.255.255.0 192.168.80.1
end
wr
 
r5配置
enable 
conf t
host r5
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.40.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.100.2 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.90.1 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.130.1 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.100.1
ip route 192.168.50.0 255.255.255.0 192.168.100.1
ip route 192.168.110.0 255.255.255.0 192.168.100.1
ip route 192.168.0.0 255.255.255.0 192.168.100.1
ip route 192.168.10.0 255.255.255.0 192.168.130.2
ip route 192.168.60.0 255.255.255.0 192.168.130.2
ip route 192.168.70.0 255.255.255.0 192.168.130.2
ip route 192.168.30.0 255.255.255.0 192.168.190.2
ip route 192.168.80.0 255.255.255.0 192.168.190.2
ip route 192.168.40.0 255.255.255.0 192.168.190.2
ip route 192.168.140.0 255.255.255.0 192.168.100.1
ip route 192.168.130.0 255.255.255.0 192.168.90.2
end
wr
 
r6配置
enable
conf t
host r6
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.50.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.100.1 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.110.1 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.140.1 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.110.2
ip route 192.168.0.0 255.255.255.0 192.168.110.2
ip route 192.168.60.0 255.255.255.0 192.168.110.2
ip route 192.168.120.0 255.255.255.0 192.168.110.2
ip route 192.168.40.0 255.255.255.0 192.168.100.2
ip route 192.168.130.0 255.255.255.0 192.168.100.2
ip route 192.168.90.0 255.255.255.0 192.168.100.2
ip route 192.168.20.0 255.255.255.0 192.168.140.2
ip route 192.168.70.0 255.255.255.0 192.168.140.2
ip route 192.168.10.0 255.255.255.0 192.168.140.2
ip route 192.168.80.0 255.255.255.0 192.168.140.2
ip route 192.168.30.0 255.255.255.0 192.168.140.2
end
wr
 


本文转自devilangel 51CTO博客,原文链接:http://blog.51cto.com/devliangel/99892,如需转载请自行联系原作者

相关文章
|
9月前
|
弹性计算 Linux 数据安全/隐私保护
阿里云幻兽帕鲁联机服务器搭建全攻略,速来抄作业!2025新版教程
阿里云提供2025年最新幻兽帕鲁服务器申请购买及一键开服教程。4核16G配置支持8人,70元/月;8核32G配置支持20人,160元/月。选择配置、地域、操作系统后,点击【一键购买及部署】,约3分钟完成创建。本地安装STEAM客户端并登录,进入游戏选择多人模式,输入服务器IP和端口(8211),即可开始游戏。详细教程及更多问题解答请参考阿里云幻兽帕鲁游戏专区。
373 20
|
10月前
|
Web App开发 安全 数据建模
四个步骤,教会你怎么选择SSL证书
SSL证书是保护网站数据安全的核心工具,只需四步匹配适合的证书:1. 明确需求场景,选择DV、OV或EV证书;2. 确认域名覆盖范围,选单域名、通配符或多域名证书;3. 选择可信CA机构,确保浏览器兼容性;4. 对比价格与服务,考虑售后和技术支持。
|
存储 关系型数据库 MySQL
MySQL 索引结构及其优劣
【10月更文挑战第12天】不同的索引结构各有其适用场景,在实际应用中,需要根据数据特点、查询需求等因素综合考虑选择合适的索引结构。同时,过多或不合理的索引也可能会带来一些负面影响,如增加存储开销、降低数据插入和更新的速度等。因此,在设计索引时需要进行合理的规划和优化。
314 57
|
编解码 移动开发 HTML5
简要描述多媒体的格式都有哪些
【10月更文挑战第5天】简要描述多媒体的格式都有哪些。
296 3
|
移动开发 编解码 数据可视化
低代码可视化-uniapp SliderRange区间组件-代码生成器
SliderRange区间组件是一种用户界面元素,允许用户通过拖动滑块选择数值范围。组件支持微信小程序、H5和App,具有高度可定制性、响应式设计和多种事件处理功能。适用于价格筛选、音量调节等场景。代码实现包括滑动区域、滑块、事件处理等部分,支持可视化配置步长、颜色等属性。使用时需注意选择合适步长、提供清晰标签和考虑无障碍设计。
388 0
|
数据中心
Cat5 与 Cat5e:两种网线的区别和比较
Cat5 与 Cat5e:两种网线的区别和比较
1185 1
Cat5 与 Cat5e:两种网线的区别和比较
|
存储 算法
路径压缩 (Path Compression)
路径压缩 (Path Compression) 是一种用于求解最短路径问题的算法,通常用于 Dijkstra 算法中,可以加速求解最短路径问题。 路径压缩通过将已经确定的最短路径信息传递给未确定最短路径的节点,来加速最短路径的计算。具体来说,当一个节点的最短路径已经确定时,它会将这个信息传递给所有它的邻居节点,这样邻居节点就可以跳过一些不必要的计算,直接使用已经确定的最短路径信息,从而加速整个最短路径的计算过程。
669 3
电脑登录某些网站失败的解决方法-关闭网络代理
电脑登录某些网站失败的解决方法-关闭网络代理
430 0
电脑登录某些网站失败的解决方法-关闭网络代理
|
NoSQL Cloud Native 关系型数据库
阿里云数据库是什么?阿里云数据库的优势和应用场景
阿里云数据库是什么?阿里云数据库的优势和应用场景
711 0