F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101
262
• Advertise local networks.
• Redistribute IGP routes.
Configuration prerequisites
Create and configure a routing policy. For more information, see "Configuring routing policies."
Injecting a local network
Perform this task to inject a network in the local routing table to the BGP routing table, so that BGP can
advertise the network to BGP peers. The ORIGIN attribute of BGP routes advertised in this way is IGP.
You can also use a routing policy to flexibly control route advertisement.
To inject a local network:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view. bgp as-number N/A
3. Inject a local network to the
BGP routing table.
network ip-address [ mask |
mask-length ] [ route-policy
route-policy-name ]
Optional.
Not injected by default.
The network to be injected must be
available and active in the local IP
routing table.
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.
The ORIGIN attribute of BGP routes redistributed from IGPs is INCOMPLETE.
Only active routes can be redistributed. You can use the display ip routing-table protocol command to
view route state information. For more information about the display ip routing-table protocol command,
see Network Management Command Reference.
To configure BGP to redistribute IGP routes:
Ste
p
Command
Remarks
1. Enter system view. system-view N/A
2. Enter BGP view.
bgp as-number N/A
3. Enable route redistribution
from IGP into BGP.
import-route protocol [ { process-id
| all-processes } [ allow-direct |
med med-value | route-policy
route-policy-name ] * ]
Not enabled by default.
The allow-direct keyword is
available only when the specified
routing protocol is OSPF.
4. Enable default route
redistribution into BGP.
default-route imported Not enabled by default.