R3303-HP HSR6800 Routers MPLS Command Reference

327
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer test next-hop-local
# In BGP-L2VPN address family view, configure the device to use the local address as the next hop of a
route when advertising it to peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn] peer test next-hop-local
# In BGP-VPLS address family view, configure the device to use the local address as the next hop of a
route when advertising it to peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] vpls-family
[Sysname-bgp-af-vpls] peer test next-hop-local
peer preferred-value (BGP-VPNv4 subaddress family view)
Use peer preferred-value to specify the preference value for the routes received from the specified
peer/peer group.
Use undo peer preferred-value to restore the default.
Syntax
peer { group-name | ip-address } preferred-value value
undo peer { group-name | ip-address } preferred-value
Default
The preference value for the routes received from a peer/peer group is 0.
Views
BGP-VPNv4 subaddress family view
Default command level
2: System level
Parameters
group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters.
ip-address: Specifies the IP address of the peer.
value: Specifies the preference value to be specified, in the range of 0 to 65535.
Examples
# In BGP-VPNv4 subaddress family view, set the preference value for the routes received from peer
131.10 8 .1.1 t o 5 0 .
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 131.108.1.1 preferred-value 50