Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring Set Clauses for a Route Map

    This topic describes how to configure the set clauses for a route map.

    To configure set clauses for a route map:

    • Modify an AS path for BGP routes by prepending one or more AS numbers or a list of AS numbers to the path list. The only global BGP metric available to influence the best path selection is the length of the AS path. By varying the length of the AS path, a BGP device can influence the best path selection by a peer farther away.
      host1(config-route-map)#set as-path prepend list list10

      Use the no version to delete the set clause from a route map.

    • Automatically compute the tag value of the destination routing protocol.
      host1(config-route-map)#set automatic-tag

      Use the no version to delete the set clause from a route map.

    • Remove communities specified by the community list from the community attribute of routes that match the route map. (For more information, see Removing Community Lists from a Route Map Overview.)
      host1(config-route-map)#set comm-list 1 delete

      Use the no version to delete the set clause from a route map.

    • Set the community attribute in BGP updates. (For more information, see Setting a BGP Community Attribute to a List of Community Numbers.)
      host1(config-route-map)#set community no-advertise

      Use the no version to delete the set clause from a route map.

    • Enable BGP route flap dampening only on routes that pass the match clauses of, and are redistributed by, a particular route map. BGP creates a dampening parameter block for each unique set of dampening parameters—such as suppress threshold, reuse threshold, and so on—used by BGP. For example, if you have a route map that sets the dampening parameters to one set of values for some routes and to another set of values for the remaining routes, BGP uses and stores two dampening parameter blocks, one for each set.
      host1(config-route-map)#set dampening 5 1000 1500 45 15

      Use the no version to delete the set clause from a route map.

    • Set the administrative distance on routes being installed into the routing table that match the route map. A distance of 255 prevents the route from being installed in the routing table.
      host1(config-route-map)#set distance 5

      Use the no version to delete the set clause from a route map.

    • Set the extended community attributes in a route map for BGP updates. (For more information, see Setting a BGP Extended Community Attribute.)
      host1(config-route-map)#set extcommunity rt 10.10.10.2:325

      Use the no version to delete the set clause from a route map.

    • Set the next-hop attribute of a route that matches a route map. You can specify an IP address or an interface as the next hop.
      host1(config-route-map)#set ip next-hop 192.56.32.1

      Use the no version to delete the set clause from a route map.

    • Set the next-hop attribute of a route that matches a route map. You can specify an IPv6 address or an interface as the next hop.
      host1(config-route-map)#set ipv6 next-hop 1::1

      Use the no version to delete the set clause from a route map.

    • Specify where to import routes when all match criteria of a route map are met.
      host1(config-route-map)#set level level-2

      Use the no version to delete the set clause from a route map.

    • Specify a preference value for the AS path.
      host1(config-route-map)#set local-preference 200

      Use the no version to delete the set clause from a route map.

    • Set the metric value (for BGP, the MED) for a route.

      To establish an absolute metric, do not enter a plus or minus sign before the metric value.

      host1(config-route-map)#set metric 10

      To establish a relative metric, specify a plus or minus sign immediately preceding the metric value. The value is added to or subtracted from the metric of any routes matching the route map. The relative metric value range is 0–4294967295.

      host1(config-route-map)#set metric -25

      Use the no version to delete the set clause from a route map.

    • Set the metric type for a route.
      host1(config-route-map)#set metric-type internal

      Use the no version to delete the set clause from a route map.

    • Set the BGP origin of the advertised route.
      host1(config-route-map)#set origin egp

      Use the no version to delete the set clause from a route map.

    • Set the route class value. The route-class attribute enables you to associate a route class with incoming packets on the basis of the destination or source address of the packet. For example, you can associate different route classes with different VPN services, while using the route classes to classify packets for quality of service (QoS).
      host1(config-route-map)#set route-class 50

      Use the no version to delete the set clause from a route map.

    • Set the routes of the specified type (internal, internal-intra, internal-inter, or external).
      host1(config-route-map)#set route-type internal

      Use the no version to delete the set clause from a route map.

    • Set the tag value of the destination routing protocol.
      host1(config-route-map)#set tag 23

      Use the no version to delete the set clause from a route map.

    • Specify the BGP weight for the routing table.
      host1(config-route-map)#set weight 200

      Note: The weights assigned with the set weight command in a route map override the weights assigned using the neighbor weight and neighbor filter-list weight commands.

      Use the no version to delete the set clause from a route map.

    Published: 2014-08-12