| 场景 | 防伪造协议报文攻击 |
|---|---|
| 适用 | 三厂三层设备 |
| 注意 | VRRPv3/部分平台已移除认证,转向 IPSec/AH 等机制 |
华为 VRP
华为 VRP
interface Vlanif10
vrrp vrid 1 authentication-mode simple cipher MyPass@123
display vrrp vrid 1 verbose # 可见 Authentication type思科 IOS
思科 IOS
interface Vlan10
standby 1 authentication md5 key-string MyPass@123
! VRRP:vrrp 1 authentication md5 key-string MyPass@123
show standby 1 | include authH3C Comware
H3C Comware
interface Vlan-interface10
vrrp vrid 1 authentication-mode md5 cipher MyPass@123
display vrrp verbose差异:HSRP 认证每包带 MD5 摘要,思科还有 key-chain 形式;华为/H3C 支持 simple/md5(cipher 表示配置以密文显示)。三厂互通 VRRP 时认证类型必须一致,否则直接双主。