router : route-map : Using route maps with BGP
 
Using route maps with BGP
When a connection is established between BGP peers, the two peers exchange all of their BGP route entries. Afterward, they exchange updates that only include changes to the existing routing information. Several BGP entries may be present in a route-map table. You can limit the number of received or advertised BGP route and routing updates using route maps. Use the config router route-map command to create, edit, or delete a route map.
 
When you specify a route map for the dampening-route-map value through the config router bgp command (see “dampening-route-map <routemap-name_str>”), the FortiGate unit ignores global dampening settings. You cannot set global dampening settings for the FortiGate unit and then override those values through a route map.
Syntax
config router route-map
edit <route_map_name>
set comments <string>
config rule
edit <route_map_rule_id>
set match-as-path <aspath‑list‑name_str>
set match-community <community-list-name_str>
set match-community-exact {enable | disable}
set match-origin {egp | igp | incomplete | none}
set set-aggregator-as <id_integer>
set set-aggregator-ip <address_ipv4>
set set-aspath <id_integer> <id_integer> <id_integer> ...
set set-atomic-aggregate {enable | disable}
set set-community-delete <community-list-name_str>
set set-community <criteria>
set set-community-additive {enable | disable}
set set-dampening-reachability-half-life <minutes>
set set-dampening-reuse <reuse_integer>
set set-dampening-suppress <suppress_integer>
set set-dampening-max-suppress <minutes>
set set-dampening-unreachability-half-life <minutes>
set set-extcommunity-rt <AA:NN> <AA:NN> <AA:NN> ...
set set-extcommunity-soo <AA:NN> <AA:NN> <AA:NN> ...
set set-local-preference <preference_integer>
set set-originator-id <address_ipv4>
set set-origin {egp | igp | incomplete | none}
set set-weight <weight_integer>
end
All fields are optional.
Variable
Description
Default
edit <route_map_name>
Enter a name for the route map.
No default.
comments <string>
Enter a description for this route map name.
No default.
config rule variables
edit <route_map_rule_id>
Enter an entry number for the rule. The number must be an integer.
No default.
match-as-path <aspath‑list‑name_str>
Enter the AS-path list name that will be used to match BGP route prefixes. You must create the AS-path list before it can be selected here. See router aspath-list.
Null
match-community <community-list-name_str>
Enter the community list name that will be used to match BGP routes according to their COMMUNITY attributes. You must create the community list before it can be selected here. See router community-list.
Null
match-community-exact {enable | disable}
This field is only available when match-community is set.
Enable or disable an exact match of the BGP route community specified by the match-community field.
disable
match-origin {egp | igp | incomplete | none}
Enter a value to compare to the ORIGIN attribute of a routing update:
egp — set the value to the NLRI learned from the Exterior Gateway Protocol (EGP). The FortiGate unit has the second-highest preference for routes of this type.
igp — set the value to the NLRI learned from a protocol internal to the originating AS. The FortiGate unit has the highest preference for routes learned through Internal Gateway Protocol (IGP).
incomplete — match routes that were learned some other way (for example, through redistribution).
none — disable the matching of BGP routes based on the origin of the route.
none
set-aggregator-as <id_integer>
Set the originating AS of an aggregated route. The value specifies at which AS the aggregate route originated. The range is from 1 to 65 535. The set-aggregator-ip value must also be set to further identify the originating AS.
unset
set-aggregator-ip <address_ipv4>
This field is available when set-aggregator-as is set.
Set the IP address of the BGP router that originated the aggregate route. The value should be identical to the FortiGate unit router-id value (see router-id <address_ipv4>).
0.0.0.0
set-aspath <id_integer> <id_integer> <id_integer> ...
Modify the FortiGate unit AS_PATH attribute and add to it the AS numbers of the AS path belonging to a BGP route. The resulting path describes the autonomous systems along the route to the destination specified by the NLRI. The range is from 1 to 65 535.
The set-aspath value is added to the beginning of the AS_SEQUENCE segment of the AS_PATH attribute of incoming routes, or to the end of the AS_SEQUENCE segment of the AS_PATH attribute of outgoing routes.
Enclose all AS numbers in quotes if there are multiple occurrences of the same id_integer. Otherwise the AS path may be incomplete.
No default.
set-atomic-aggregate {enable | disable}
Enable or disable a warning to upstream routers through the ATOMIC_AGGREGATE attribute that address aggregation has occurred on an aggregate route. This value does not have to be specified when an as-set value is specified in the aggregate-address table (see “config aggregate-address, config aggregate-address6”).
disable
set-community-delete <community-list-name_str>
Remove the COMMUNITY attributes from the BGP routes identified in the specified community list. You must create the community list first before it can be selected here (see router community-list).
Null
set-community <criteria>
Set the COMMUNITY attribute of a BGP route.
Use decimal notation to set a specific COMMUNITY attribute for the route. The value has the syntax AA:NN, where AA represents an AS, and NN is the community identifier. Delimit complex expressions with double-quotation marks (for example, “123:234 345:456”).
To make the route part of the Internet community, select internet.
To make the route part of the LOCAL_AS community, select local-AS.
To make the route part of the NO_ADVERTISE community, select no-advertise.
To make the route part of the NO_EXPORT community, select no-export.
No default.
set-community-additive {enable | disable}
This field is available when set-community is set.
Enable or disable the appending of the set-community value to a BGP route.
disable
set-dampening-reachability-half-life <minutes>
Set the dampening reachability half-life of a BGP route (in minutes). The range is from 1 to 45.
0
set-dampening-reuse <reuse_integer>
Set the value at which a dampened BGP route will be reused. The range is from 1 to 20 000. If you set set-dampening-reuse, you must also set set-dampening-suppress and set-dampening-max-suppress.
0
set-dampening-suppress <suppress_integer>
Set the limit at which a BGP route may be suppressed. The range is from 1 to 20 000. See also “dampening-suppress <limit_integer>”.
0
set-dampening-max-suppress <minutes>
Set maximum time (in minutes) that a BGP route can be suppressed. The range is from 1 to 255. See also “dampening-max-suppress-time” in “dampening-max-suppress-time <minutes_integer>”.
0
set-dampening-unreachability-half-life <minutes>
Set the unreachability half-life of a BGP route (in minutes). The range is from 1 to 45. See also “dampening-unreachability-half-life <minutes_integer>”.
0
set-extcommunity-rt
<AA:NN> <AA:NN> <AA:NN> ...
Set the target extended community (in decimal notation) of a BGP route. The COMMUNITY attribute value has the syntax AA:NN, where AA represents an AS, and NN is the community identifier.
No default.
set-extcommunity-soo <AA:NN> <AA:NN> <AA:NN> ...
Set the site-of-origin extended community (in decimal notation) of a BGP route. The COMMUNITY attribute value has the syntax AA:NN, where AA represents an AS, and NN is the community identifier.
No default.
set-local-preference <preference_integer>
Set the LOCAL_PREF value of an IBGP route. The value is advertised to IBGP peers. The range is from 0 to 4 294 967 295. A higher number signifies a preferred route among multiple routes to the same destination.
0
set-originator-id <address_ipv4>
Set the ORIGINATOR_ID attribute, which is equivalent to the router-id of the originator of the route in the local AS. Route reflectors use this value to prevent routing loops.
0.0.0.0
set-origin {egp | igp | incomplete | none}
Set the ORIGIN attribute of a local BGP route. Choose one of:
egp — set the value to the NLRI learned from the Exterior Gateway Protocol (EGP).
igp — set the value to the NLRI learned from a protocol internal to the originating AS.
incomplete — if not egp or igp.
none — disable the ORIGIN attribute.
none
set-weight <weight_integer>
Set the weight of a BGP route. A route’s weight has the most influence when two identical BGP routes are compared. A higher number signifies a greater preference. The range is from 0 to 2 147 483 647.
0