Riverstone Networks WICT1-12 User Manual

Page 298

Advertising
background image

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

BGP Configuration Examples

BGP Configuration Guide

R13 has the following CLI configuration:

R8 has the following CLI configuration:

The following examples of the

bgp show routes

command show how the as-path attribute is modified as the route

is passed through the routers in the BGP confederation.

On R9, the route advertised by R8 is shown with R8’s AS number (64901) prepended to the path::

ip-router global set router-id 13.1.1.1
ip-router global set autonomous-system 64902
ip-router global set trace-state on

bgp create peer-group rtr12 type external autonomous-system 64705
bgp add peer-host 172.16.225.1 group rtr12
bgp start

ip-router global set autonomous-system 64901
ip-router global set router-id 134.141.178.48

ip-router policy create bgp-export-destination rtr9 autonomous-system 64705
ip-router policy create aspath-export-source abc aspath-regular-expression "(.*
701 .*)" origin any protocol all
ip-router policy redistribute from-proto bgp source-as 64751 to-proto bgp target-as
64705 network 3.0.0.0/8

bgp create peer-group rtr9 type external autonomous-system 64705
bgp add peer-host 182.1.1.1 group rtr9
bgp add peer-host 172.16.220.1 group rtr9
bgp start

r9# bgp show routes all
BGP table : Local router ID is 182.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Path
------- -------- ------ ------ ----
*>3/8 172.16.220.2 50 1000 64901 64751 6379 1 701 80 i
172.16.222/24 172.16.222.2 100 i
* 172.16.223/24 172.16.222.2 100 i

Advertising