Configuring OSPF authentication on a virtual link

设置虚拟——OSPFlink authentication type that will be used for authentication with the remote ABR when the command is used in the vlink context.

OSPF supports the same methods of authentication for virtual links as it does for interfaces in an area. In the default configuration, OSPF authentication is disabled. Only one method of authentication can be active on a virtual link at a time. If one method is configured on a virtual link, configuring the alternative method on the same link automatically replaces the first method. Both ends of a virtual link must use the same authentication method and related credentials.

Prerequisites

You must be in the router vlink configuration context, as indicated by theswitch(config-router-vlink)#prompt.

Procedure
  1. 设置虚拟——OSPFlink authentication type using the following command. For command details, seeauthentication.

    authentication {message-digest | simple-text | null}

    For example, the following command sets virtual-link authentication type to simple-text.

    switch(config-router-vlink)#authentication simple-text
  2. For simple-text authentication, set the password using the following command. For command details, seeauthentication-key.

    authentication-key

    For example:
    switch(config-router-vlink)#authentication-key plaintext secure
  3. For MD5 authentication, set the password using the following command. For command details, seemessage-digest-key md5.

    message-digest-key md5< >键

    For example:
    switch(config-router-vlink)#message-digest-key 1 md5 plaintext secure