table-map
■
Use to apply a policy to BGP routes about to be added to the IP routing table.
■
The route map can include any of the clauses listed in Table 18 on page 81.
■
The new route map is applied to all routes that are subsequently placed in the
IP routing table. To apply the new table map to routes that are already present
in the IP routing table, you must refresh the IP routing table with the
clear ip
routes *
command or the
clear ip bgp *
command (this command will bounce
the BGP sessions).
■
Example
host1(config-router)#
table-map distmet1
host1(config-router)#
exit
host1(config)#
exit
host1#
clear ip routes *
■
Use the
no
version to halt application of the route map.
■
See table-map.
For example, suppose you want to change the distance and metric attributes to
particular values for routes advertised by a members of a particular community. The
show ip route bgp
command indicates that the routes currently in the table have a
variety of values for these attributes:
host1#
show ip route bgp
Protocol/Route type codes:
I1- ISIS level 1, I2- ISIS level2,
I- route type intra, IA- route type inter, E- route type external,
i- metric type internal, e- metric type external,
O- OSPF, E1- external type 1, E2- external type2,
N1- NSSA external type1, N2- NSSA external type2
Prefix/Length Type Next Hop Dist/Met Intf
------------------ ------- --------------- -------------- ------------
10.100.3.3/32 Bgp 10.12.12.1 20/0 ATM5/1.12
10.63.42.23/32 Bgp 10.45.2.31 12/5 ATM5/1.14
The following commands demonstrate how you can apply the policy to change these
values:
host1(config)#
route-map distmet1 permit 5
host1(config-route-map)#
match community boston42
host1(config-route-map)#
set distance 33
host1(config-route-map)#
set metric 44
host1(config-route-map)#
exit
host1(config)#
router bgp 100
host1(config-router)#
table-map distmet1
host1(config-router)#
exit
host1(config)#
exit
host1#
clear ip routes *
The
show ip route bgp
command reveals the new values:
host1#
show ip route bgp
Protocol/Route type codes:
82
■
Configuring BGP Routing Policy
JUNOSe 11.1.x BGP and MPLS Configuration Guide
Summary of Contents for BGP
Page 6: ...vi ...
Page 8: ...viii JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 37: ...Part 1 Border Gateway Protocol Configuring BGP Routing on page 3 Border Gateway Protocol 1 ...
Page 38: ...2 Border Gateway Protocol JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 234: ...198 Monitoring BGP JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 236: ...200 Multiprotocol Layer Switching JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 542: ...506 Monitoring BGP MPLS VPNs JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 544: ...508 Layer 2 Services Over MPLS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 610: ...574 Virtual Private LAN Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 624: ...588 VPLS References JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 680: ...644 Virtual Private Wire Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 724: ...688 Monitoring MPLS Forwarding Table for VPWS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 725: ...Part 6 Index Index on page 691 Index 689 ...
Page 726: ...690 Index JUNOSe 11 1 x BGP and MPLS Configuration Guide ...