Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Understanding Table Maps

    For static routes, you can use the ip static-route table-map or ipv6 static-route table-map command to filters static routes before adding them to the routing table. For access routes, you can use the ip access-route table-map or ipv6 access-route table-map command to filter access routes before an access list adds them to the routing table.

    Use these commands on the policy values listed in Table 1.

    Table 1: Match and Set Policy Values

    Match

    Set

    ip address

    metric

    metric

    distance

    distance

    tag

    tag

     

    For example, you can configure an access list and route map to filter, on the basis of IP address, any routes that appear in the routing table:

    host1(config)#ip access-route table-map just10net host1(config)#access-list permit10 permit 10.0.0.0 0.255.255.255 host1(config)#access-list permit10 deny any host1(config)#route-map just10net host1(config-route-map)#match ip address permit10

    Using the same name for both the table map and the route map creates an association specifying (in this case) that only IP addresses that match the access list criterion appear in the routing table.

    Published: 2014-08-12