6-21The peer ebgp-max-hop command needs not be configured if the two eBGP peers are directlyconnected.Controlling Route GenerationDifferent from IGP, BGP focuses on route generation and advertisement control and optimal routeselection.There are to ways to generate BGP routes:z Configure BGP to advertise local networksz Configure BGP to redistribute routes from other routing protocols, including the default routePrerequisitesBGP connections have been created.Injecting a Local NetworkIn BGP view, you can inject a local network to allow BGP to advertise it to BGP peers. The originattribute of routes advertised in this way is IGP. You can also reference a route policy to flexibly controlroute advertisement. The network to be injected must be available in the local IP routing table.Follow these steps to inject a local network:To do… Use the command… RemarksEnter system view system-view —Enter BGP view bgp as-number —Inject a network to the BGP routingtablenetwork ip-address [ mask |mask-length ] route-policyroute-policy-nameOptionalNot injected by defaultConfiguring BGP Route RedistributionBGP does not find routes by itself. Rather, it redistributes routing information in the local AS from otherrouting protocols. During route redistribution, you can configure BGP to filter routing information fromspecific routing protocols.The origin attribute of routes redistributed using the import-route command is Incomplete.Follow these steps to configure BGP route redistribution:To do… Use the command… RemarksEnter system view system-view —