设为首页收藏本站language 语言切换
查看: 1920|回复: 4
收起左侧

BGP学习精华

[复制链接]
发表于 2010-8-24 23:34:36 | 显示全部楼层 |阅读模式
 EBGP and IBGP
    1.png Enabling BGP routing
  The command used to enable BGP on a router is:
  router bgp autonomous-system
  RTA#
  router bgp 100
  RTB#
  router bgp 200
  The above statements indicate that RTA is running BGP and it belongs to
  AS100 and RTB is running BGP and it belongs to AS200 and so on.
  BGP Neighbors/Peers
  The neighbor command used to establish a TCP connection is:
  neighbor ip-address remote-as number
  The remote-as number is the AS number of the router we are trying to
  connect to via BGP.
  The ip-address is the next hop directly connected address for EBGP1 and
  any IP address2 on the other router for IBGP.
  clear ip bgp address (where address is the neighbor address)
  clear ip bgp * (clear all neighbor connections)
  
  By default, BGP sessions begin using BGP Version 4 and negotiating
  downward to earlier versions if necessary. To prevent negotiations and
  force the BGP version used to communicate with a neighbor, perform the
  following task in router configuration mode:
  neighbor { ip address| peer-group-name} version value
  An example of the neighbor command configuration follows:
    2.png
  RTA#
  router bgp 100
  neighbor 129.213.1.1 remote-as 200
  RTB#
  router bgp 200
  neighbor 129.213.1.2 remote-as 100
  neighbor 175.220.1.2 remote-as 200
  RTC#
  router bgp 200
  neighbor 175.220.212.1 remote-as 200
  BGP and Loopback interfaces
  Using a loopback interface to define neighbors is commonly used with IBGP
  rather than EBGP. Normally the loopback interface is used to make sure
  that the IP address of the neighbor stays up and is independent of an
  interface that might be flaky. In the case of EBGP, most of the time the
  peer routers are directly connected and loopback does not apply.
  If the IP address of a loopback interface is used in the neighbor command,
  some extra configuration needs to be done on the neighbor router.
  The neighbor router needs to tell BGP that it is using a loopback
  interface rather than a physical interface to initiate the BGP neighbor
  TCP connection. The command used to indicate a loopback interface is:
  neighbor ip-address update-source interface
  The following example should illustrate the use of this command.
    3.png
  RTA#
  router bgp 100
  neighbor 190.225.11.1 remote-as 100
  neighbor 190.225.11.1 update-source loopback 1
  RTB#
  router bgp 100
  neighbor 150.212.1.1 remote-as 100
   4.png
  RTA#
  router bgp 100
  neighbor 180.225.11.1 remote-as 300
  neighbor 180.225.11.1 ebgp-multihop
  RTB#
  router bgp 300
  neighbor 129.213.1.2 remote-as 100
  
  //关于BGP and loopback interfaces中的配置实例中:
  RTA#
  router bgp 100
  neighbor 190.225.11.1 remote-as 100
  neighbor 190.225.11.1 update-source int loopback 1
  应是:
  neighbor 190.225.11.1 update-source loopback 1
发表于 2013-1-23 10:53:13 | 显示全部楼层
楼主顶
沙发 2013-1-23 10:53:13 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-1-23 11:50:51 | 显示全部楼层
板凳 2013-1-23 11:50:51 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-1-24 20:36:41 | 显示全部楼层
看帖子的要发表下看法
地板 2013-1-24 20:36:41 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-1-27 01:55:18 | 显示全部楼层
看帖子的要发表下看法
5# 2013-1-27 01:55:18 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-3 18:59 , Processed in 0.064007 second(s), 13 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表