1:给R1 g0/0/1 Loopback 0 R2 g0/0/1 g0/0/0 Loopback R3 g0/0/0 配置 area1
2:给R3 g0/0/1 Loopback 0 R4 g0/0/1 配置area0
3: 给R4 g0/0/0 Loopback 0 R5 g0/0/0 Loopback 配置area2
4: 给R6 R1配rip
5: 给R1 R2 R3 R4 R5 配 OSPF
R1:
sy
int g0/0/1
ip add 11.0.0.1 255.255.255.0
int g0/0/0
ip add 16.0.0.1 255.255.255.0
int LoopBack 0 配置虚拟接口
ip add 1.1.1.1 255.255.255.255
q
router id 1.1.1.1 配route id
ospf 1 进入ospf 1
area 1 进入area 1
network 1.1.1.1 0.0.0.255 说 1.1.1.1
network 11.0.0.0 0.0.0.255 说 11.0.0.0
q
q
R2:
sy
int g0/0/1
ip add 11.0.0.2 255.255.255.0
int g0/0/0
ip add 12.0.0.1 255.255.255.0
q
int LoopBack 0
ip add 2.2.2.2 255.255.255.255
q
router id 2.2.2.2
ospf 1
area 1
network 2.2.2.2 0.0.0.255
network 0.0.0.0 255.255.255.255
q
q
R3:
sy
int g0/0/0
ip add 12.0.0.2 255.255.255.0
int g0/0/1
ip add 13.0.0.1 255.255.255.0
int LoopBack 0
ip add 3.3.3.3 255.255.255.255
q
router id 3.3.3.3
ospf 1
area 1
network 12.0.0.0 0.0.0.255
q
area 0
network 3.3.3.3 0.0.0.255
network 13.0.0.0 0.0.0.255
q
q
R4:
sy
int g0/0/1
ip add 13.0.0.2 255.255.255.0
int g0/0/0
ip add 14.0.0.1 255.255.255.0
int LoopBack 0
ip add 4.4.4.4 255.255.255.255
q
router id 4.4.4.4
ospf 1
area 0
network 13.0.0.0 0.0.0.255
q
area 2
network 4.4.4.4 0.0.0.255
network 14.0.0.0 0.0.0.255
q
q
R5:
sy
int g0/0/0
ip add 14.0.0.2 255.255.255.0
int LoopBack 0
ip add 5.5.5.5 255.255.255.255
q
router id 5.5.5.5
ospf 1
area 2
network 5.5.5.5 0.0.0.255
network 14.0.0.0 0.0.0.255
q
q
R1
rip
version 2
un summary
network 16.0.0.0
import-route ospf cost 1
ospf 1
import-route rip cost 2
R6
int g0/0/0
ip add 16.0.0.2 255.255.255.0
int LoopBack 0
ip add 6.6.6.6 255.255.255.255
q
router id 6.6.6.6
rip
version 2
un summary
network 16.0.0.0
network 6.0.0.0
q
本文出自 “网络技术” 博客,请务必保留此出处http://funinghua.blog.51cto.com/9125449/1548455
原文地址:http://funinghua.blog.51cto.com/9125449/1548455