HP VPN Firewall Appliances Network Management Configuration Guide

482
Generating BGP routes
BGP can generate routes can be done in the following ways:
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 or BGP-VPN
instance view.
Enter BGP view:
bgp as-number
Enter BGP-VPN instance view:
a. bgp as-number
b. ipv4-family vpn-instance
vpn-instance-name
Use either method.
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 Layer 3—IP Routing Command Reference.
To configure BGP to redistribute IGP routes:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A