Peer Public-As-Only (Bgp/Bgp-Vpn Instance View) - H3C MSR 20-20 Command Reference Manual

Msr 20/30/50 series routers
Hide thumbs Also See for MSR 20-20:
Table of Contents

Advertisement

1000
C
72: BGP C
HAPTER
Description
Examples

peer public-as-only (BGP/BGP-VPN instance view)

Syntax
View
Parameters
C
ONFIGURATION
OMMANDS
Use the
peer preferred-value
received from a peer or peer group.
Use the
undo peer preferred-value
The default preferred value is 0.
Routes learned from a peer have an initial preferred value.
Among multiple routes that have the same destination/mask and are learned from
different peers, the one with the biggest preferred value is selected as the route to
the network.
Note that:
If you both reference a routing policy and use the peer { group-name | ip-address }
preferred-value value command to set a preferred value for routes from a peer,
the routing policy sets a specified non-zero preferred value for routes matching it.
Other routes not matching the routing policy uses the value set with the
command. If the preferred value specified in the routing policy is zero, the routes
matching it will also use the value set with the command. For information about
using a routing policy to set a preferred value, refer to "peer group
(BGP/BGP-VPN instance view)" on page 994, "peer route-policy
(BGP/BGP-VPN instance view)" on page 1002 { export | import } in this
document, and "apply preferred-value" on page 1194
# In BGP view, configure the preferred value as 50 for routes from peer
131.108.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 131.108.1.1 preferred-value 50
# In BGP-VPN instance view, configure the preferred value as 50 for routes from
peer 131.108.1.1 (the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer 131.108.1.1 preferred-value 50
peer { group-name | ip-address } public-as-only
undo peer { group-name | ip-address } public-as-only
BGP view/BGP-VPN instance view
group-name: Name of a peer group, a string of 1 to 47 characters.
ip-address: IP address of a peer.
command to assign a preferred value to routes
command to restore the default value.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Msr 20-21Msr 30-16Msr 30-20Msr 30-40Msr 30-60Msr 50 ... Show all

Table of Contents