Configuring BGP4

5.Enter the name of the route map in the Route Map Name field.

6.Enter the sequence (instance) number in the Sequence field. The routing switch applies the instances in ascending numerical order. Once an instance comparison results in a “true” evaluation, the routing switch stops applying instances and applies the match and set statements you configure for the instance. See “Specifying the Match Conditions” on page 10-61and “Setting Parameters in the Routes” on page 10-66.

7.Select the action you want the routing switch to perform if the comparison results in a “true” value:

If you select Deny, the routing switch does not advertise or learn the route.

If you select Permit, the routing switch applies the match and set statements associated with this route map instance.

8.Click the Add button to apply the changes to the device’s running-config file.

9.Select the Save link at the bottom of the dialog. Select Yes when prompted to save the configuration change to the startup-config file on the device’s flash memory.

Specifying the Match Conditions

Use the following command to define the match conditions for instance 1 of the route map GET_ONE. This instance compares the route updates against BGP4 address filter 11.

HP9300(config-bgp-routemap GET_ONE)# match address-filters 11

Syntax: match [as-path <num>]

[address-filters as-path-filters community-filters <num,num,...>] [community <num>]

[ip address next-hop <acl-num> prefix-list <string>] [metric <num>]

[next-hop <address-filter-list>]

[route-type internal external-type1 external-type2] [tag <tag-value>]

The as-path<num> parameter specifies an AS-path ACL. You can specify up to five AS-path ACLs. To configure an AS-path ACL, use the ip as-pathaccess-listcommand. See “Defining an AS-Path ACL” on page 10-47.

The address-filters as-path-filters community-filters<num,num,...> parameter specifies a filter or list of filters to be matched for each route. The router treats the first match as the best match. If a route does not match any filter in the list, then the router considers the match condition to have failed. To configure these types of filters, use commands at the BGP configuration level.

To configure an address filter, see “Filtering Specific IP Addresses” on page 10-44.

To configure an AS-path filter or AS-path ACL, see “Filtering AS-Paths” on page 10-46.

To configure a community filter or community ACL, see “Filtering Communities” on page 10-51.You can enter up to six community names on the same command line.

10 - 61