host1(config-router-af)#
neighbor 192.168.2.2 advertise-map advertiseroutes
exist-map matchroute sequence 10
■
Use the
no
version to remove the conditions set for advertising to the peer or
peer group the routes specified by the route map. Use the
default
version to
remove the explicit configuration from the peer or peer group and reestablish
inheritance of the feature configuration.
■
See neighbor advertise-map.
Advertising a Route Only When Another Route is Present
You can use the
exist-map
keyword with the
neighbor advertise-map
command to
advertise a route only when the routing table contains some other particular route.
In the network shown in Figure 18 on page 66, router 2 (R2) has established BGP
sessions with both router 1 (R1) and router 3 (R3). The plan is for router 2 to send
router 1 an advertisement for the route to prefix 10.10.20.0/24 only if router 2 has
received a route to prefix 172.24.19.0/24 from router 3.
Alternatively, if the route to prefix 172.24.20.0 has been installed in the BGP routing
table on router 2, then router 2 advertises to router 1 the route to prefix 10.10.30.0.
In this case, the route does not have to be learned from router 3.
Figure 18: Advertising a Route When Another Route is Present
The following commands represent a partial configuration of router R2:
host1(config)#
router bgp 200
host1(config-router)#
address-family ipv4 unicast
host1(config-router-af)#
neighbor 10.2.0.1 remote-as 100
host1(config-router-af)#
neighbor 10.2.0.1 advertise-map advertisetoR1 exist-map
trigger1 sequence 10
host1(config-router-af)#
neighbor 10.2.0.1 advertise-map alternatetoR1 exist-map
trigger2
host1(config-router-af)#
exit
host1(config-router)#
exit
!
!Configure route map to send one route to R1
!
66
■
Advertising Routes
JUNOSe 11.0.x BGP and MPLS Configuration Guide
Содержание JUNOSE
Страница 6: ...vi...
Страница 8: ...viii JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 24: ...xxiv Table of Contents JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 37: ...Part 1 Border Gateway Protocol Configuring BGP Routing on page 3 Border Gateway Protocol 1...
Страница 38: ...2 Border Gateway Protocol JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 234: ...198 Monitoring BGP JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 236: ...200 Multiprotocol Layer Switching JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 298: ...262 Point to Multipoint LSPs Configuration JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 346: ...310 Example Traffic Class Configuration for Differentiated Services JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 535: ...There is no no version See undebug ip mbgp Monitoring BGP MPLS VPNs 499 Chapter 5 Configuring BGP MPLS Applications...
Страница 536: ...500 Monitoring BGP MPLS VPNs JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 538: ...502 Layer 2 Services Over MPLS JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 592: ...556 Multiple ATM Virtual Circuits over a Single Pseudowire Example JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 604: ...568 Virtual Private LAN Service JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 618: ...582 VPLS References JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 642: ...606 VPLS Configuration Example with LDP Signaling JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 674: ...638 Virtual Private Wire Service JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 718: ...682 Monitoring MPLS Forwarding Table for VPWS JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 719: ...Part 6 Index Index on page 685 Index 683...
Страница 720: ...684 Index JUNOSe 11 0 x BGP and MPLS Configuration Guide...