223
Specifying a preferred value for routes received
Perform this task to set a preferred value for specific routes to control BGP path selection.
Among multiple routes that have the same destination/mask and are learned from different peers, the
one with the greatest preferred value is selected as the optimal route.
To specify a preferred value for routes from a peer or peer group (IPv4 unicast/multicast address family):
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP IPv4 unicast
address family view,
BGP-VPN IPv4 unicast
address family view, or
BGP IPv4 multicast
address family view.
•
Enter BGP IPv4 unicast address family
view:
a.
bgp
as-number
b.
address-family ipv4
[
unicast
]
•
Enter BGP-VPN IPv4 unicast address
family view:
a.
bgp
as-number
b.
ip vpn-instance
vpn-instance-name
c.
address-family ipv4
[
unicast
]
•
Enter BGP IPv4 multicast address
family view:
a.
bgp
as-number
b.
address-family ipv4 multicast
N/A
3.
Specify a preferred
value for routes received
from a peer or peer
group.
peer
{
group-name
|
ip-address
}
preferred-value
value
The default preferred value is 0.
To specify a preferred value for routes from a peer or peer group (IPv6 unicast/multicast address family):
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP IPv6 unicast
address family view,
BGP-VPN IPv6 unicast
address family view, or
BGP IPv6 multicast
address family view.
•
Enter BGP IPv6 unicast address family
view:
a.
bgp
as-number
b.
address-family ipv6
[
unicast
]
•
Enter BGP-VPN IPv6 unicast address
family view:
a.
bgp
as-number
b.
ip vpn-instance
vpn-instance-name
c.
address-family ipv6
[
unicast
]
•
Enter BGP IPv6 multicast address
family view:
a.
bgp
as-number
b.
address-family ipv6 multicast
N/A