181
Injecting a local network
Perform this task to inject a network in the local routing table to the BGP routing table, so 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 control route advertisement.
The specified network must be available and active in the local IP routing table.
To inject a local network (IPv4):
Ste
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. ip vpn-instance
vpn-instance-name
N/A
3. Enter BGP IPv4 unicast
instance view or BGP-VPN
IPv4 unicast instance view.
ipv4-family [ unicast ] N/A
4. Inject a local network to the
BGP routing table.
network ip-address [ mask |
mask-length ] [ route-policy
route-policy-name ]
By default, BGP does not advertise
any local network.
To inject a local network (IPv6):
Ste
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. ip vpn-instance
vpn-instance-name
N/A
3. Enter BGP IPv6 unicast
instance view or BGP-VPN
IPv6 unicast instance view.
ipv6-family [ unicast ] N/A
4. Inject a local network to the
IPv6 BGP routing table.
network ipv6-address prefix-length
[ route-policy route-policy-name ]
By default, BGP does not advertise
any local network.
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.