341
md5: Uses MD5 algorithm for authentication.
hmac-md5: Uses HMAC-MD5 algorithm for authentication.
key-id: Specifies the authentication key ID of the interface, ranging from 1 to 255. It must be the same as
that of the peer.
cipher: Uses cipher text.
plain: Uses plain text.
password2: Specifies the password string, which is case-sensitive. If you specify neither the cipher nor the
plain keyword, it is a string of 1 to 16 characters in plain text or a string of 24 characters in cipher text.
For the plain mode, it is a string of 1 to 16 characters. For the cipher mode, it can be either a string of 1
to 16 characters in plain text, or a string of 24 characters in cipher text.
Examples
# Create a sham link with the source address of 1.1.1.1 and the destination address of 2.2.2.2.
<Sysname> system-view
[Sysname] ospf
[Sysname-ospf-1] area 0
[Sysname-ospf-1-area-0.0.0.0] sham-link 1.1.1.1 2.2.2.2
tnl-policy (VPN instance view)
Description
Use the tnl-policy command to associate the current VPN instance with a tunneling policy.
Use the undo tnl-policy command to remove the association.
If a VPN instance is not associated with a tunneling policy or the associated tunneling policy is not
configured, the VPN instance selects tunnels according to the default tunneling policy. The default
tunneling policy selects only one tunnel in this order: LSP tunnel, CR-LSP tunnel.
Related commands: tunnel select-seq.
Syntax
tnl-policy tunnel-policy-name
undo tnl-policy
View
VPN instance view
Default level
2: System level
Parameters
tunnel-policy-name: Specifies the name of the tunneling policy for the VPN instance, which is a string of 1
to 19 characters.
Examples
# Associate the VPN instance vpn2 with the tunneling policy po1.
<Sysname> system-view
[Sysname] tunnel-policy po1
[Sysname-tunnel-policy-po1] tunnel select-seq lsp load-balance-number 1