WT
CCNA实验文档——OSPF路由实验
2018.01.25
一、实验环境
系统版本 | Windows 10 专业版 64位 (10.0,版本 16299) |
GNS3版本 | GNS3 1.5.3 |
CRT版本 | Version 7.0.0 (x64 build 326) |
二、实验拓扑
三、实验需求
1. 背景:
某公司总部和分部网络实现互连,考虑分部数量进行路由域的控制。
2. 需求:
总部网络存在多个网段,实验中以 Loopback 模拟。要求分部能够访问到总部的所有资源。使用Loopback口模拟LAN内的某一网段。
3. OSPF进程号 1
4.. IP分配情况:
PC1 IP:10.10.10.1/24 网关:10.10.10.254/24
PC2 IP:10.10.20.1/24 网关:10.10.20.254/24
R1 f0/0:10.10.10.254/24 f0/1 :10.12.12.1/30
R2 f0/1:10.12.12.2/30 f0/0:10.23.23.1/30
R3 f0/0:10.23.23.2/30 f0/1:10.10.20.254/24 lo0:172.16.10.1/24 lo1:172.16.20.1/24 lo2:172.16.30.1/24四、实验设备基础配置
PC1 ip 10.10.10.1/24 10.10.10.254 | PC2 ip 10.10.20.1/24 10.10.20.254 |
R1 configure terminal interface fastEthernet 0/0 ip address 10.10.10.254 255.255.255.0 no shutdown exit interface fastEthernet 0/1 ip address 10.12.12.1 255.255.255.252 no shutdown exit | R2 configure terminal interface fastEthernet 0/1 ip address 10.12.12.2 255.255.255.252 no shutdown exit interface fastEthernet 0/0 ip address 10.23.23.1 255.255.255.252 no shutdown exit |
R3 configure terminal interface fastEthernet 0/0 ip address 10.23.23.2 255.255.255.252 no shutdown exit interface fastEthernet 0/1 ip address 10.10.20.254 255.255.255.0 no shutdown exit interface loopback 0 ip address 172.16.10.1 255.255.255.0 no shutdown exit interface loopback 1 ip address 172.16.20.1 255.255.255.0 no shutdown exit interface loopback 2 ip address 172.16.30.1 255.255.255.0 no shutdown exit |
五、实验设备邻居连通性
六、实验设备的OSPF配置
R1 router ospf 1 router-id 1.1.1.1 network 10.10.10.254 0.0.0.0 area 1 network 10.12.12.1 0.0.0.0 area 0 exit | R2 router ospf 1 router-id 2.2.2.2 network 10.12.12.2 0.0.0.0 area 0 network 10.23.23.1 0.0.0.0 area 0 exit |
R3 router ospf 1 router-id 3.3.3.3 network 10.23.23.2 0.0.0.0 area 0 network 10.10.20.254 0.0.0.0 area 0 network 172.16.0.0 0.0.255.255 area 2 //172.16.0.0 是对LoopbackIP的汇总 exit |
七、实现实验需求的效果
PC1与总部的连通性
PC1与总部某一网段的连通性
查看故障命令:
Show ip interfacebrief
Show ip ospf neighbor
Show ip route
Show ip route ospf
八、实验感想总结
对OSPF进行区域宣告时注意该接口的所属区域;通过该实验去了解非骨干区域与骨干区域的邻居建立和路由的交互。