Step
1.
Enter system view.
2.
Enter BGP view.
3.
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.
Only active routes can be redistributed. You can use the display ip routing-table protocol command to
display route state information.
To configure BGP route redistribution:
Step
1.
Enter system view.
2.
Enter BGP view.
3.
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 enable default route redistribution into BGP:
Step
1.
Enter system view.
2.
Enter BGP view.
3.
Enable route redistribution
from a routing protocol into
BGP.
4.
Enable default route
redistribution into BGP.
Command
system-view
bgp as-number
network ip-address [ mask |
mask-length ] route-policy
route-policy-name
Command
system-view
bgp as-number
import-route protocol [ { process-id
| all-processes } [ allow-direct |
med med-value | route-policy
route-policy-name ] * ]
Command
system-view
bgp as-number
import-route protocol [ { process-id
| all-processes } [ allow-direct |
med med-value | route-policy
route-policy-name ] * ]
default-route imported
202
Remarks
N/A
N/A
Optional.
Not injected by default.
Remarks
N/A
N/A
Not enabled by default.
The allow-direct keyword is
available only when the specified
routing protocol is OSPF.
Remarks
N/A
N/A
Not redistributed by default.
The allow-direct keyword is
available only when the specified
routing protocol is OSPF.
Optional.
Not enabled by default.