DIGITAL GIGAswitch/Router User Reference Manual
123
BGP Configuration Examples
The gated.conf file for router GSR3 is as follows:
The CLI configuration for router GSR4 is as follows:
The gated.conf file for router GSR4 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 11
shows a BGP configuration where the specific community attribute is used.
Figure 12
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