254Step Command Remarks4. Specify the router as the nexthop of routes sent to a peer ora peer group.peer { group-name | ip-address }next-hop-localOptional.By default, IPv6 MBGP specifiesthe local router as the next hop forroutes sent to an EBGP peer or apeer group, but not for routes sentto an MBGP IBGP peer or a peergroup.Configuring the AS_PATH attributesIn general, MBGP checks whether the AS_PATH attribute of a route from a peer contains the local ASnumber. If it does, it discards the route to avoid routing loops.To configure the AS_PATH attributes:Step Command Remarks1. Enter system view. system-view N/A2. Enter BGP view. bgp as-number N/A3. Enter IPv4 MBGP addressfamily view. ipv4-family multicast N/A4. Allow the local AS number toappear in the AS_PATH ofroutes from a peer or a peergroup and specify the numberof times that the local ASnumber can appear in theAS_PATH of routes from thepeer or the peer group.peer { group-name | ip-address }allow-as-loop [ number ]Optional.By default, the local AS numbercannot appear in routes from apeer or a peer group.5. Disable BGP from consideringthe AS_PATH during bestroute selection.bestroute as-path-neglectOptional.By default, BGP considersAS_PATH during best routeselection.6. Configure updates to a peeror a peer group not to keepprivate AS numbers.peer { group-name | ip-address }public-as-onlyOptional.By default, BGP updates carryprivate AS numbers.Tuning and optimizing MBGP networksThis task involves resetting MBGP connections and configuring load balancing.Before configuring this task, configure basic MBGP functions first.Configuring MBGP soft resetAfter modifying a route selection policy, you have to reset MBGP connections to make it take effect.