H3C S7500E Series Command Manual page 481

Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
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 the command peer { group-name | ip-address } route-policy
route-policy-name { export | import } and apply preferred-value preferred-value.
Examples
# 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
5.1.61 peer public-as-only
Syntax
peer { group-name | ip-address } public-as-only
undo peer { group-name | ip-address } public-as-only
View
BGP view
Parameters
group-name: Name of a peer group, a string of 1 to 47 characters.
ip-address: IP address of a peer.
Description
Use the peer public-as-only command to not keep private AS numbers in BGP
updates sent to a peer/peer group.
Use the undo peer public-as-only command to keep private AS numbers in BGP
updates sent to a peer/peer group.
By default, BGP updates carry private AS numbers.
The command does not take effect if the BGP update has both public and private AS
numbers. The range of private AS number is from 64512 to 65535.
Examples
# In BGP view, carry no private AS number in BGP updates sent to the peer test.
<Sysname> system-view
[Sysname] bgp 100
Chapter 5 BGP Configuration Commands
5-52

Advertisement

Table of Contents
loading

Table of Contents