CCNP Certification / BSCI Exam Tutorial: The BGP Neighbor Process
Like TCP, BGP is connection-oriented. An underlying connection between two BGP speakers is established before any routing information is exchanged. This connection takes place on TCP port 179. As with EIGRP and OSPF, keepalive messages are sent out by the BGP speakers in order to keep this relationship alive.
Once the connection is established, the BGP speakers exchange routes and synchronize their tables. After this initial exchange, a BGP speaker will only send further updates upon a change in the network topology.
The IGP protocols that use Autonomous Systems, IGRP and EIGRP, require prospective neighbors to be in the same AS. This is not true with BGP. Routers can be in different Autonomous Systems and still exchange routes. The BGP neighbors do not have to be directly connected, and often are not, but do need to be able to reach the IP addresses they use in their neighbor statements.
A BGP peer that is in the same AS is referred to as an Internal BGP (iBGP) Peer, where a BGP peer in another AS is an External BGP (eBGP) Peer.
A sample iBGP configuration:
Router bgp 100
Neighbor 10.1.1.2 remote-as 100
A sample eBGP configuration:
Router bgp 100
Neighbor 10.1.1.2 remote-as 200
Cisco recommends that eBGP peers be directly connected, where iBGP peers generally will not be.
Before we get too much farther into BGP theory, let’s get a configuration started. You’ll use the router bgp command to configure a router as a BGP speaker. Right after that, the neighbor command will be used to identify this BGP speaker’s potential neighbors. (The terms "peer" and "neighbor" are interchangeable in BGP, but it's the neighbor statement that is used to statically define neighbors. BGP is not capable of discovering neighbors dynamically.)
R1(config-router)#neighbor 172.12.123.3 remote-as 200
While almost all of the neighbor options are just that -- optional -- you do have to specify the BGP AS of the remote router. BGP has no mechanism to dynamically discover neighbors. Remember, BGP speakers do not have to be in the same AS to become peers. To verify that the remote BGP speaker has become a peer, run show ip bgp neighbor.
R1#show ip bgp neighbor
BGP neighbor is 172.12.123.3, remote AS 200, external link
BGP state = Active
Last read 00:01:39, hold time is 180, keepalive interval is 60 seconds
Received 0 messages, 0 notifications, 0 in queue
Sent 0 messages, 0 notifications, 0 in queue
Route refresh request: received 0, sent 0
Default minimum time between advertisement runs is 30 seconds
The output here can be a little misleading the first time you read it. The first highlighted line shows 172.12.123.3 is a BGP neighbor, is located in AS 200, and is an external link, indicating that the neighbor is in another AS entirely. The second highlighted line shows the BGP state as Active. This sounds great, but it actually means that a BGP peer connection does not yet exist with the prospective neighbor.
So even though the show ip bgp neighbor output indicated that this is an Active neighbor relationship, that’s not as good as it sounds. Of course, the reason the peer relationship hasn’t been established is that we haven’t configured R3 yet!
R3(config)#router bgp 200
R3(config-router)#neighbor 172.12.123.1 remote-as 100
Verify the peer establishment with show ip bgp neighbor:
R3#show ip bgp neighbor
BGP neighbor is 172.12.123.1, remote AS 100, external link
BGP version 4, remote router ID 172.12.123.1
BGP state = Established, up for 00:01:18
Last read 00:00:17, hold time is 180, keepalive interval is 60 seconds
Local host: 172.12.123.3, Local port: 179 (BGP uses TCP Port 179)
Foreign host: 172.12.123.1, Foreign port: 11007
The peer relationship between R1 and R3 has been established.
Now that you know how the neighbor relationship itself is built, you need to start learning the many options of the neighbor command. You’ll have to master these to become a CCNP and CCIE!
Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage. He offers free CCNA, CCNP, and Home Lab Setup Tutorials, as well as the world's most comprehensive CCNA Study Guide. Online boot camps, video training, and binary/subnetting help are also available. Clear, concisce, and comprehensive, Chris' CCNA and CCNP training is the finest available. Join the revolution against overpriced and incomplete tech manuals and classes - visit http://www.thebryantadvantage.com/ today!
Your Article Search Directory : Find in ArticlesRecent articles in this category:
- Understanding Cisco Sfp Optical Transceivers
The word SFP is an IT industry term which stands for Small Form Factor Pluggable. An SFP is a variet - Sharing The Internet Connection
If you are connecting two or more of your computers with each other over the network, then it is eas - Connecting The New Computer To My Server
The server is the computer that will handle the requests for applications, data and also other netwo - Networks
What is a network and its types ?The generic term " network "defines a set of entities (objects, peo - Ssl Certificates Are In Use Today Not All Valid
Qualys, a security research firm tries to paint a detailed portrait of SSL deployments and gaps with - A Mail Forwarding Usa - A Gift To Global Trade Links
Technologies have evolved very much over the past few decades. Globalization has enabled the world t - Benefits Of Wan Optimization Appliances/devices
In today's globally competitive market, corporate organizations both big and small adopt strategic m - Proper Network Cable Management And How It Can Save Your Business Time And Money
In many businesses now there are plenty of computers which will likely be attached to some sort of s - Dedicated Hosting In India For Web Servers
Dedicated web server hosting in India for complete control over your dedicated server is provided by - Outsourcing: The Future Of Network Management India
Computer Networking is a dynamic area and few strategies that were not thinkable yesterday can becom
Most viewed articles in this category:
- Image Sticking In Lcd Tv Sets
Image Retention - Isn't it just an issue with Plasma TVs?What is Image Sticking?Many are aware that - Used Foundry Networks: Used IT Gear Goes Mainstream
San Francisco, CA April 10, 2006Ask any IT manager what they think about used data networking gear a - CCNP Certification / BCMSN Exam Tutorial: Server Load Balancing (SLB)
When you're working on your BCMSN exam on your way to CCNP certification, you'll read at length abou - CCNA / MCSE / CCNP Certification: Making Failure Work For You
Whether you're on the road to the CCNA, CCNP, MCSE, or you're on any other computer certification tr - Cisco CCNP / BSCI Exam Tutorial: OSPF Route Redistribution Review
OSPF route redistribution is an important topic on the BSCI exam, and it's a topic full of details a - Cisco CCNA / CCNP / BCMSN Exam Review: Trunking And Trunking Protocols
To earn your CCNA or CCNP certification, you've got to understand the basics of trunking. This - Cisco CCNP / BSCI Exam Tutorial: 10 ISIS Details You Must Know!
Earning your CCNP certification and passing the BSCI exam depends on knowing the details of many Cis - Cisco CCNA / CCNP Certification Exam Tutorial: ISDN And Multilink PPP
ISDN is a huge topic on both your Cisco CCNA and BCRAN CCNP exams. While many ISDN topics seem - Cisco CCNA / CCNP Certification Exam Tutorial: Floating Static Routes
To pass the Cisco CCNA and CCNP certification exams, as well as becoming a world-class networker, yo - Used foundry networks hardware remains in high demand
San Francisco, CA May 22, 2006: In recent years, the trend towards used networking hardware has cont