BGP: table-map command

From: Gery Pang (pang_gery@yahoo.com.hk)
Date: Sat Mar 08 2003 - 08:37:10 GMT-3


Hi Group,

I want to know when the table-map command should be used?
The document said it is to set the tag and route metric.

I have tried to set the route metric with the command and the route-map
method. The difference is only in the metric value in the bgp routing table.
With table-map, it is not changed but metric is changed with the route-map.
So, what is the function of the table-map? How to use it?

TABLE-MAP

router bgp 34
 table-map tag
 neighbor 172.16.13.1 remote-as 100

route-map tag permit 10
 match ip address 22
 set metric 10034
!
route-map tag permit 20

 Network Next Hop Metric LocPrf Weight Path

*> 192.168.10.0/28 172.16.13.1 0 0 100 i
*> 192.168.10.16/28 172.16.13.1 0 0 100 i

R3#sir 192.168.10.0 255.255.255.240
Routing entry for 192.168.10.0/28
  Known via "bgp 34", distance 20, metric 10034
  Tag 100, type external
  Redistributing via ospf 10
  Advertised by ospf 10 subnets route-map b2o
  Last update from 172.16.13.1 00:00:31 ago
  Routing Descriptor Blocks:
  * 172.16.13.1, from 172.16.13.1, 00:00:31 ago
      Route metric is 10034, traffic share count is 1
      AS Hops 1

ROUTE-MAP

router bgp 34
 neighbor 172.16.13.1 remote-as 100
 neighbor 172.16.13.1 route-map tag in

route-map tag permit 10
 match ip address 22
 set metric 10034
!
route-map tag permit 20

 Network Next Hop Metric LocPrf Weight Path

*> 192.168.10.0/28 172.16.13.1 10034 0 100 i
*> 192.168.10.16/28 172.16.13.1 10034 0 100 i

R3#sir 192.168.10.0 255.255.255.240
Routing entry for 192.168.10.0/28
  Known via "bgp 34", distance 20, metric 10034
  Tag 100, type external
  Redistributing via ospf 10
  Advertised by ospf 10 subnets route-map b2o
  Last update from 172.16.13.1 00:02:56 ago
  Routing Descriptor Blocks:
  * 172.16.13.1, from 172.16.13.1, 00:02:56 ago
      Route metric is 10034, traffic share count is 1
      AS Hops 1

Thanks in advance.

Regards,

Gery



This archive was generated by hypermail 2.1.4 : Sat Apr 05 2003 - 08:51:35 GMT-3