1. 程式人生 > >22-高級路由:OSPF 路由認證:明文、密文

22-高級路由:OSPF 路由認證:明文、密文

密文 esc The cape sca ces 實驗 路由 bad

一、實驗拓撲:
明文認證:
技術分享圖片
二、命令部署:
R1(config)#int f0/0
R1(config-if)#ip ospf authentication
R1(config-if)#ip ospf authentication-key 123

R2(config)#int f0/0
R2(config-if)#ip ospf authentication
R2(config-if)#ip ospf authentication-key 123

三、驗證:
R1#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:!!!!!

技術分享圖片
一、實驗拓撲:
密文認證:

二、命令部署:
R1(config)#int f0/0
R1(config-if)#ip ospf authentication message-digest
R1(config-if)#ip ospf message-digest-key 1 md5 123

R2(config)#int f0/0
R2(config-if)#ip ospf authentication message-digest
R2(config-if)#ip ospf message-digest-key 1 md5 123

三、驗證:
R1#ping 2.2.2.2
Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:!!!!!
技術分享圖片
還有個OSPF區域認證,這裏不做了,都是一樣的套路。

22-高級路由:OSPF 路由認證:明文、密文