Configuring BGP

BGP Configuration Examples

neighbor 1.1.1.3 remote-as 300

neighbor 1.1.1.3 route-map set-peer-address out

route-map set-peer-address permit 10 set ip next-hop peer-address

Router C Configuration

router bgp 300

neighbor 1.1.1.2 remote-as 200

BGP Neighbor Configuration Examples

The following example shows how BGP neighbors on an autonomous system are configured to share information. In the example, a BGP router is assigned to autonomous system 109, and two networks are listed as originating in the autonomous system. Then the addresses of three remote routers (and their autonomous systems) are listed. The router being configured will share information about networks 131.108.0.0 and 192.31.7.0 with the neighbor routers. The first router listed is in a different autonomous system; the second neighbor remote-asrouter configuration command specifies an internal neighbor (with the same autonomous system number) at address 131.108.234.2; and the third neighbor remote-asrouter configuration command specifies a neighbor on a different autonomous system.

router bgp 109 network 131.108.0.0 network 192.31.7.0

neighbor 131.108.200.1 remote-as 167 neighbor 131.108.234.2 remote-as 109 neighbor 150.136.64.19 remote-as 99

In Figure 58, Router A is being configured. The iBGP neighbor is not directly linked to Router A. External neighbors (in autonomous system 167 and autonomous system 99) must be linked directly to Router A.

Cisco IOS IP Configuration Guide

IPC-336

Page 382
Image 382
Cisco Systems 78-11741-02 manual BGP Neighbor Configuration Examples, IPC-336