首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
欢迎光临中国IT实验室思科频道
Google
您现在的位置: 中国IT实验室 >> Cisco >> 路由技术 >> 路由配置 >> 正文

详细解析配置BGP负载共享

  1.     BGP邻居之间使用Loopback地址进行负载共享

  该场景展示如何在多条(最大可有6条)等价链路上完成负载共享。该链路建立在本地AS中一台路由器和远程AS中另一台路由器之间是一个单宿主末端网络 BGP环境。

  top如下:

  配置如下:

RouterA

RA(config)#int s1/1
RA(config-if)#ip add 150.10.10.1 255.255.255.0
RA(config-if)#no sh
RA(config-if)#int s1/2
RA(config-if)#ip add 160.20.20.1 255.255.255.0
RA(config-if)#no sh
RA(config-if)#int lo0
RA(config-if)#ip add 1.1.1.1 255.255.255.0
RA(config)#router bgp 11
RA(config-router)#nei 2.2.2.2 remote-as 10
RA(config-router)#nei 2.2.2.2 update-source lo0
RA(config-router)#nei 2.2.2.2 ebgp-multihop
RA(config-router)#router eigrp 12
RA(config-router)#net 1.0.0.0
RA(config-router)#net 150.10.0.0
RA(config-router)#net 160.20.0.0
RA(config-router)#no auto-summary

RouterB

RB(config)#int lo0
RB(config-if)#ip add 2.2.2.2 255.255.255.0
RB(config-if)#int s1/1
RB(config-if)#no ip route-cache
RB(config-if)#ip add 160.20.20.2 255.255.255.0
RB(config-if)#no sh
RB(config-if)#int s1/2
RB(config-if)#no ip route-cache
RB(config-if)#ip add 150.10.10.2 255.255.255.0
RB(config-if)#no sh
RB(config-if)#router bgp 10
RB(config-router)#nei 1.1.1.1 remote-as 11
RB(config-router)#nei 1.1.1.1 update-source lo0
RB(config-router)#nei 1.1.1.1 ebgp-multihop
RB(config-router)#router eigrp 12
RB(config-router)#net 2.0.0.0
RB(config-router)#net 150.10.0.0
RB(config-router)#net 160.20.0.0
RB(config-router)#no auto-summary

  验证基于数据包(过程交换)的负载均衡:

RA#sh ip ro
Gateway of last resort is not set
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     2.0.0.0/24 is subnetted, 1 subnets
D       2.2.2.0 [90/2297856] via 150.10.10.2, 00:18:47, Serial1/1
                [90/2297856] via 160.20.20.2, 00:18:47, Serial1/2
     160.20.0.0/24 is subnetted, 1 subnets
C       160.20.20.0 is directly connected, Serial1/2
     150.10.0.0/24 is subnetted, 1 subnets
C       150.10.10.0 is directly connected, Serial1/1
RA#traceroute 2.2.2.2
Type escape sequence to abort.
Tracing the route to 2.2.2.2
  1 150.10.10.2 36 msec
160.20.20.2 60 msec *

 

  论坛讨论帖:http://bbs.chinaitlab.com/thread-248214-1-1.html

[1] [2] [3] [4] 下一页

【责编:Kittoy】
中国IT教育
相关产品和培训
文章评论
 友情推荐精华
 专题推荐

 ·节省成本才是“王道” VOIP案例应用…
 ·巧用网络流量 打造健康内网…
 ·无线路由器设置从入门到精通
 ·企业网管如何部署你的网络监控系统?
 ·负载均衡技术方案攻略
 ·中国IT实验室2007年技术热点盘点
 ·利用路由实现VPN的配置方法
 ·让你的局域网网速更上一层楼
 ·小命令大作用---Ping
 ·OSPF路由协议专题
 今日更新
 认证培训
 频道精选
 思科频道导航