Step
1.
Enter system view.
2.
Enter BGP view or BGP-VPN
instance view.
3.
Enter BGP IPv4 unicast
address family view or
BGP-VPN IPv4 unicast
address family view.
4.
Inject a local network to the
BGP routing table.
To inject a local network (IPv6):
Step
1.
Enter system view.
2.
Enter BGP view or BGP-VPN
instance view.
3.
Enter BGP IPv6 unicast
address family view or
BGP-VPN IPv6 unicast
address family view.
Inject a local network to the
4.
IPv6 BGP 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.
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
1.
Enter system view.
Command
system-view
•
Enter BGP view:
bgp as-number
•
Enter BGP-VPN instance view:
a.
bgp as-number
b.
ip vpn-instance
vpn-instance-name
address-family ipv4 [ unicast ]
network ip-address [ mask |
mask-length ] [ route-policy
route-policy-name ]
Command
system-view
•
Enter BGP view:
bgp as-number
•
Enter BGP-VPN instance view:
a.
bgp as-number
b.
ip vpn-instance
vpn-instance-name
address-family ipv6 [ unicast ]
network ipv6-address prefix-length
[ route-policy route-policy-name ]
Command
system-view
198
Remarks
N/A
N/A
N/A
By default, BGP does not advertise
any local network.
Remarks
N/A
N/A
N/A
By default, BGP does not advertise
any local network.
Remarks
N/A