[首页]
[文章]
[教程]
首页
Web开发
Windows开发
编程语言
数据库技术
移动平台
系统服务
微信
设计
布布扣
其他
数据分析
首页
>
其他
> 详细
简单搭建OSPF,RIP,NSSA,外部路由汇总网络拓扑
时间:
2019-05-13 12:32:56
阅读:
184
评论:
0
收藏:
0
[点我收藏+]
今天简单来搭建一个网络拓扑,简单做一个小小的实验
推荐步骤:
根据拓扑图设备配置IP地址
配置OSPF将不同的网络发布到不同的OSPF区域
3.R2访问R1的Lo0配置静态路由,在R2配置路由重分发
4.R5访问R7的Lo0配置默认路由重新发布默认路由
5.R4和R6上配置RIP
6.在R4上配置重新发布RIP和OSPF
7.R4配置外部路由汇总
8.将Area2区域配置为NSSA区域看其他OSPF区域路由表的变化
9.全网互通
实验步骤:
根据拓扑图设备配置IP地址
1)在R1配置0/0接口和loop back 0接口IP地址
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 172.16.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface loopback 0
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#exit
2)Show ip inter b查看R1两个IP是否配置成功
3)R2进入0/0和1/0接口配置IP地址
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 172.16.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastEthernet 1/0
R2(config-if)#ip address 172.16.2.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
4)Show ip inter b查看R2的两个IP是否配置成功
5)R3进入1/0和0/0接口配置IP地址
R3(config)#interface fastEthernet 1/0
R3(config-if)#ip address 172.16.2.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 172.16.3.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
6)Show ip inter b查看R3两个IP是否配置成功
7)R4进入0/0 1/0 2/0配置IP地址
R4(config)#interface fastEthernet 0/0
R4(config-if)#ip address 172.16.3.2 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface fastEthernet 1/0
R4(config-if)#ip address 172.16.7.1 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface fastEthernet 2/0
R4(config-if)#ip address 172.16.4.1 255.255.255.0
R4(config-if)#no shutdown
8)Show ip inter b查看R4两个IP是否配置成功
9)R5进入0/0和1/0接口配置R5两个IP地址
R5(config)#interface fastEthernet 0/0
R5(config-if)#ip address 172.16.4.2 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#interface fastEthernet 1/0
R5(config-if)#ip address 172.16.5.1 255.255.255.0
R5(config-if)#no shutdown
10)Show ip inter b查看R5两个IP是否配置成功
11)R6进入0/0和loopback0 1 2 3接口配置IP地址
R6(config)#interface fastEthernet 0/0
R6(config-if)#ip address 172.16.7.2 255.255.255.0
R6(config-if)#no shutdown
R6(config-if)#exit
R6(config)#interface loopback 0
R6(config-if)#ip address 172.16.8.1 255.255.255.0
R6(config-if)#exit
R6(config)#interface loopback 1
R6(config-if)#ip address 172.16.9.1 255.255.255.0
R6(config-if)#exit
R6(config)#interface loopback 2
R6(config-if)#ip address 172.16.10.1 255.255.255.0
R6(config-if)#exit
R6(config)#interface loopback 3
R6(config-if)#ip address 172.16.11.1 255.255.255.0
R6(config-if)#exit
12)Show ip inter b查看IP是否配置成功
13)R7进入0/0接口和loop back0配置IP地址
R7(config)#interface fastEthernet 0/0
R7(config-if)#ip address 172.16.5.2 255.255.255.0
R7(config-if)#no shutdown
R7(config-if)#exit
R7(config)#interface loopback 0
R7(config-if)#ip address 172.16.6.1 255.255.255.0
R7(config-if)#exit
14)Show ip inter b查看IP是否配置成功
配置OSPF将不同的网络发布到不同的OSPF区域
1)R2启动OSPF进程宣告直连网络
R2(config)#router ospf 1
R2(config-router)#network 172.16.2.0 0.0.0.255 area 1
R2(config-router)#exit
2)R3启动OSPF进程宣告直连网络
R3(config)#router ospf 1
R3(config-router)#network 172.16.2.0 0.0.0.255 area 1
R3(config-router)#network 172.16.3.0 0.0.0.255 area 0
R3(config-router)#exit
3)R4启动OSPF进程宣告直连网络
R4(config)#router ospf 1
R4(config-router)#network 172.16.3.0 0.0.0.255 area 0
R4(config-router)#network 172.16.4.0 0.0.0.255 area 2
R4(config-router)#exit
4)R5启动OSPF进程宣告直连网络
R5(config)#router ospf 1
R5(config-router)#network 172.16.4.0 0.0.0.255 area 2
R5(config-router)#exit
5)用ping其他网段,
3.R2访问R1的Lo0配置静态路由,在R2配置路由重分发
1)R2配置静态路由下一跳地址为172.16.1.1
R1配置默认路由下一跳地址为172.16.1.2
R2(config)#ip route 192.168.10.0 255.255.255.0 172.16.1.1
R1(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.2
R2(config)#exit
2)重新分发直连和静态
R2(config)#router ospf 1
R2(config-router)#redistribute connected subnets
R2(config-router)#redistribute static subnets
R2(config-router)#exit
3)PingR1的loop back 0接口
4.R5访问R7的Lo0配置默认路由重新发布默认路由
1)R5配置默认下一跳地址为172.16.5.2
R7配置默认下一跳地址为172.16.5.1
R5(config)#ip route 0.0.0.0 0.0.0.0 172.16.5.2
R7(config)#ip route 0.0.0.0 0.0.0.0 172.16.5.1
2)重新分发直连和默认路由
R5(config)#router ospf 1
R5(config-router)#redistribute connected subnets
R5(config-router)#default-information originate
R5(config-router)#exit
3)PingR3的loop back 0接口
5.R4和R6上配置RIP
1)R4启动RIP进程,宣告直连
R4(config)#router rip
R4(config-router)#network 172.16.7.0
2)R6启动RIP进程,宣告直连网络
R6(config)#router rip
R6(config-router)#network 172.16.7.0
R6(config-router)#network 172.16.8.0
R6(config-router)#network 172.16.9.0
R6(config-router)#network 172.16.10.0
R6(config-router)#network 172.16.11.0
R6(config-router)#exit
6.在R4上配置重新发布RIP和OSPF
1)路由重分发RIP发布到ospf中
R4(config)#router ospf 1
R4(config-router)#redistribute rip subnets
R4(config-router)#exit
2)路由重分发OSPF发布到RIP中
R4(config)#router rip
R4(config-router)#redistribute ospf 1 metric 10
R4(config-router)#exit
3)ping
7.R4配置外部路由汇总
R4(config)#router ospf 1
R4(config-router)#summary-address 172.16.0.0 255.255.240.0
R4(config-router)#exit
8.将Area2区域配置为NSSA区域看其他OSPF区域路由表的变化
1)Area 2配置为NSSA区域
R4(config)#router ospf 1
R4(config-router)#area 2 nssa
R5(config)#router ospf 1
R5(config-router)#area 2 nssa
9.全网互通
1)在任何一个路由器上ping都是互通
简单搭建OSPF,RIP,NSSA,外部路由汇总网络拓扑
原文:https://blog.51cto.com/14156658/2393402
踩
(
0
)
赞
(
0
)
举报
评论
一句话评论(
0
)
登录后才能评论!
分享档案
更多>
2021年09月23日 (328)
2021年09月24日 (313)
2021年09月17日 (191)
2021年09月15日 (369)
2021年09月16日 (411)
2021年09月13日 (439)
2021年09月11日 (398)
2021年09月12日 (393)
2021年09月10日 (160)
2021年09月08日 (222)
最新文章
更多>
2021/09/28 scripts
2022-05-27
vue自定义全局指令v-emoji限制input输入表情和特殊字符
2022-05-27
9.26学习总结
2022-05-27
vim操作
2022-05-27
深入理解计算机基础 第三章
2022-05-27
C++ string 作为形参与引用传递(转)
2022-05-27
python 加解密
2022-05-27
JavaScript-对象数组里根据id获取name,对象可能有children属性
2022-05-27
SQL语句——保持现有内容在后面增加内容
2022-05-27
virsh命令文档
2022-05-27
教程昨日排行
更多>
1.
list.reverse()
2.
Django Admin 管理工具
3.
AppML 案例模型
4.
HTML 标签列表(功能排序)
5.
HTML 颜色名
6.
HTML 语言代码
7.
jQuery 事件
8.
jEasyUI 创建分割按钮
9.
jEasyUI 创建复杂布局
10.
jEasyUI 创建简单窗口
友情链接
汇智网
PHP教程
插件网
关于我们
-
联系我们
-
留言反馈
- 联系我们:wmxa8@hotmail.com
© 2014
bubuko.com
版权所有
打开技术之扣,分享程序人生!