Community attribute example, Creating an aggregate route – Cabletron Systems SmartSwitch Router 9032578-02 User Manual

Page 90

Advertising
background image

Chapter 6: BGP Configuration Guide

90

SmartSwitch Router User Reference Manual

The gated.conf file for router SSR3 is as follows:

The CLI configuration for router SSR4 is as follows:

The gated.conf file for router SSR4 is as follows:

Community Attribute Example

The following configuration illustrates the BGP community attribute. Community is
specified as one of the parameters in the optional attributes list option of the ip-router
policy create

command.

Figure 5

shows a BGP configuration where the specific community attribute is used.

Figure 6

shows a BGP configuration where the well-known community attribute is used.

static {
16.122.0.0 masklen 16
gateway 17.122.128.3
;
};

bgp create peer-group ebgp_multihop autonomous-system 64801 type external
bgp add peer-host 18.122.128.2 group ebgp_multihop
!
! Specify the gateway option, which indicates EBGP multihop. Set the
! gateway option to the address of the router that has a route to the
! peer.
!
bgp set peer-host 18.122.128.2 gateway 16.122.128.3 group ebgp_multihop

autonomoussystem 64800 ;

routerid 0.0.0.1 ;

bgp yes {
traceoptions state ;

group type external peeras 64801
{
peer 18.122.128.2
gateway 16.122.128.3

Advertising