Important: The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s).
Specifies the name of an AS path access list for matching. AS_list must be from 1 to 79 alphanumeric characters in length.This command is used for BGP-4 routing to specify an AS path access list to be matched. Refer to the ip as-path access-list command for more information.To match entries in an AS path access list named ASlist1, enter the following command;match as-path ASlist1To match routes that have the next hop interface specified as Interface123, enter the following command:match interface Interface123To disable matching routes that have the next hop interface specified as Interface123, enter the following command:no match interface Interface123To match routes that are specified in a prefix list named Prefix100, enter the following command:match ip address prefix-list Prefix100To disable matching routes that are specified in a prefix list named Prefix100, enter the following command:no match ip address prefix-list Prefix100To match next-hop addresses with entries in a prefix-list named Prefix100, enter the following command:match ip address next-hop prefix-list Prefix100To disable matching next-hop addresses with entries in a prefix-list named Prefix100, enter the following command:no match ip address next-hop prefix-list Prefix100To match routes with the route metric of 1200, enter the following command:match metric 1200To disable matching routes with a route metric of 1200, enter the following command:no match metric 1200match tag 1234no match tag 1234AS number(s) to be prepended to the AS path. You can specify up to 16 different AS numbers to be prepended in the order specified. Each AS number must be separated by a space. ASN must be an integer from 1 through 65535.set as-path prepend 100 200 1000To set the next hop for routes to the IP address 192.168.2.100, use the following command:set ip next-hop 192.168.2.100To disable setting the next hop for routes to the IP address 192.168.2.100, use the following command:no set ip next-hop 192.168.2.100To set the route metric to 12345, use the following command;set metric 12345To disable setting the route metric to 12345, enter the following command;no set metric 12345Set the origin code to specify that the path is from a local Interior Gateway Protocol (IGP) system.To set the route tag value to 12345, enter the following command:set tag 12345To disable setting the route tag value to 12345, enter the following command:no set tag 12345set weight valueno set weight valueset weight 1000
![]() |
Cisco Systems Inc. |
Tel: 408-526-4000 |
Fax: 408-527-0883 |