Cisco Cisco IOS Software Release 12.2(27)SBC

Descargar
Página de 20
      BGP Support for IP Prefix Import from Global Table into a VRF Table
Configuration Examples for Importing IP Prefixes from the Global Table into a VRF Table
10
Cisco IOS Release: Multiple releases (see the Feature History table)
Configuration Examples for Importing IP Prefixes from the 
Global Table into a VRF Table
The following examples show how to configure this feature:
Configuring Global IP Prefix Import: Example
The following example imports unicast prefixes into the VRF named GREEN using an IP prefix list and 
a route map:
This sample starts in global configuration mode:
!
ip prefix-list COLORADO seq 5 permit 10.131.64.0/19
ip prefix-list COLORADO seq 10 permit 172.31.2.0/30
ip prefix-list COLORADO seq 15 permit 172.31.1.1/32
!
ip vrf green
 rd 200:1
 import ipv4 unicast map UNICAST
 route-target export 200:10
 route-target import 200:10
!
exit
!
route-map UNICAST permit 10
 match ip address prefix-list COLORADO
!
exit
Verifying Global IP Prefix Import: Example
The show ip vrf command or the show ip bgp vpnv4 command can be used to verify that prefixes are 
imported from the global routing table to the VRF table. 
The following example from the show ip vrf command shows the import route map named UNICAST 
is importing IPv4 unicast prefixes and the prefix import limit is 1000: 
Router# show ip vrf detail
VRF green; default RD 200:1; default VPNID <not set>
  Interfaces:
    Se2/0                   
VRF Table ID = 1
  Export VPN route-target communities
    RT:200:10               
  Import VPN route-target communities
    RT:200:10               
  Import route-map for ipv4 unicast: UNICAST (prefix limit: 1000)
  No export route-map
  VRF label distribution protocol: not configured
  VRF label allocation mode: per-prefix
VRF red; default RD 200:2; default VPNID <not set>