zoukankan      html  css  js  c++  java
  • Introduction to BGP (3)

    1. BGP first forms a neighbor relationship with peers. BGP then learns information from its neighbors , placing that information in a table--- the BGP table. Finally, BGP analyzes the BGP table to choose the best working route for each prefix in the BGP table , placing those routes into the IP touting table.

    2. At a minimum , a router participating in BGP must configure the following settings:

      The routers's own ASN (router bgp asn global command)

      The IP address of each neighbor and that neighbor's ASN (neighbor ip-address remote-as remote-asn BGP subcommand)

    3. Routers must meet several requirements to become BGP neighbors:

      A local router's ASN nust match the neighboring router's reference to that ASN with its neighbor remote-as asn command.

      The BGP router IDs of the two routers must not be the same.

      If configured , authentication must pass.

      Each router must be part of a TCP connection with the other router, with the remote router's IP address used in that TCP connection matching what the local router configures in a BGP neighbor remote-as command.

    4. BGP on a router choose its RID using following steps , in order:

      Configured : bgp router-id rid router subcommand.

      Highest loopback

      Highest other interface

    5. BGP neighbors first form a TCP connection . Later , BGP messages flow over that connection , which allows BGP routers to know when the messages arrived at the neighbor and when they did not.

    6. eBGP multihop

      By default, when building pachets to send to an eBGP peer , Cisco IOS sets the IP TTL field in the IP header to a value of 1, With this default action , the eBGP neighborship fails to complete when using loopback interface IP address. The reason is that when the packet with TTL=1 arrives at the neighbor, the neighbor decrement the TTL value to 0 and discards the packet.

      The internal Cisco IOS packet-forwarding logic decrements the TTL before giving the packet to the loopback interface, meaning that the normal IP forwarding logic discards the packet.

      Configuring the routers with the neighbor ebgp-multihop 2

    7. BGP Neighbor States

      Idle  Connect  Active  Opensent  Openconfirm  Established

    8. Verifying eBGP Neighbor Status

      show ip bgp summary

      show ip bgp neighbors

    9. BGP Message Types

      Open

      Keepalive

      Update

      Notification

    10 Neighbor Wireshark Capture

  • 相关阅读:
    教你如何把切割好的html页面转换成可供DIY的页面
    [二次开发][Discuz!X] Discuz!二次开发基本知识
    discuz之C::t 方法
    header_userstatus.htm文件注释
    【discuzx2】header.htm模板文件深入分析
    discuz的页头header和页尾footer文件必要代码
    discuz全局数组变量 后台各项设置 完整版
    交换机到底有没有MAC地址?
    妙味课堂—JavaScript基础课程笔记
    jquery 绘图工具 flot 学习笔记
  • 原文地址:https://www.cnblogs.com/zhnhelloworld/p/5646994.html
Copyright © 2011-2022 走看看