35 ip as-path access-list – Accton Technology ES4626 User Manual
Page 540

540
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.
13.8.3.35 ip as-path access-list
Command: ip as-path access-list <.LINE> {
no ip as-path access-list <.LINE> {
Function:
Configure the AS-PATH access-list. The “no ip as-path access-list <.LINE>
{
“ command deletes this access-list
Parameter: <.LINE>
: name of access-list
: matched strings in the AS-PATH
Default:
None
Command Mode:
Global mode
Usage Guide:
Use this command to configure the access-list related to AS-PATH, so to
supply the conditions for pass/filter.
Example:
Switch(config)#ip as-path access-list ASPF deny ^100$