table-map
To modify metric and tag values when the IP routing table is updated with BGP learned routes, use the table-map command in address family configuration mode. To disable this function, use the no form of the command.
table-map map_name [ filter ]
no table-map map_name [ filter ]
Syntax Description
map_name |
The name of the route map that should control what gets put into the BGP routing table (RIB). |
filter |
(Optional) Specifies that the route map controls not only the metrics on a BGP route, but also whether the route is downloaded into the RIB. A BGP route is not downloaded to the RIB if it is denied by the route map. |
Command Default
This command is disabled by default.
Command Modes
The following table shows the modes in which you can enter the command:
Command Mode |
Firewall Mode |
Security Context |
|||
---|---|---|---|---|---|
Routed |
Transparent |
Single |
Multiple |
||
Context |
System |
||||
Address family configuration |
|
— |
|
|
— |
Command History
Release |
Modification |
---|---|
9.2(1) |
This command was added. |
Usage Guidelines
A table map references a route map that sets metrics and a tag value for routes that are updated in the BGP routing table, or controls whether routes are downloaded to the RIB.
When the table-map command:
-
Does not include the filter keyword, the route map referenced is used to set certain properties of a route before the route is installed (downloaded) into the RIB. The route is always downloaded, regardless of whether it is permitted or denied by the route map.
-
Includes the filter keyword, the route map referenced also controls whether the BGP route is downloaded to the RIB. A BGP route is not downloaded to the RIB if it is denied by the route map.
You can use match clauses in the route map that the table map references to match routes based on IP access list, autonomous system paths, and next hop.
Examples
In the following address family configuration mode example, the Secure Firewall ASA software is configured to automatically compute the tag value for the BGP learned routes and to update the IP routing table:
ciscoasa(config)# route-map tag
ciscoasa(config-route-map)# match as path 10
ciscoasa(config-route-map)# set automatic-tag
ciscoasa(config)# router bgp 100
ciscoasa(config-router)# address-family ipv4 unicast
ciscoasa(config-router-af)# table-map tag