By default, no MD5 authentication is performed for TCP connection establishment.
The MD5 authentication requires that the two parties have the same authentication mode and
password to establish TCP connection; otherwise, the TCP connection cannot be established due to
authentication failure.
The authentication password, set in either plain text or cipher text, is saved to the configuration file in
cipher text.
Examples
# Enable MD5 authentication for establishing TCP connection between the local device (1:2::3:3)
and peer device (1:2::3:4), and configure the authentication password as
aabbcc
.
•
On the local device:
<Sysname> system-view
[Sysname] bgp 3
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 password cipher aabbcc
•
On the peer device:
<Sysname> system-view
[Sysname] bgp 4
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:3 password cipher aabbcc
peer preferred-value (IPv6 address family view)
Syntax
peer
{
ipv6-group-name
|
ipv6-address
}
preferred-value
value
undo
peer
{
ipv6-group-name
|
ipv6-address
}
preferred-value
View
IPv6 address family view
Default level
2: System level
Parameters
ipv6-group-name
: Name of a peer group, a string of 1 to 47 characters.
ipv6-address
: IPv6 address of a peer.
value
: Preferred value, in the range of 0 to 65535.
Description
Use
peer preferred-value
to assign a preferred value to routes received from a peer or peer group.
Use
undo peer preferred-value
to restore the default.
By default, routes received from a peer or peer group have a preferred value of 0.
Routes learned from peers each have an initial preferred value. Among multiple routes to the same
destination, the route with the biggest value is selected.
If you both reference a routing policy and use the command
peer
{
ipv6-group-name
|
ipv6-address
}
preferred-value
value
to set a preferred value for routes from a peer, the routing policy sets the
specific preferred value for routes matching it. If the preferred value in the routing policy is zero, the
routes use the value set with the
peer
{
ipv6-group-name
|
ipv6-address
}
preferred-value
value
command. For how to use a routing policy to set a preferred value, see the command
peer
{
group-name
|
ipv4-address
|
ipv6-address
}
route-policy
route-policy-name
{
import
|
export
} in
394