OSPF認證
解決問題:保證OSPF路由學習的安全性
A:區域認證(在哪些設備上去配置:XXX)
1.明文認證:
R2(config)# router ospf 1
R2(config-router)# area 1 authentication
R2(config-router)# exit
R2(config)# inte rface s s erial 1/0 0
R2(config-if)# ip ospf authentication- - key cisco
2. 密文認證:MD5
R1(config)# router ospf 1
R1(config-router)# area 1 authentication message-digest
R1(config-router)# exit
R1(config)# interface serial 1/1
R1(config-if)# ip ospf message-digest-key 1 md5 cisco
**B:接口認證(在哪些接口上去配置:XXX)
- 明文認證:**
R1(config)# interface s erial 1/1
R1(config-if)# ip ospf authentication
R1(config-if)# ip ospf authentication-key cisco
2.密文認證:MD5
R1(config)# interface serial 1/1
R1(config-if)# ip ospf authentication message-digest
R1(config-if)# ip ospf message-digest-key 1 md5 cisco
R1(config-if)#