H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 6 BGP Configuration
6-16
To do... Use the command... Remarks
Configure the local
address as the next hop
address when a BGP
router advertises a route.
peer group-name
next-hop-local
Required
In some network, to ensure
an IBGP neighbor locates
the correct next hop, you can
configure the next hop
address of a route to be the
local address for a BGP
router to advertise route
information to IBGP peer
groups.
Configure
the number
of local AS
number
occurrences
allowed
peer { group-name |
ip-address }
allow-as-loop
[ number ]
Optional
By default, the number of
local AS number
occurrences allowed is 1.
Assign an
AS number
for a peer
group
peer group-name
as-number
as-number
Optional
By default, the local AS
number is not assigned to a
peer group.
Configure
the
AS_Path
attribute
Configure
that the
BGP update
packets only
carry the
pubic AS
number in
the AS_Path
attribute
when a peer
sends BGP
update
packets to
BGP peers.
peer group-name
public-as-only
Optional
By default, a BGP update
packet carries the private AS
number.
Caution:
z Using a routing policy, you can configure the preference for the routes that match
the filtering conditions. For unmatched routes, the default preference is adopted.
z If other conditions are the same, the route with the lowest MED value is preferred
to be the exterior route of the AS.
z After BGP load balance is configured, no matter whether the peer next-hop-local
command is executed or not, the local router changes the next hop IP address to
its own IP address before advertising a route to its IBGP peers/peer group.