Foundry Configuration Guide for the FESX, FSX, and FWSX
21 - 52
© Foundry Networks, Inc.
December 2005
The <name> parameter with the second command specifies an IP prefix list name. To configure an IP prefix list,
see “Defining IP Prefix Lists” on page 21-47.
Matching Based on the Route Source
To match a BGP4 route based on its source, use the
match ip route-source
statement. Here is an example:
FESX424 Router(config)# access-list 10 permit 192.168.6.0 0.0.0.255
FESX424 Router(config)# route-map bgp1 permit 1
FESX424 Router(config-routemap bgp1)# match ip route-source 10
The first command configures an IP ACL that matches on routes received from
192.168.6.0
/24. The remaining
commands configure a route map that matches on all BGP4 routes advertised by the BGP4 neighbors whose
addresses match addresses in the IP prefix list. You can add a set statement to change a route attribute in the
routes that match. You also can use the route map as input for other commands, such as the
neighbor
and
network
commands and some show commands.
Syntax:
match ip route-source <acl> | prefix <name>
The <acl> | prefix <name> parameter specifies the name or ID of an IP ACL, or an IP prefix list.
Matching On Routes Containing a Specific Set of Communities
Foundry software enables you to match routes based on the presence of a community name or number in a route,
0and to match when a route contains exactly the set of communities you specify. To match based on a set of
communities, configure a community ACL that lists the communities, then compare routes against the ACL.
Here is an example.
FESX424 Router(config)# ip community-list standard std_1 permit 12:34 no-export
FESX424 Router(config)# route-map bgp2 permit 1
FESX424 Router(config-routemap bgp2)# match community std_1 exact-match
The first command configures a community ACL that contains community number 12:34 and community name no-
export. The remaining commands configure a route map that matches the community attributes field in BGP4
routes against the set of communities in the ACL. A route matches the route map only if the route contains all the
communities in the ACL and no other communities.
Syntax:
match community <acl> exact-match
The <acl> parameter specifies the name of a community list ACL. You can specify up to five ACLs. Separate the
ACL names or IDs with spaces.
Here is another example.
These commands configure an additional community ACL, std_2, that contains community numbers 23:45 and
57:68. Route map bgp3 compares each BGP4 route against the sets of communities in ACLs std_1 and std_2. A
BGP4 route that contains
either but not both
sets of communities matches the route map. For example, a route
containing communities 23:45 and 57:68 matches. However, a route containing communities 23:45, 57:68 and
12:34, or communities 23:45, 57:68, 12:34, and no-export does not match. To match, the route’s communities
must be the same as those in exactly one of the community ACLs used by the match community statement.
Setting Parameters in the Routes
Use the following command to define a set statement that prepends an AS number to the AS path on each route
that matches the corresponding match statement.
FESX424 Router(config-routemap GET_ONE)# set as-path prepend 65535
Syntax:
set
[as-path [prepend <as-num,as-num,...>]] |
[automatic-tag] |
FESX424 Router(config)# ip community-list standard std_2 permit 23:45 56:78
FESX424 Router(config)# route-map bgp3 permit 1
FESX424 Router(config-routemap bgp3)# match community std_1 std_2 exact-match
Содержание FastIron Edge Switch X424
Страница 36: ...Foundry Configuration Guide for the FESX FSX and FWSX 2 12 Foundry Networks Inc December 2005...
Страница 56: ...Foundry Configuration Guide for the FESX FSX and FWSX 3 20 Foundry Networks Inc December 2005...
Страница 70: ...Foundry Configuration Guide for the FESX FSX and FWSX 4 14 Foundry Networks Inc December 2005...
Страница 198: ...Foundry Configuration Guide for the FESX FSX and FWSX 8 38 Foundry Networks Inc December 2005...
Страница 316: ...Foundry Configuration Guide for the FESX FSX and FWSX 12 26 Foundry Networks Inc December 2005...
Страница 334: ...Foundry Configuration Guide for the FESX FSX and FWSX 13 18 Foundry Networks Inc December 22 2005...
Страница 350: ...Foundry Configuration Guide for the FESX FSX and FWSX 15 12 Foundry Networks Inc December 2005...
Страница 458: ...Foundry Configuration Guide for the FESX FSX and FWSX 18 18 Foundry Networks Inc December 2005...
Страница 712: ...Foundry Configuration Guide for the FESX FSX and FWSX 22 32 Foundry Networks Inc December 2005...
Страница 760: ...Foundry Configuration Guide for the FESX FSX and FWSX A 34 Foundry Networks Inc December 2005...
Страница 796: ...Foundry Configuration Guide for the FESX FSX and FWSX C 18 Foundry Networks Inc December 2005...
Страница 820: ...Foundry Configuration Guide for the FESX FSX and FWSX E 10 Foundry Networks Inc December 2005...