{"id":1138,"date":"2020-11-19T02:45:00","date_gmt":"2020-11-19T02:45:00","guid":{"rendered":"http:\/\/bytereign.com\/?p=1138"},"modified":"2025-04-22T10:21:27","modified_gmt":"2025-04-22T09:21:27","slug":"bgp-border-gateway-protocol-quick-reference-notes","status":"publish","type":"post","link":"https:\/\/bytereign.com\/?p=1138","title":{"rendered":"BGP (Border Gateway Protocol): Quick Reference Notes"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1138\" class=\"elementor elementor-1138\">\n\t\t\t\t<div class=\"elementor-element elementor-element-571c017 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"571c017\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3e6850a elementor-widget elementor-widget-text-editor\" data-id=\"3e6850a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"color: #333333;\">Quick BGP notes, for network professionals seeking insights into key attributes, the path vector protocol, and routing decisions.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3fa28a7 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"3fa28a7\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-70497cf elementor-widget elementor-widget-text-editor\" data-id=\"70497cf\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div><span style=\"color: #333333;\">Border Gateway Protocol (BGP)<\/span><\/div><div>\u00a0<\/div><div><span style=\"color: #333333;\">Basic Information<\/span><\/div><ol><li><span style=\"color: #333333;\">Version: BGPv4<\/span><\/li><li><span style=\"color: #333333;\">Standard: RFC 427<\/span><\/li><li><span style=\"color: #333333;\">Type: EGP -Path Vector<\/span><\/li><li><span style=\"color: #333333;\">iBGP Administrative Distance: 200<\/span><\/li><li><span style=\"color: #333333;\">eBGP Administrative Distance: 20<\/span><\/li><li><span style=\"color: #333333;\">Transport: Port 179<\/span><\/li><li><span style=\"color: #333333;\">Authentication: MD5<\/span><\/li><\/ol><div>\u00a0<\/div><div>\u00a0<\/div><div><span style=\"color: #333333;\">Packet Types<\/span><\/div><ol><li><span style=\"color: #333333;\">Open (BGP Version, Local AS Number, BGP Router ID)<\/span><\/li><li><span style=\"color: #333333;\">Keepalive (Every 60 Seconds)<\/span><\/li><li><span style=\"color: #333333;\">Update (Exchange Routes)<\/span><\/li><li><span style=\"color: #333333;\">Notification (Fatal Errors)<\/span><\/li><\/ol><div>\u00a0<\/div><div>\u00a0<\/div><div><span style=\"color: #333333;\">BGP Table Types<\/span><\/div><ol><li><span style=\"color: #333333;\">BGP Neighbor Table<\/span><\/li><li><span style=\"color: #333333;\">BGP Table (also known as BGP topology table)<\/span><\/li><li><span style=\"color: #333333;\">BGP Routing Table\u00a0<\/span><\/li><\/ol><div>\u00a0<\/div><div>\u00a0<\/div><div><span style=\"color: #333333;\">BGP Session Establishment between peers<\/span><\/div><ol><li><span style=\"color: #333333;\">TCP \u2013 Syn \u2013 Syn-Ack -Ack (3-way handshake)<\/span><\/li><li><span style=\"color: #333333;\">Open &#8211; Open<\/span><\/li><li><span style=\"color: #333333;\">Keepalive &#8211; Keepalive<\/span><\/li><li><span style=\"color: #333333;\">Update &#8211; Update<\/span><\/li><\/ol><div>\u00a0<\/div><div><span style=\"color: #333333;\">FSM &#8211; Finite State Machine<\/span><\/div><ol><li><span style=\"color: #333333;\">Idle &#8211; The opening BGP state.<\/span><\/li><li><span style=\"color: #333333;\">Connect &#8211; BGP waits for a TCP connection with the remote peer. If successful, an OPEN message is sent. If failed, the session is placed in an Active state.<\/span><\/li><li><span style=\"color: #333333;\">Active &#8211; BGP tries to begin a TCP connection with the remote peer. If successful, an OPEN message is sent. If unsuccessful, BGP will wait for a Connect-Retry timer to terminate, and place the session back in a Connect State.<\/span><\/li><li><span style=\"color: #333333;\">OpenSent &#8211; BGP has both built the TCP connection and sent an OPEN Message, and is expecting a reply OPEN Message. Once it gets a reply OPEN Message, the BGP peer will send a KEEPALIVE message.<\/span><\/li><li><span style=\"color: #333333;\">OpenConfirm &#8211; BGP hears for a reply KEEPALIVE message.<\/span><\/li><li><span style=\"color: #333333;\">Established &#8211; BGP peer session is completely built. UPDATE messages including routing data will now be sent.<\/span><\/li><\/ol><div>\u00a0<\/div><div>\u00a0<\/div><div><span style=\"color: #333333;\">Path Selection<\/span><\/div><ol><li><span style=\"color: #333333;\">Weight (Highest)<\/span><\/li><li><span style=\"color: #333333;\">Local Preference (Highest)<\/span><\/li><li><span style=\"color: #333333;\">Self-Originated<\/span><\/li><li><span style=\"color: #333333;\">AS Path (Shortest)<\/span><\/li><li><span style=\"color: #333333;\">Origin (IGP over EGP)<\/span><\/li><li><span style=\"color: #333333;\">MED (Lowest)<\/span><\/li><li><span style=\"color: #333333;\">External (eBGP over iBGP)<\/span><\/li><li><span style=\"color: #333333;\">IGP Cost (Lowest)<\/span><\/li><li><span style=\"color: #333333;\">Multiple paths<\/span><\/li><li><span style=\"color: #333333;\">eBGP Peering (Oldest)<\/span><\/li><li><span style=\"color: #333333;\">Router ID (Lowest)<\/span><\/li><li><span style=\"color: #333333;\">Cluster List (Minimum)<\/span><\/li><li><span style=\"color: #333333;\">Neighbor address (Lowest)<\/span><\/li><\/ol><div>\u00a0<\/div><div><span style=\"color: #333333;\">BGP Commands of Cisco, Juniper &amp; Alcatel<\/span><\/div><div>\u00a0<\/div><div><span style=\"color: #333333;\">Cisco BGP Commands<\/span><\/div><ol><li><span style=\"color: #333333;\">show ip bgp<\/span><\/li><li><span style=\"color: #333333;\">show ip bgp neighbors<\/span><\/li><li><span style=\"color: #333333;\">show ip bgp neighbors &lt;address&gt; advertised-routes<\/span><\/li><li><span style=\"color: #333333;\">show ip bgp neighbors &lt;address&gt; received-routes<\/span><\/li><li><span style=\"color: #333333;\">show ip bgp community<\/span><\/li><li><span style=\"color: #333333;\">show ip bgp dampened paths<\/span><\/li><li><span style=\"color: #333333;\">show ip bgp peer-group<\/span><\/li><li><span style=\"color: #333333;\">show ip bgp regexp<\/span><\/li><li><span style=\"color: #333333;\">clear ip bgp<\/span><\/li><li><span style=\"color: #333333;\">clear ip bgp dampening<\/span><\/li><li><span style=\"color: #333333;\">show ip bgp summary<\/span><\/li><\/ol><div>\u00a0<\/div><div><span style=\"color: #333333;\">Juniper BGP Commands<\/span><\/div><div>\u00a0<\/div><ol><li><span style=\"color: #333333;\">show route protocol bgp<\/span><\/li><li><span style=\"color: #333333;\">show route community<\/span><\/li><li><span style=\"color: #333333;\">show route damping decayed<\/span><\/li><li><span style=\"color: #333333;\">show bgp neighbor<\/span><\/li><li><span style=\"color: #333333;\">show route advertising-protocol bgp &lt;address&gt;<\/span><\/li><li><span style=\"color: #333333;\">show route receive-protocol bgp &lt;address&gt;<\/span><\/li><li><span style=\"color: #333333;\">show bgp group<\/span><\/li><li><span style=\"color: #333333;\">show route aspath-regex<\/span><\/li><li><span style=\"color: #333333;\">clear bgp neighbor<\/span><\/li><li><span style=\"color: #333333;\">clear bgp damping<\/span><\/li><li><span style=\"color: #333333;\">show bgp summary<\/span><\/li><\/ol><div>\u00a0<\/div><div>\u00a0<\/div><div><span style=\"color: #333333;\">Alcatel BGP Commands<\/span><\/div><div>\u00a0<\/div><ol><li><span style=\"color: #333333;\">show router route-table protocol bgp<\/span><\/li><li><span style=\"color: #333333;\">show router bgp routes community<\/span><\/li><li><span style=\"color: #333333;\">show router bgp damping<\/span><\/li><li><span style=\"color: #333333;\">show router bgp neighbor<\/span><\/li><li><span style=\"color: #333333;\">show router bgp neighbor (x.x.x.x) advertised-routes<\/span><\/li><li><span style=\"color: #333333;\">show router bgp neighbor (x.x.x.x) received-routes<\/span><\/li><li><span style=\"color: #333333;\">show router bgp group<\/span><\/li><li><span style=\"color: #333333;\">show router bgp routes (family) aspath-regex<\/span><\/li><li><span style=\"color: #333333;\">clear router bgp neighbor<\/span><\/li><li><span style=\"color: #333333;\">clear router bgp damping<\/span><\/li><li><span style=\"color: #333333;\">show router bgp summary<\/span><\/li><\/ol><div>\u00a0<\/div><div>\u00a0<\/div><div><span style=\"color: #333333;\">Other important BGP topics<\/span><\/div><div>\u00a0<\/div><ol><li><span style=\"color: #333333;\">BGP Split horizon<\/span><\/li><li><span style=\"color: #333333;\">BGP Synchronization<\/span><\/li><li><span style=\"color: #333333;\">BGP Route-Reflectors, Confederations<\/span><\/li><li><span style=\"color: #333333;\">BGP Communities<\/span><\/li><li><span style=\"color: #333333;\">BGP Summarization<\/span><\/li><li><span style=\"color: #333333;\">BGP Route Dampening<\/span><\/li><li><span style=\"color: #333333;\">BGP Backdoor<\/span><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Quick BGP notes, for network professionals seeking insights into key attributes, the path vector protocol, and routing decisions. Border Gateway Protocol (BGP)\u00a0Basic<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[1,49],"tags":[],"class_list":["post-1138","post","type-post","status-publish","format-standard","hentry","category-blog","category-network-engineering"],"_links":{"self":[{"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/posts\/1138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bytereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1138"}],"version-history":[{"count":43,"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/posts\/1138\/revisions"}],"predecessor-version":[{"id":1804,"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/posts\/1138\/revisions\/1804"}],"wp:attachment":[{"href":"https:\/\/bytereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bytereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bytereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}