- Read Me First
- Cisco BGP Overview
- BGP 4
- Configuring a Basic BGP Network
- BGP 4 Soft Configuration
- BGP Support for 4-byte ASN
- IPv6 Routing: Multiprotocol BGP Extensions for IPv6
- IPv6 Routing: Multiprotocol BGP Link-Local Address Peering
- IPv6 Multicast Address Family Support for Multiprotocol BGP
- Configuring Multiprotocol BGP (MP-BGP) Support for CLNS
- BGP IPv6 Admin Distance
- Connecting to a Service Provider Using External BGP
- BGP Route-Map Continue
- BGP Route-Map Continue Support for Outbound Policy
- Removing Private AS Numbers from the AS Path in BGP
- Configuring BGP Neighbor Session Options
- BGP Neighbor Policy
- BGP Dynamic Neighbors
- BGP Support for Next-Hop Address Tracking
- BGP Restart Neighbor Session After Max-Prefix Limit Reached
- BGP Support for Dual AS Configuration for Network AS Migrations
- Configuring Internal BGP Features
- BGP VPLS Auto Discovery Support on Route Reflector
- BGP FlowSpec Route-reflector Support
- BGP Flow Specification Client
- BGP NSF Awareness
- BGP Graceful Restart per Neighbor
- BGP Support for BFD
- IPv6 NSF and Graceful Restart for MP-BGP IPv6 Address Family
- BGP Persistence
- BGP Link Bandwidth
- Border Gateway Protocol Link-State
- iBGP Multipath Load Sharing
- BGP Multipath Load Sharing for Both eBGP and iBGP in an MPLS-VPN
- Loadsharing IP Packets over More Than Six Parallel Paths
- BGP Policy Accounting
- BGP Policy Accounting Output Interface Accounting
- BGP Cost Community
- BGP Support for IP Prefix Import from Global Table into a VRF Table
- BGP Support for IP Prefix Export from a VRF Table into the Global Table
- BGP per Neighbor SoO Configuration
- Per-VRF Assignment of BGP Router ID
- BGP Next Hop Unchanged
- BGP Support for the L2VPN Address Family
- BGP Event-Based VPN Import
- BGP Best External
- BGP PIC Edge for IP and MPLS-VPN
- Detecting and Mitigating a BGP Slow Peer
- Configuring BGP: RT Constrained Route Distribution
- Configuring a BGP Route Server
- BGP Diverse Path Using a Diverse-Path Route Reflector
- BGP Enhanced Route Refresh
- Configuring BGP Consistency Checker
- BGP—Origin AS Validation
- BGP MIB Support
- BGP 4 MIB Support for Per-Peer Received Routes
- BGP Support for Nonstop Routing (NSR) with Stateful Switchover (SSO) Using L2VPN VPLS
- BGP Support for Nonstop Routing (NSR) with Stateful Switchover (SSO) Using L2VPN VPLS
- BGP NSR Auto Sense
- BGP NSR Support for iBGP Peers
- BGP Graceful Shutdown
- BGP — mVPN BGP sAFI 129 - IPv4
- BGP-MVPN SAFI 129 IPv6
- BFD—BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
- BGP Attribute Filter and Enhanced Attribute Error Handling
- BGP Additional Paths
- BGP-Multiple Cluster IDs
- BGP-VPN Distinguisher Attribute
- BGP-RT and VPN Distinguisher Attribute Rewrite Wildcard
- VPLS BGP Signaling
- Multicast VPN BGP Dampening
- BGP—IPv6 NSR
- BGP-VRF-Aware Conditional Advertisement
- BGP—Selective Route Download
- BGP—Support for iBGP Local-AS
- eiBGP Multipath for Non-VRF Interfaces (IPv4/IPv6)
- L3VPN iBGP PE-CE
- BGP NSR Support for MPLS VPNv4 and VPNv6 Inter-AS Option B
- BGP-RTC for Legacy PE
- BGP PBB EVPN Route Reflector Support
- BGP Monitoring Protocol
- VRF Aware BGP Translate-Update
- BGP Support for MTR
- BGP Accumulated IGP
- BGP MVPN Source-AS Extended Community Filtering
- BGP AS-Override Split-Horizon
- BGP Support for Multiple Sourced Paths Per Redistributed Route
- Maintenance Function: BGP Routing Protocol
- Finding Feature Information
- Information About IP Prefix Export from a VRF Table into the Global Table
- How to Export IP Prefixes from a VRF Table into the Global Table
- Configuration Examples for IP Prefix Export from a VRF Table into the Global Table
- Additional References
- Feature Information for IP Prefix Export from a VRF Table into the Global Table
BGP Support for IP Prefix Export from a VRF Table into the Global Table
This feature allows a network administrator to export IP prefixes from a VRF table into the global routing table.
- Finding Feature Information
- Information About IP Prefix Export from a VRF Table into the Global Table
- How to Export IP Prefixes from a VRF Table into the Global Table
- Configuration Examples for IP Prefix Export from a VRF Table into the Global Table
- Additional References
- Feature Information for IP Prefix Export from a VRF Table into the Global Table
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Information About IP Prefix Export from a VRF Table into the Global Table
Benefits of IP Prefix Export from a VRF Table into the Global Table
How IP Prefix Export from a VRF Table into the Global Table Works
MPLS-VPN using Multiprotocol BGP (MP-BGP) provides a very flexible but secured VPN provisioning mechanism for service providers and customers. However, some customers prefer to relax the boundary so that some specific prefixes can be reachable in a VRF as well as in the global routing table.
Prior to the BGP Support for IP Prefix Export from a VRF Table into Global Table feature, BGP already supported the global-to-VRF import of prefixes. See the “BGP Support for IP Prefix Import from Global Table into a VRF Table” module for complete documentation of that feature. Together, the import feature and export feature provide L3VPN dynamic route leaking.
The BGP Support for IP Prefix Export from a VRF Table into the Global Table feature provides the reverse mechanism of the import feature referenced above; it supports the export of prefixes from a VRF table to the global routing table. It is achieved with an export {ipv4 | ipv6} {unicast | multicast} map command, which specifies a route map to control the prefixes that are exported from a VRF table to the global routing table.
Caution | The IP Prefix Export from a VRF Table into Global Table feature leaks VRF routes into the global BGP routing table; those routes will be installed into the IPv4 or IPv6 routing table. Use extreme caution to design the network so that such leaking does not affect the normal Internet routing. |
Export actions are triggered when a new routing update is received or when routes are withdrawn. During the initial BGP update period, the export action is postponed to allow BGP to converge more quickly. Once BGP converges, incremental BGP updates are evaluated immediately and qualified prefixes are exported as they are received.
Each VRF can export to only one of the global topologies in IPv4 (unicast or multicast) and can export to only one of the global topologies in IPv6 (unicast or multicast).
There is no limit to the number of VRFs per router that can be configured to export IPv4 or IPv6 prefixes to the global routing table.
By default, the software limits the number of prefixes that can be exported per VRF to 1000 prefixes. You can change that limit to a number in the range from 1 to 2,147,483,647 prefixes for each VRF. We recommend that you use caution if you increase the prefix limit above 1000. Configuring the device to export too many prefixes can interrupt normal router operation.
The following match and set commands are supported in this feature:
match as-path
match community [exact-match]
match extcommunity
match ip address [prefix-list]
match ip next-hop
match ip route-source
match ipv6 address [prefix-list]
match ipv6 route-source
match ipv6 next-hop
match policy-list
match route-type
set as-path prepend [last-as]
set community additive
set extcommunity [cost | rt]
set extcomm-list delete
set ip next-hop
set ipv6 next-hop
set local-preference
set metric
set origin
set weight
Note | The set ip vrf next-hop and set ipv6 vrf next-hop commands are not supported in this feature. |
How to Export IP Prefixes from a VRF Table into the Global Table
Creating the VRF and the Export Route Map for an Address Family
The IP prefixes that are defined for export are processed through a match clause in a route map. IP prefixes that pass through the route map are exported into the global routing table.
1.
enable
2.
configure
terminal
3.
vrf
definition
vrf-name
4.
rd
route-distinguisher
5.
address-family
{ipv4 |
ipv6}
6.
export {ipv4 |
ipv6}
{unicast |
multicast} [prefix-limit]
map
map-name
7.
route-target
import
route-target-ext-community
8.
route-target
export
route-target-ext-community
9.
exit
10.
exit
11.
route-map
map-tag
[permit |
deny] [sequence-number]
12.
match
ip
address
{acl-number [acl-number |
acl-name] |
acl-name [acl-name |
acl-number] |
prefix-list
prefix-list-name [prefix-list-name]}
13.
end
DETAILED STEPS
Creating the VRF and the Export Route Map for a VRF (IPv4 only)
The IP prefixes that are defined for export are processed through a match clause in a route map. IP prefixes that pass through the route map are exported into the global routing table.
1.
enable
2.
configure
terminal
3.
ip
vrf
vrf-name
4.
rd
route-distinguisher
5.
export
ipv4
{unicast |
multicast} [prefix-limit]
map
map-tag
6.
route-target
import
route-target-ext-community
7.
route-target
export
route-target-ext-community
8.
exit
9.
route-map
map-tag
[permit |
deny] [sequence-number]
10.
match
ip
address
{acl-number [acl-number |
acl-name] |
acl-name [acl-name |
acl-number] |
prefix-list
prefix-list-name [prefix-list-name]}
11.
end
DETAILED STEPS
Displaying Information About IP Prefix Export from a VRF into the Global Table
Perform any of the steps in this task to see information about the prefixes exported from a VRF table into the global table.
1.
enable
2.
show
ip
bgp
{ipv4 |
ipv6} {unicast |
multicast} [prefix]
3.
debug
ip
bgp
import
event
4.
debug
ip
bgp
import
update
DETAILED STEPS
Configuration Examples for IP Prefix Export from a VRF Table into the Global Table
Example: Exporting IP Prefixes from a VRF Table into the Global Table Using IPv6 Address Family
vrf definition X rd 100:100 address-family ipv6 export ipv6 unicast map OnlyNet2000 route-target import 100:100 route-target export 100:100 ! ipv6 prefix-list net2000 permit 2000::/16 ! route-map OnlyNet2000 permit 10 match ipv6 address prefix-list net2000
Example: Exporting IP Prefixes from a VRF Table into the Global Table Using IPv4 Address Family
vrf definition X rd 100:100 address-family ipv4 export ipv4 unicast map OnlyNet200 route-target import 100:100 route-target export 100:100 ! ip prefix-list net200 permit 200.0.0.0/8 ! route-map OnlyNet200 permit 10 match ip address prefix-list net200
Example: Exporting IP Prefixes from a VRF Table into the Global Table Using IP VRF (IPv4 Only)
ip vrf vrfname rd 100:100 export ipv4 unicast map OnlyNet200 route-target import 100:100 route-target export 100:100 ! ip prefix-list net200 permit 200.0.0.0/8 ! route-map OnlyNet200 permit 10 match ip address prefix-list net200
Additional References
Related Documents
Related Topic |
Document Title |
---|---|
Cisco IOS commands |
|
BGP commands |
|
Use of route-target import and export |
MPLS: Layer 3 VPNs Configuration Guide |
Technical Assistance
Description |
Link |
---|---|
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. |
Feature Information for IP Prefix Export from a VRF Table into the Global Table
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Feature Name |
Releases |
Feature Information |
---|---|---|
BGP Support for IP Prefix Export from a VRF Table into the Global Table |
This feature allows a network administrator to export IP prefixes from a VRF routing table into the global routing table. The following command was introduced: export map (VRF table to global table). The following commands were modified: debug ip bgp import and show ip bgp. |