Configuring OSPF authentication
You can configure OSPF packet authentication to ensure the security of packet exchanges.
After authentication is configured, OSPF only receives packets that pass authentication. Failed packets cannot establish neighboring relationships.
To configure OSPF authentication, you must configure the same area authentication mode on all the routers in the area. In addition, the authentication mode and password for all interfaces attached to the same area must be identical.
To configure OSPF authentication:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter OSPF view. | ospf [ process-id | router-id router-id | vpn-instance vpn-instance-name ] * | N/A |
3. Enter area view. | area area-id | N/A |
4. Configure the authentication mode. | authentication-mode { md5 | simple } | Not configured by default. |
5. Return to OSPF view. | quit | N/A |
6. Return to system view. | quit | N/A |
7. Enter interface view. | interface interface-type interface-number | N/A |
8. Configure interface authentication mode. |
| Use either approach. Not configured by default. |