a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 172|回复: 2

[CCIE] CCIE复习指导:配置BGP案例二

[复制链接]
发表于 2012-8-3 20:12:39 | 显示全部楼层 |阅读模式
Case 27 c1 c% k6 U1 ?7 A, Y& o0 H
使用回环接口建立BGP邻居关系并进行负载均衡的实例:$ h9 T% @8 C& p+ k# ~$ g6 L$ l' {
路由器A配置如下:
, S. ?" v9 w$ ~$ {  x6 |( R6 h/ c!2 i% M. z" @& a. V! a/ N
interface Loopback0/ t2 \4 X( L9 f  F
ip address 150.10.1.1 255.255.255.255
0 X; w& ^4 B, m# ]3 z" F!
9 ^2 z% _: _$ }. [, \( x) [router bgp 100: W5 E6 |4 ~7 e
neighbor 160.10.1.1 remote-as 200
  E  j7 u( P: xneighbor 160.10.1.1 ebgp-multihop/ p6 ~- H/ Y" o& o* L
neighbor 160.10.1.1 update-source Loopback0
) _% E5 u( `6 M$ s8 A, w8 e' }! Wnetwork 150.10.0.0
, M$ v7 n2 P/ S) F!
8 q; Y5 e& u! s" J1 ^ip route 160.10.1.1 255.255.255.255 1.1.1.2& [6 J  l% l. V# \/ M  R
ip route 160.10.1.1 255.255.255.255 2.2.2.2" I5 [, g' H) _1 \! A0 ^
!5 I- O7 ~8 l9 b0 u* r- s, p2 H
路由器B配置如下:
) i1 ?9 |# Q) Q' {5 O& M!
0 Y3 l3 y& T% [" Y1 ~( L% Grouter bgp 200
4 h$ e4 J& [  X. T% W- Yneighbor 150.10.1.1 remote-as 100
5 i; [; I. e8 Ineighbor 150.10.1.1 ebgp-multihop
! ~( c- I( H7 X. Yneighbor 150.10.1.1 update-source Loopback01 M+ ]8 m/ A; ^  ?) W+ B- |
network 160.10.0.0
. m% X/ @1 T. ?2 _8 F
( ~+ A3 C% D" B  t3 T& u9 d!
回复

使用道具 举报

 楼主| 发表于 2012-8-3 20:12:40 | 显示全部楼层

CCIE复习指导:配置BGP案例二

</p>ip route 150.10.1.1 255.255.255.255 1.1.1.1
! K) `' F9 k4 G1 \  \0 R/ X0 x$ \ip route 150.10.1.1 255.255.255.255 2.2.2.1
! N/ c% S( A2 E$ D!6 c5 r" D& p3 w
在使用回环接口建立BGP邻居关系并进行负载均衡的时候,要注意:
& N, h$ }+ {+ S9 G1 I0 N3 d1.使用回环接口建立邻居关系,对于EBGP,要指定多跳关系.
4 \4 r1 }4 N5 {, g( l& ^3 f( \2.要确保本地BGP路由器的IGP路由表中有到达邻居回环接口的路由.
4 K# @! M+ Q, a; g: P  h3.为了防止路由环路,如果到达多跳对等体的路由是默认路由(0.0.0.0/0),邻居关系是不会建立的.Performance Tuning- n8 d  A# A6 C2 k& X2 `
[NextPage]6 S" h# X4 B( K5 G  r9 a' ]' Q- l
一些性能调试的命令:1 T# u. R/ X7 q* o% m7 [' {
1.重启BGP进程:! N+ A3 \- G, I7 R/ C
Aiko#clear ip bgp {*|ip-address} [soft {out|in}]4 a& p. M  U1 o# E
2.启用BGP对等体的MD5加密认证:
  O) R. [0 q) L; `4 XAiko(config-router)#neighbor {ip-address} password {password}2 p& r# H' J1 \! c
3.设置邻居的描述信息:
& W/ f3 `9 L  v8 J3 j' sAiko(config-router)#neighbor {ip-address} description {string}6 W7 i- b& h3 z3 L9 ~: }' ?9 u
4.暂时关闭和某个BGP邻居的通信:
9 o+ ?& G* q5 |; ^' l* f: U* dAiko(config-router)#neighbor {ip-address} shutdown
/ q% k9 f) Z7 i" a5.手动指定BGP的RID,可以指定一个不存在的IP地址为RID:' @$ q/ P& K( s# K: M8 N/ X
Aiko(config-router)#bgp router-id {ip-address}
3 W6 c1 v, x6 Z0 y6.移除出站的BGP路由更新中的私有AS号.私有AS号的范围是64512到65535.该命令只对EBGP有效:) T# V/ s- L( H. Y8 v
Aiko(config-router)#neighbor {ip-address} remove-private-as  P2 G9 W$ Z( E4 C( N
7.当接口振荡的时候,立即断开BGP邻接关系,该特性默认是起用的:
: k! F7 `; }* X3 `' hAiko(config-router)#bgp fast-external-fallover' Q* r, G# W8 U# Q
8.设置从邻居那里接收到的网络前缀的最大数目.当达到能够接收的最大网络前缀数目的75%时,本地BGP路由器将产生警告信息;当达到能够接收的最大前缀数目时,邻接关系将被切断:  S% _2 V5 ~& n( M
Aiko(config-router)#neighbor   {ip-address}  maximum-prefix   {number}  [threshold][warning-only]1 A8 g  {4 X. e4 u
9.让BGP社团属性以AA:NN的形式显示:4 Y% c. g, [% u: _3 y" d
Aiko(config)#ip bgp-community new-format4 B5 f$ {9 ~; [
10.定义BGP负载均衡的最大路径数目,默认为一条:7 f' x0 H6 i* ^1 D) F8 u, ?' w  P
Aiko(config-router)#maximum-paths {number}
3 `- _2 y# }7 }5 i1 m11.配置BGP的路由惩罚,默认4个参数的值分别为15分钟,750,2000,和60分钟:+ P& O0 t# k# T% X$ K( V
Aiko(config-router)#bgp dampening [half-life reuse suppress max] [route-map map-name]12.在选路决策中启用RID的比较:! u4 ?6 ^9 S2 n, _! U/ j  A+ Q( C
Aiko(config-router)#bgp bestpath compare-routerid7 i5 l8 D6 a6 ]" i

9 H& A& {' \- V( W& gAdjusting BGP Timers
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-3 20:12:41 | 显示全部楼层

CCIE复习指导:配置BGP案例二

</p>一些BGP计时器微调的命令:0 V# P7 e+ U0 _' a( W7 @$ o
1.全局微调BGP的计时器.默认keepalive发送的时间间隔为60秒,hold time为180秒.如果双方的BGP计时器的值不同,值小的计时器将生效:: W6 ^. M5 R7 P( @9 A! \
Aiko(config-router)#timers bgp {keepalive holdtime}3 t% ~, y. S1 |6 |8 @, F4 F- j( \
2.基于邻居的微调计时器,该命令将超越全局计时器的微调:; q7 x2 y9 k; b6 A$ b
Aiko(config-router)#neighbor {ip-address} timers {keepalive holdtime}0 I3 e7 D4 o9 S9 _6 M9 t  Q
3.调整BGP路由更新发送的最小间隔时间.默认情况下,对于IBGP对等体是5秒;对于EBGP对等体是30秒:
8 N) p& N3 u2 z" n2 E8 u2 [Aiko(config-router)#neighbor {ip-address} advertisement-interval {seconds}
& j5 a& c7 }* g6 C. k5 |; i6 LAdministrative Distance in BGP' u7 U$ S- ]9 v" h& `) P" x
[NextPage]$ ?! _/ ^+ ^0 t7 ]% K- `: D
修改BGP的管理距离的一些方法:% {7 E- X4 K& |- x+ y- f* d
1.全局修改BGP路由的管理距离:" k, w. h/ e2 H( r/ a; M
Aiko(config-router)#distance bgp {external internal local}
4 T0 \" X+ u4 {  z2.修改从特定邻居学来的所有BGP路由的管理距离.其中IP地址只能为特定邻居的RID,或者是0.0.0.0:Aiko(config-router)#distance {distance} {ip-address} {wildcard-mask}9 E" ], `- x, N4 G' ]
3.修改从特定邻居学来的特定BGP路由的管理距离.其中IP地址只能为特定邻居的RID,或者是0.0.0.0:Aiko(config-router)#distance {distance} {ip-address} {wildcard-mask} {ACL}
2 p- r& ~( ~$ j' J4.配置BGP的后门(backdoor)路由:
" E9 A) I; C+ N5 _+ K2 BAiko(config-router)#network {ip-address} backdoor2 V' n# @7 ~7 D: v; g
Route Summarization in BGP! c; [) d/ _- o9 h  z# X4 v
当路由更新经过主类网络边界的时候,它会自动向主类网络号进行汇总.路由自动汇总特性是BGP默认的操作.BGP可以关闭该特性,而且可以进行手动的路由汇总:3 Y  O; o) R+ |8 R/ I6 Z2 a
1.关闭BGP路由的自动汇总特性:
0 g* W7 A% ^$ c  p% }Aiko(config-router)#no auto-summary9 l9 o, P$ J4 u2 r$ K
2.BGP手动的路由汇总.当使用了关键字summary-only或suppress map之后,本地BG的细致路由全部被抑制,并且在BGP表中以s进行标记:
: m0 ^8 k9 a) a8 v. V0 p  R4 R* k8 dAiko(config-router)#aggregate-address {ip-address} {mask} [suppress-map map-name][summary-only] [attribute-map map-name] [route-map map-name]
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-22 15:41 , Processed in 0.812892 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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