3Com S7902E Command Reference Manual - page 1655
1-43
Examples
# In BGP-VPNv4 subaddress 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] bgp 100
[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] bgp 100
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn] peer test next-hop-local
peer preferred-value (BGP-VPNv4 subaddress family view)
Syntax
peer
{
group-name | ip-address
}
preferred-value
value
undo
peer
{
group-name | ip-address
}
preferred-value
View
BGP-VPNv4 subaddress family view
Default Level
2: System level
Parameters
group-name
: Name of the peer group, a case-sensitive string of 1 to 47 characters.
ip-address
: IP address of the peer.
value
: Preferred value to be specified, in the range 0 to 65535.
Description
Use the
peer preferred-value
command to specify the preferred value for the routes received from the
specified peer/peer group.
Use the
undo peer preferred-value
command to restore the default.
By default, the preferred value for the routes received from a peer/peer group is 0.
Examples
# Set the preferred value for the routes received from peer 131.108.1.1 to 50.
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 131.108.1.1 preferred-value 50