• 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

  • 相关阅读:
    java 请求响应乱码
    基于eclipse的mybatis映射代码自动生成的插件http://blog.csdn.net/fu9958/article/details/7521681
    基于eclipse的mybatis映射代码自动生成的插件
    使用Mybatis Generator自动生成Mybatis相关代码
    MyBatis使用Generator自动生成代码
    selector是在文件夹drawable中进行定义的xml文件。
    新浪微博布局学习——妙用TabHost
    分布的拟合和检验
    python学习之--SyntaxError: Non-ASCII character 'xe5'
    两天学会DirectX 3D之入门
  • 原文地址:https://www.cnblogs.com/zhnhelloworld/p/5646994.html
Copyright © 2020-2023  润新知