228
Configuring the Next Hop attribute
You can use the
peer next-hop-local
command to specify the local switch as the next hop of routes sent
to an MBGP iBGP peer or peer group. If load balancing is configured, the switch specifies itself as the
next hop of route advertisements to the multicast iBGP peer or peer group, regardless of whether the
peer next-hop-local
command is configured.
In a third-party next-hop network (that is, the local router has two multicast eBGP peers in a broadcast
network), the router does not specify itself as the next hop of routing information sent to the eBGP peers
unless the
peer next-hop-local
command is configured.
Follow these steps to specify the router as the next hop of routes sent to a peer/peer group:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp
as-number
—
Enter IPv4 MBGP address family
view
ipv4-family multicast
—
Specify the router as the next hop of
routes sent to a peer/peer group
peer
{
group-name
|
ip-address
}
next-
hop-local
Optional
By default, IPv6 MBGP
specifies the local router as
the next hop for routes sent
to an eBGP peer/peer
group, but not for routes
sent to an MBGP iBGP
peer/peer group.
Configuring the AS-PATH attribute
In general, MBGP checks whether the AS_PATH attribute of a route from a peer contains the local AS
number. If it does, MBGP discards the route to avoid routing loops.
Follow these steps to configure the AS-PATH attribute:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp
as-number
—
Enter IPv4 MBGP address family view
ipv4-family multicast
—
Allow the local AS number to appear in
the AS-PATH of routes from a peer/peer
group and specify the number of times
that the local AS number can appear in
the AS-PATH of routes from the peer/peer
group
peer
{
group-name
|
ip-address
}
allow-as-loop
[
number
]
Optional
Not allowed by default.
Disable BGP from considering the
AS_PATH during best route selection
bestroute as-path-neglect
Optional
Enabled by default.
Summary of Contents for A5500 EI Switch Series
Page 12: ...xii Conventions 425 Index 427 ...