advertises neither of the routes to router R2. Consequently, router R2 advertises both
10.10.20.0/24 and 10.10.30.0/24 to peergroup1.
Figure 19: Advertising a Route When Another Route is Absent
The following commands configure router R2:
host1(config)#
router bgp 200
host1(config-router)#
neighbor peergroup1 peer-group
host1(config-router)#
neighbor peergroup1 remote-as 100
host1(config-router)#
neighbor 10.6.6.2 peer-group peergroup1
host1(config-router)#
neighbor 10.7.3.2 peer-group peergroup1
host1(config-router)#
neighbor 10.4.4.2 peer-group peergroup1
host1(config-router)#
neighbor peergroup1 advertise-map advertisetoPG1
non-exist-map condition1 sequence 5
host1(config-router)#
neighbor peer-group1 advertise-map alternatetoPG1
non-exist-map condition2
host1(config-router)#
exit
host1(config)#
ip as-path access-list 1 permit ^300
!
!Configure route map to send one route to peergroup1
!
host1(config)#
access-list 77 permit 10.10.30.0 0.0.0.255
host1(config)#
route-map advertisetoPG1 permit 10
host1(config-route-map)#
match ip address 77
host1(config-route-map)#
exit
!
!Configure route map to match one trigger route
!
host1(config)#
access-list 70 permit 172.24.20.0 0.0.0.255
host1(config)#
route-map condition1 permit 10
host1(config-route-map)#
match ip address 70
host1(config-route-map)#
exit
!
!Configure route map to send alternate route to peergroup1
!
host1(config)#
access-list allow permit 10.10.20.0 0.0.0.255
68
■
Advertising Routes
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 ...