实验名称
*******************************
r2
*******************************
en
conf t
ho r2
int lo 0
ip add 192.168.20.20 255.255.255.0
exit
int e0/0
ip add 192.168.1.2 255.255.255.0
no shut
ip ospf cost 1000
ip ospf hello-interval 5
ip ospf dead-interval 20
exit
router ospf 20
network 192.168.20.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
*******************************
r3
*******************************
en
conf t
ho r3
int lo 0
ip add 192.168.30.30 255.255.255.0
exit
int e0/0
ip add 192.168.1.3 255.255.255.0
no shut
ip ospf cost 1000
ip ospf hello-interval 5
ip ospf dead-interval 20
exit
router ospf 30
network 192.168.30.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
*******************************
sw1
*******************************
不用配置,只保证端口是打开的即可。
OSPF单区域基本配置。
实验目的
掌握OSPF基本配置技术。
实验设备
Cisco2811路由器3台,Cisco3640交换机1台,网线多根。
背景描述
本实验为模拟试验,可能与真实环境有些出入,学习请慎用。
试验拓扑
实验步骤
*******************************
r1
*******************************
en
conf t
ho r1
int lo 0
ip add 192.168.10.10 255.255.255.0
exit
int e0/0
ip add 192.168.1.1 255.255.255.0
no shut
ip ospf cost 1000
ip ospf hello-interval 5
ip ospf dead-interval 20
exit
r1
*******************************
en
conf t
ho r1
int lo 0
ip add 192.168.10.10 255.255.255.0
exit
int e0/0
ip add 192.168.1.1 255.255.255.0
no shut
ip ospf cost 1000
ip ospf hello-interval 5
ip ospf dead-interval 20
exit
router ospf 10
network 192.168.10.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
network 192.168.10.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
*******************************
r2
*******************************
en
conf t
ho r2
int lo 0
ip add 192.168.20.20 255.255.255.0
exit
int e0/0
ip add 192.168.1.2 255.255.255.0
no shut
ip ospf cost 1000
ip ospf hello-interval 5
ip ospf dead-interval 20
exit
router ospf 20
network 192.168.20.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
*******************************
r3
*******************************
en
conf t
ho r3
int lo 0
ip add 192.168.30.30 255.255.255.0
exit
int e0/0
ip add 192.168.1.3 255.255.255.0
no shut
ip ospf cost 1000
ip ospf hello-interval 5
ip ospf dead-interval 20
exit
router ospf 30
network 192.168.30.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
*******************************
sw1
*******************************
不用配置,只保证端口是打开的即可。
本文转自自由心行博客51CTO博客,原文链接http://blog.51cto.com/xiaojiang2008/85001如需转载请自行联系原作者
xiaojiang