思科OSPF多进程重分发小实验

简介:

实验拓扑:

实验需求:引入外部路由,运行多个OSPF进程,并且相互之间进行重分发;所有路由器之间都能够相互ping通。
实验步骤:
配置路由器的每个端口的IP地址
R1:
enable 
conf t 
int f0/0
no shu
ip add 192.168.12.1 255.255.255.0
exit
int l 0
ip add 10.10.1.1 255.255.255.0 
exit

R2:
enable
conf t
int f0/1
no shu
ip add 192.168.12.2 255.255.255.0 
exit
int l 0
ip add 10.10.2.2 255.255.255.0
exit
int f0/0
no shu
ip add 192.168.23.2 255.255.255.0
exit

R3:
enable 
conf t 
int f 0/1
no shu
ip add 192.168.23.3 255.255.255.0
exit
int l 0
ip add 10.10.3.3 255.255.255.0
int f 0/0
no shu
ip add 192.168.34.3 255.255.255.0
exit

R4:
enable
conf t
int f0/1
no shu
ip add 192.168.34.4 255.255.255.0
exit
int l 0
ip add 10.10.4.4 255.255.255.0
exit
int f0/0
no shu
ip add 192.168.45.4 255.255.255.0
exit

R5:
enable
conf t
int f0/1
no shu
ip add 192.168.45.5 255.255.255.0
exit
int l 0
ip add 10.10.5.5 255.255.255.0
exit

在每个路由器开启OSPF并配置OSPF路由

R1:
router os 1
router-id 1.1.1.1
net 192.168.12.0 0.0.0.255 ar 0
net 10.10.1.0 0.0.0.255 ar 0
exit

R2:
router os 1
router-id 2.2.2.2
net 192.168.12.0 0.0.0.255 ar 0
net 10.10.2.0 0.0.0.255 ar 0
net 192.168.23.0 0.0.0.255 ar 0
exit

R3:
router os 1
router-id 3.3.3.3
net 192.168.23.0 0.0.0.255 ar 0
exit
router os 1
router-id 3.3.3.3
net 192.168.34.0 0.0.0.255 ar 12
net 10.10.3.0 0.0.0.255 ar 12
exit

R4:
router os 1
router-id 4.4.4.4
net 192.168.34.0 0.0.0.255 ar 12
exit
router os 45
router-id 6.6.6.6
net 192.168.45.0 0.0.0.255 ar 45
net 10.10.4.0 0.0.0.255 ar 45
exit

R5:
router os 45
router-id 5.5.5.5
net 192.168.45.0 0.0.0.255 ar 45
net 10.10.5.0 0.0.0.255 ar 45
exit

引入外部路由,在R4做重分发(需要做双向)

R4:
router os 1
redistribute ospf 45 subnets
exit
router os 45
redistribute ospf 1 subnets
exit


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

相关文章
|
4月前
|
Linux Shell 调度
操作系统实验一:进程和线程(1)
实验内容 一、进程的创建 编写一段源程序,使用系统调用fork()创建子进程,当此程序运行时,在系统中有父进程和子进程在并发执行。观察屏幕上的显示结果,并分析原因(源代码:forkpid.c)。
85 0
操作系统实验五 基于内核栈切换的进程切换(哈工大李治军)(三)
操作系统实验五 基于内核栈切换的进程切换(哈工大李治军)(三)
143 0
操作系统实验五 基于内核栈切换的进程切换(哈工大李治军)(三)
|
4月前
|
调度 数据库
操作系统实验一:进程和线程(2)
七、共享资源的互斥访问 创建两个线程来实现对一个数的递加 pthread_example.c 1、运行
39 0
|
9月前
|
Linux 测试技术
Linux操作系统实验十一 进程管理(下)
Linux操作系统实验十一 进程管理(下)
63 0
|
5月前
|
Ubuntu Unix Linux
进程章节总结性实验
进程章节总结性实验
19 0
|
5月前
|
存储 算法 搜索推荐
操作系统实验四:进程调度
操作系统实验四:进程调度
79 0
|
5月前
|
数据可视化 Python
操作系统实验二:进程同步程序设计
操作系统实验二:进程同步程序设计
123 0
|
7月前
|
机器学习/深度学习 Ubuntu 算法
操作系统原理实验2:进程调度(在Ubuntu虚拟机gcc编译环境下
操作系统原理实验2:进程调度(在Ubuntu虚拟机gcc编译环境下
100 0
|
8月前
|
消息中间件 Linux
实验 进程通信【操作系统】
实验 进程通信【操作系统】
42 1
|
8月前
|
存储 Shell Linux
实验 Linux Shell实现模拟多进程并发执行【操作系统】
实验 Linux Shell实现模拟多进程并发执行【操作系统】
179 0

相关实验场景

更多