table-map
BGP configuration mode
BGP address-family IPv6 unicast configuration mode
BGP address-family IPv4 unicast VRF configuration mode
BGP address-family IPv6 unicast VRF configuration mode
When this command is entered in BGP global configuration mode, it applies only to the IPv4 address family. Use this command in BGP address-family IPv6 unicast configuration mode for BGP4+ configurations.
Use this command only to set the tag values. Normally, a route map is applied on
routes (and therefore the routes are updated) before it is stored in the BGP routing
table. Use the
table-map command to begin the update before the routes are stored in the IP routing table.
Configurations made by this command apply to all peers.
Route maps that contain
set statements change values in routes when the routes are accepted by the route map.
For inbound route maps (route maps that filter routes received from neighbors), the
routes are changed before they enter the BGP4 routing table. For tag values, if you
do not want the value to change until a route enters the IP routing table, you can
use a table map to change the value. A table map is a route map that you have associated
with the IP routing table. The device applies the
set statements for tag values in the table map to routes before adding them to the routing
table. To configure a table map, you first configure the route map, then identify
it as a table map. The table map does not require separate configuration. You can
have only one table map.
The no form of the command removes the table map.
The following example illustrates the execution of the
table-map command.
device# configure terminal device(config)# route-map tag_ip permit 1 device(config-route-map tag_ip)# match ip address prefix-list p11 device(config-route-map tag_ip)# set tag 100 device(config-route-map tag_ip)# exit device(config)# router bgp device(config-bgp-router)# table-map tag_ip