Configure OSPF neighbor authentication on an S series switch

OSPF authentication of S series switches includes area authentication and interface authentication.
1. Area authentication
Run the authentication-mode command in an OSPF area view to set the authentication mode and password for the OSPF area.
For example:
[HUAWEI] ospf 100
[HUAWEI-ospf-100] area 0
[HUAWEI-ospf-100-area-0.0.0.0] authentication-mode simple cipher huawei
To configure MD5 authentication, run the following command:
[HUAWEI-ospf-100-area-0.0.0.0] authentication-mode md5 1 cipher huawei
2. Interface authentication
The interface authentication mode is used among neighbor switches to set the authentication mode and password. Its priority is higher than that of the area authentication mode. Run the ospf authentication-mode command in the interface view to set the authentication mode and password for adjacent switches.
For example:
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ospf authentication-mode simple cipher huawei
To configure MD5 authentication, run the following command:
[HUAWEI-Vlanif100]ospf authentication-mode md5 1 cipher huawei
Note: When configuring area authentication or interface authentication, all switches involved must have the same authentication mode and password. If not, the switches may fail to set up an OSPF neighbor relationship.

Scroll to top