553
Command: import map <map-name>
no import map <map-name>
Function:
Use this command to configure the route-map regulations when introducing
routes into VRF
Parameter: <map-name>
is the route-map name used
Command Mode:
vrf mode
Usage Guide:
Use the route map command route-map NAME permit|deny <1-65535>
to create the route-map and establish the regulations. Using this command will apply
regulations to the route introducing of this VRF
Example:
Switch(config)#route-map map1 permit 15
Switch(config-map)#match interface Vlan1
Switch(config-map)#set weight 655
Reconfiguring VRF DC1 with this route-map
Switch(config-map)#exit
Switch(config)#ip vrf DC1
Switch(config-af)#rd 100:10
Switch(config-af)#route-target both 100:10
Switch(config-af)#import map map1
Switch#show ip bgp vpn all
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:10 (Default for VRF DC1)
*> 11.1.1.0/24 11.1.1.64 0 0 200 ?
*>i15.1.1.0/24 10.1.1.68 0 100 655 300 ?
*> 20.1.1.0/24 11.1.1.64 0 0 200 ?
*>i100.1.1.0/24 10.1.1.68 0 100 655 300 ?
Route Distinguisher: 100:10
*>i15.1.1.0/24 10.1.1.68 0 100 0 300 ?
*>i100.1.1.0/24 10.1.1.68 0 100 0 300 ?
As we can see, the weight of the route from the VPN changes to 655 after introduced into
VRF DC1.
14.8.3.35 ip as-path access-list
Command: ip as-path access-list <.LINE> {<permit>|<deny>} <LINE>
no ip as-path access-list <.LINE> {<permit>|<deny>} <LINE>
Function:
Configure the AS-PATH access-list. The “
no ip as-path access-list <.LINE>
{<permit>|<deny>} <LINE>
“ command deletes this access-list
Parameter: <.LINE>
: name of access-list