| 场景 | 单条链路认证、跨厂商对接不同密钥 |
|---|---|
| 适用 | 全部三层设备 |
| 命令族 | ospf authentication-mode / ip ospf authentication + key / ospf authentication-mode |
华为 VRP
华为 VRP
[Huawei-GigabitEthernet0/0/1] ospf authentication-mode md5 1 cipher Huawei@123
! 不认证:undo ospf authentication-mode思科 IOS
思科 IOS
SW-CORE-01(config-if)# ip ospf authentication message-digest
SW-CORE-01(config-if)# ip ospf message-digest-key 1 md5 Cisco@123
! 明文口令:ip ospf authentication + ip ospf authentication-keyH3C Comware
H3C Comware
[H3C-GigabitEthernet1/0/1] ospf authentication-mode md5 1 cipher H3C@123排查口诀:一端有认证一端没有=邻居卡 INIT;模式不一致=卡 INIT;密钥/Key-id 不一致=卡 INIT/2-WAY。display ospf error / show logging 能看到认证失败计数。