IP Routing—Configuring RIP, OSPF, BGP, and PBR
Configuring BGP
Configuring a BGP Neighbor
BGP is different from many routing protocols because it does not allow a
router to automatically search for peers from which to obtain routes. You must
configure a separate BGP neighbor for each router with which the local router
can communicate. For each neighbor, you can configure a policy to dictate
which routes the BGP interface sends to and accepts from the neighbor.
Setting the BGP Neighbor ID
BGP identifies a peer router by its IP address. You set the neighbor's ID when
you create the policy for it. Enter this command from the BGP configuration
mode context:
Syntax: neighbor <neighbor A.B.C.D>
For example, enter the IP address of your ISP router:
ProCurve(config-bgp 1)# neighbor 1.1.1.1
N o t e
Be aware that you must enter the address for the interface that the remote
router is using as its update source. For example, the neighbor may be using
a loopback interface as the update source for several connections. Your ISP
should provide you with the correct address.
The local router must be able to reach the IP address configured as the
neighbor ID. View the routing table and verify that it includes a route to this
address.
Specifying the Local and Remote AS
You must also specify the ISP's AS. You do so from the BGP neighbor config-
uration mode context:
Syntax: remote-as <AS>
For example:
ProCurve(config-bgp-neighbor)# remote-as 3
You can also set the local AS number:
Syntax: local-as <AS>
15-75