beautypg.com

39 import map, Import map – PLANET XGS3-24040 User Manual

Page 530

background image


35-243

Switch(config-router-af)# exit-address-family

Switch(config-router)#

Related Command: address-family

35.39 import map

Command: import map

no import map <map-name>

Function: Use this command to configure the route-map regulations when introducing routes into VRF.

Parameter: 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