Prerequisites
BGP connections have been created.
Injecting a Local Network
In BGP view, you can inject a local network to allow BGP to advertise it to BGP peers. The origin
attribute of routes advertised in this way is IGP. You can also reference a route policy to flexibly control
route 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...
Enter system view
Enter BGP view
Inject a network to the BGP
routing table
Configuring BGP Route Redistribution
BGP does not find routes by itself. Rather, it redistributes routing information in the local AS from other
routing protocols. During route redistribution, you can configure BGP to filter routing information from
specific 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...
Enter system view
Enter BGP view
Enable route redistribution from
a routing protocol into BGP
Enabling Default Route Redistribution into BGP
Using the import-route command cannot redistribute a default route. To do so, complete the following
configuration.
Follow these steps to enable default route redistribution into BGP:
To do...
Enter system view
Enter BGP view
Use the command...
system-view
bgp as-number
network ip-address [ mask |
mask-length ] route-policy
route-policy-name
Use the command...
system-view
bgp as-number
import-route protocol [ process-id |
all-processes ] [ med med-value |
route-policy route-policy-name ] *
Use the command...
system-view
bgp as-number
1-20
Remarks
—
—
Optional
Not injected by default
Remarks
—
—
Required
Not enabled by
default
Remarks
—
—