10 route map example, Route map example -42 – Riverstone Networks WICT1-12 User Manual

Page 300

Advertising
background image

16-42 Riverstone Networks RS Switch Router User Guide Release 8.0

BGP Configuration Examples

BGP Configuration Guide

16.3.10

Route Map Example

Figure 16-12

shows a simple BGP configuration in which routes received on R2 for the networks 15.4.0.0/16 and

15.5.0.0/16 are set with community IDs 1:1 and 1:2, respectively. The routes are exported to R8 with these community
IDs. On R8, BGP routes with the specified community IDs are to be monitored via BGP accounting (see

Section 16.3.11, "BGP Accounting Examples,"

for more information).

Figure 16-12Sample BGP configuration (route map)

Router R2 has the following CLI configuration:

ip-router global set autonomous-system 2
route-map 1 permit 1 match-prefix network 15.4.0.0/16 set-community
"1:1"
route-map 1 permit 2 match-prefix network 15.5.0.0/16 set-community
"1:2"
bgp create peer-group tored type external autonomous-system 65100
bgp add peer-host 15.2.1.3 group tored
bgp set preference 99
bgp set peer-group tored route-map-out 1
bgp start

R

2

15.4.0.0/16

AS-2

15.5.0.0/16

15.6.0.0/16

R

8

12.10.0.0/16

AS-65100

12.11.0.0/16

12.12.0.0/16

15.2.1.1

15.2.1.3

12.13.0.0/16

Advertising