Using a table map to set the tag value, Redistributing static routes – Brocade Multi-Service IronWare Routing Configuration Guide (Supporting R05.6.00) User Manual
Page 98
70
Multi-Service IronWare Routing Configuration Guide
53-1003033-02
Using a table map to set the tag value
The route-map map-name parameter specifies a route map to be consulted before adding the
OSPF route to the BGP4 route table.
Redistributing static routes
To configure the device to redistribute static routes, enter the following command.
Brocade(config-bgp)# redistribute static
Syntax: [no] redistribute static [metric num] [route-map map-name]
The static parameter indicates that you are redistributing static routes into BGP4.
The metric num parameter changes the metric. You can specify a value from 0 – 4294967295.
The default is 0.
The route-map map-name parameter specifies a route map to be consulted before adding the
static route to the BGP4 route table.
NOTE
The route map you specify must already be configured on the device. Refer to
on page 81 for information about defining route maps.
Using a table map to set the tag value
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 route table.
For tag values, if you do not want the value to change until a route enters the IP route 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 route 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 one table map.
NOTE
Use table maps only for setting the tag value. Do not use table maps to set other attributes. To set
other route attributes, use route maps or filters.
To create a route map and identify it as a table map, enter commands such as following. These
commands create a route map that uses an address filter. For routes that match the IP prefix list
filter, the route map changes the tag value to 100 and is then considered as a table map. This
route map is applied only to routes the device places in the IP route table. The route map is not
applied to all routes. This example assumes that IP prefix list p11 has already been configured.
Brocade(config)# route-map TAG_IP permit 1
Brocade(config-routemap TAG_IP)# match ip address prefix-list p11
Brocade(config-routemap TAG_IP)# set tag 100
Brocade(config-routemap TAG_IP)# router bgp
Brocade(config-bgp)# table-map TAG_IP