1.配IP,测直连
2.规划OSPF区域,常规区域必须与骨干区域相连
3.启用OSPF
Router ospf 1 \\1是进程号
router-id 2.2.2.2 \\为路由器命名
network 12.1.1.2 0.0.0.0 area 1
network 23.1.1.2 0.0.0.0 area 0
\\将接口分别划入区域1和区域0(ABR)
4.检查
Show ip ospf neighbor \\查看OSPF邻居
Show ip route
5.测试 ping
虚链路:
将不规则区域连接到骨干区域
注意虚链路的双方,一方是不规则区域的准ABR
另一方,当前区域的ABR
Router ospf 1
router-id 1.1.1.1
area 1 virtual-link 3.3.3.3 \\指向对方的RID
Router ospf 1
router-id 3.3.3.3
area 1 virtual-link 1.1.1.1
验证:(两端需要相同)
1.接口,只影响直连的邻居
OSPF实验
2014年10月14日
19:03
分区新分区1 的第1 页
1.接口,只影响直连的邻居
Int f1/0
ip ospf authentication \\启用明文验证
ip ospf authentication-key cisco \\配置明文key
Int f1/0
ip ospf authentication message-digest \\启用密文验证
ip ospf message-digest-key 1 md5 cisco \\配置密文key
2.区域,影响本区域所有路由器
router ospf 1
router-id 3.3.3.3
area 0 authentication
\\启用明文区域验证
Int f0/0
ip ospf authentication-key cisco
\\接口下使用明文key
router ospf 1
area 0 authentication message-digest
\\启用区域密文验证
Int f0/0
ip ospf message-digest-key 1 md5 cisco
\\接口下使用密文key
Show ip ospf neighbor
Hello
10s发一次40s邻居死亡
注意查看deadtime 小于30s证明邻居关系已经失效
分区新分区1 的第2 页
注意查看deadtime 小于30s证明邻居关系已经失效