动态路由协议ospf配置验证
1、动态路由协议ospf支持明文验证和加密验证。我们这里以三台2811路由器配置。

3、配置R1的ospfR1(config-if)#router ospf 1R1(config-router)#network 192.168.1.1 0.0.0.0 area 0

5、配置R2的ospfR2(config-if)#router ospf 1R2(config-router)#network 192.168.1.2 0.0.0.0 area 0R2(config-router)#network 192.168.2.1 0.0.0.0 area 0
6、查看R3的直接网络R3#sh ip int bri

8、验证是在线路上的验证,我们配置R1的接口线路。我们先配置明文验证。R1(config)#interface fa0/0R1(config-if)#ip ospf authenticationR1(config-if)#ip ospf authentication-key ospf这里的密码设置为ospf

10、配置R2加密验证message-digest,加密类型是md5。R2(config)#interface fa0/1R2(config-if)#ip ospf authentication message-digestR2(config-if)#ip ospf message-digest-key 1 md5 eigrp

12、查看路由邻居表R2#show ip ospf neighbor
