Redistributing IGP routes
Perform this task to configure route redistribution from an IGP to BGP.
By default, BGP does not redistribute default IGP routes. You can use the default-route imported command to redistribute default IGP routes into the BGP routing table.
Only active routes can be redistributed. To view route state information, use the display ip routing-table protocol or display ipv6 routing-table protocol command.
The ORIGIN attribute of BGP routes redistributed from IGPs is INCOMPLETE.
To configure BGP to redistribute IGP routes (IPv4):
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter BGP view or BGP-VPN instance view. |
| N/A |
3. Enter BGP IPv4 unicast address family view or BGP-VPN IPv4 unicast address family view. | address-family ipv4 [ unicast ] | N/A |
4. Enable route redistribution from the specified IGP into BGP. | import-route protocol [ { process-id | all-processes } [ allow-direct | med med-value | route-policy route-policy-name ] * ] | By default, BGP does not redistribute IGP routes. |
5. (Optional.) Enable default route redistribution into BGP. | default-route imported | By default, BGP does not redistribute default routes. |
To configure BGP to redistribute IGP routes (IPv6):
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter BGP view or BGP-VPN instance view. |
| N/A |
3. Enter BGP IPv6 unicast address family view or BGP-VPN IPv6 unicast address family view. | address-family ipv6 [ unicast ] | N/A |
4. Enable route redistribution from the specified IGP into BGP. | import-route protocol [ process-id [ allow-direct | med med-value | route-policy route-policy-name ] * ] | By default, BGP does not redistribute IGP routes. |
5. (Optional.) Enable default route redistribution into BGP. | default-route imported | By default, BGP does not redistribute default routes. |