
To Pass The BSCI Exam, Earn Your CCNP Certification, And Become An Outstanding Networker, You've Got To Master The Many Details Of BGP - And Trust Me, There Are A Lot Of Details To Master! Before You Get Into The More Advanced Features Of BGP, You Should Have The Fundamentals Down Cold, And One Of Those Fundamentals Is Knowing The BGP Adjacency States. This Will Allow You To Successfully Analyze And Troubleshoot BGP Peer Relationships.In The Following Example, A BGP Peering Is Being Created Between R1 And R3.R1(config-router)neighbor 172.12.123.3 Remote-as 200BGP 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. R1show Ip Bgp NeighborBGP Neighbor Is 172.12.123.3, Remote AS 200, External LinkBGP Version 4, Remote Router ID 0.0.0.0BGP State ActiveLast Read 00:01:39, Hold Time Is 180, Keepalive Interval Is 60 SecondsReceived 0 Messages, 0 Notifications, 0 In QueueSent 0 Messages, 0 Notifications, 0 In QueueRoute Refresh Request: Received 0, Sent 0Default Minimum Time Between Advertisement Runs Is 30 SecondsThe 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. Before We Continue With This Example, Lets Look At The Different BGP States:Idle Is The Initial State Of A BGP Connection. The BGP Speaker Is Waiting For A Start Event, Generally Either The Establishment Of A TCP Connection Or The Re-establishment Of A Previous Connection. Once The Connection Is Established, BGP Moves To The Next State.Connect Is The Next State. If The TCP Connection Completes, BGP Will Move To The OpenSent Stage If The Connection Does Not Complete, BGP Goes To Active.Active Indicates That The BGP Speaker Is Continuing To Create A Peer Relationship With The Remote Router. If This Is Successful, The BGP State Goes To OpenSent. Youll Occasionally See A BGP Connection Flap Between Active And Connect. This Indicates An Issue With The Physical Cable Itself, Or With The Configuration.OpenSent Indicates That The BGP Speaker Has Received An Open Message From The Peer. BGP Will Determine Whether The Peer Is In The Same AS (iBGP) Or A Different AS (eBGP) In This State.In OpenConfirm State, The BGP Speaker Is Waiting For A Keepalive Message. If One Is Received, The State Moves To Established, And The Neighbor Relationship Is Complete. It Is In The Established State That Update Packets Are Actually Exchanged.So Even Though The Show Ip Bgp Neighbor Output Indicated That This Is An Active Neighbor Relationship, Thats Not As Good As It Sounds. Of Course, The Reason The Peer Relationship Hasnt Been Established Is That We Havent Configured R3 Yet!R3(config)router Bgp 200R3(config-router)neighbor 172.12.123.1 Remote-as 100Verify The Peer Establishment With Show Ip Bgp Neighbor:R3show Ip Bgp NeighborBGP Neighbor Is 172.12.123.1, Remote AS 100, External LinkBGP Version 4, Remote Router ID 172.12.123.1BGP State Established, Up For 00:01:18Last Read 00:00:17, Hold Time Is 180, Keepalive Interval Is 60 SecondsNeighbor Capabilities:Route Refresh: Advertised And Received(old New)Address Family IPv4 Unicast: Advertised And ReceivedReceived 5 Messages, 0 Notifications, 0 In QueueSent 5 Messages, 0 Notifications, 0 In QueueRoute Refresh Request: Received 0, Sent 0Default Minimum Time Between Advertisement Runs Is 30 SecondsLocal Host: 172.12.123.3, Local Port: 179 (BGP Uses TCP Port 179)Foreign Host: 172.12.123.1, Foreign Port: 11007The Peer Relationship Between R1 And R3 Has Been Established!