PurposeCommand or Action
Enters VRF address-family configuration mode.address-family {ipv4 | ipv6} unicast
Example:
Step 3
RP/0/RP0/CPU0:router(config-vrf)#address-family
ipv6 unicast
Imports routes from default-VRF to non-default VRF or
from non-default VRF to default-VRF.
Use one of these options:
Step 4
• import from default-vrf route-policy
route-policy-name [advertise-as-vpn]
• import from default-vrf—configures import from
default-VRF to non-default-VRF.
• export to default-vrf route-policy
route-policy-name
If the advertise-as-vpn option is configured, the paths
imported from the default-VRF to the non-default-VRF
Example:
are advertised to the PEs as well as to the CEs. If the
RP/0/RP0/CPU0:router(config-vrf-af)#import from
default-vrf route-policy rpl_dynamic_route_import
advertise-as-vpn option is not configured, the paths
imported from the default-VRF to the non-default-VRF
or
are not advertised to the PE. However, the paths are
still advertised to the CEs.
RP/0/RP0/CPU0:router(config-vrf-af)#export to
default-vrf route-policy rpl_dynamic_route_export
• export to default-vrf—configures import from
non-default-VRF to default VRF. The paths imported
from the default-VRF are advertised to other PEs.
commit
Step 5
What to do next
These show bgp command output displays information from the dynamic route leaking configuration:
• Use the show bgp prefix command to display the source-RD and the source-VRF for imported paths,
including the cases when IPv4 or IPv6 unicast prefixes have imported paths.
• Use the show bgp imported-routes command to display IPv4 unicast and IPv6 unicast address-families
under the default-VRF.
Configuration Examples for Implementing BGP
This section provides the following configuration examples:
Enabling BGP: Example
The following shows how to enable BGP.
prefix-set static
2020::/64,
2012::/64,
10.10.0.0/16,
10.2.0.0/24
end-set
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
89
Implementing BGP
Configuration Examples for Implementing BGP