4-52
Note that, virtual link authentication adopts the MD5 cipher text or simple text authentication mode set
with the authentication-mode command for Area 0. Therefore, you need to specify the authentication
mode for Area 0 on both ABRs interconnected by the virtual link.
Related commands: authentication-mode, display ospf.
Examples
# Create a virtual link between Router A and Router B and use the MD5 cipher authentication mode
(The router ID of Router A is 10.1.1.1 and that of Router B is 10.1.1.2).
z Configure Router A
<RouterA> system-view
System View: return to User View with Ctrl+Z.
[RouterA] ospf 1
[RouterA-ospf-1-area-0.0.0.0] authentication-mode md5
[RouterA-ospf-1-area-0.0.0.0] quit
[RouterA-ospf-1] area 10.0.0.0
[RouterA-ospf-1-area-10.0.0.0] vlink-peer 10.1.1.2 md5 3 345
z Configure RouterB
<RouterB> system-view
System View: return to User View with Ctrl+Z.
[RouterB] ospf 1
[RouterB-ospf-1-area-0.0.0.0] authentication-mode md5
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] area 10.0.0.0
[RouterB-ospf-1-area-10.0.0.0] vlink-peer 10.1.1.1 md5 3 345