Figure 16-2 sample bgp peering session -15 – Riverstone Networks WICT1-12 User Manual

Page 273

Advertising
background image

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

BGP Configuration Guide

BGP Configuration Examples

Figure 16-2 Sample BGP peering session

The CLI configuration for router R1 is as follows:

interface create ip et.1.1 address-netmask 10.0.0.1/16 port et.1.1
#
# Set the AS of the router
#
ip-router global set autonomous-system 1
#
# Set the router ID
#
ip-router global set router-id 10.0.0.1
#
# Create EBGP peer group pg1w2 for peering with AS 2
#
bgp create peer-group pg1w2 type external autonomous-system 2
#
# Add peer host 10.0.0.2 to group pg1w2
#
bgp add peer-host 10.0.0.2 group pg1w2
bgp start

Physical Link

Legend:

Peering Relationship

AS-2

R

1

10.0.0.2/16

10.0.0.1/16

R

2

AS-1

1.1

1.1

Advertising