a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 116|回复: 1

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

[复制链接]
发表于 2012-8-3 20:12:39 | 显示全部楼层 |阅读模式
Case 116 v# U0 Q& s  D' C. k; ~7 I. c
设置社团属性的实例:' e- Y8 Y- I; f0 q5 K# S. f
路由器B配置如下:' H$ [' G# Q1 ?: S
!5 ~) c+ c* [- s3 Z. D
router bgp 200
# [2 S* M# ~5 D$ d8 unetwork 160.10.0.0
* E% w* e) k, b1 u2 ineighbor 3.3.3.1 remote-as 300
8 x1 J* G4 I* |! q/ Wneighbor 3.3.3.1 send-community8 B6 F4 I, L; M1 E, W2 I
neighbor 3.3.3.1 route-map Aiko out
$ t" }7 n3 W6 F" V!
" E) a  ]7 [5 _route-map Aiko permit 10
8 i3 V) L) N. m1 E/ O- x4 Nmatch ip address 1
) f% |/ s  ~* Q+ \" R- C7 u8 yset community no-advertise0 k0 K5 r1 C6 }6 V+ e
!; ?2 K; d4 A5 J% P# I/ M
route-map Aiko permit 203 u2 K& D% L9 N; t1 n0 n
match ip address 2
3 f, ~/ e& A- S; ^0 Zset community 100
# @7 J- G2 y0 @" F' L5 x* ^!2 |6 R8 F- r' a5 s) x4 E' d
route-map Aiko permit 20* f% v, j% J$ w
!0 f  D. j! o/ _
access-list 1 permit 160.10.0.0 255.255.0.07 t& h9 ]- [6 b3 t9 h
access-list 2 permit 0.0.0.0 255.255.255.2558 x, l% R. X$ E6 j, ^3 d
!  Z' ^7 C2 j; @9 J, h8 z
路由器C配置如下:( {) z/ _& ]- m: b' X' u7 M8 h
!7 `0 \, H2 K) o
router bgp 300
- W/ W$ c# C" E' i# Pneighbor 3.3.3.3 remote-as 200
* X0 C' }% r( Xneighbor 3.3.3.3 route-map Aiko in
  N0 G* s, c$ x7 |- P; Z, i: A; `, L/ F  y& ~% \
!
回复

使用道具 举报

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

CCIE复习指导:配置BGP案例十一

</p>route-map Aiko permit 10
- I- i. a) Y7 b4 U/ U, ~% ^* n. [match community 1 exact-match: O& T2 G. b) c8 F# s+ Q' d
set metric 100
5 A; h4 `: q5 P- G!
* d2 s  N: _" c" x# w! }route-map Aiko permit 20
6 [/ |% n  G% t# C$ @. y, ~match community 2
. u3 h4 {/ [4 A0 M  {' I!3 W0 f: H$ x- w
ip community-list 1 permit 100' s& l: i, f1 _: ?3 w" J
ip community-list 2 permit internet
  _1 n, ~2 P1 p6 q!
/ X0 d# o% b# h5 |3 N( lConditional Advertising! F  _* E3 a/ y; b2 j
一些有选择性的宣告BGP路由的方法:
" ^- u. O4 w  i6 I9 Z) M: d1.当主路由(primary map)状态出故障之后,才宣告辅助路由(secondary map):& C$ y; |- f' v5 p' Z% n
Aiko(config-router)#neighbor {ip-address} advertise-map {secondary-map} non-exist-map{primary-map}' |2 |0 U! h9 m1 [- A
2.选择性的宣告之前通过汇总命令抑制的路由:
) z, Z* C  g1 J# M8 y, ?3 tAiko(config-router)#neighbor {ip-address} unsuppress-map {map-name}
9 e+ F5 c; E0 wMonitoring and Maintaining BGP Filtering9 \' c5 s, H8 C
一些辅助性的调试命令:2 X* \2 ^6 b( x, f( n
1.显示BGP表信息:
" C% Q" U# d; s  o% `% \' iAiko#show ip bgp
- L4 I+ m, N4 f1 o2.显示BGP邻居信息:+ B% l. @6 K/ ~, }
Aiko#show ip bgp neighbors [ip-address]
% H1 H  l1 U: j3.显示被惩罚的BGP路由信息:( E  O% l2 g# i
Aiko#show ip bgp dampened-paths
& T  g2 c' {- k* S! ]4 g, i) E4.显示所有的BGP连接信息:6 u% I/ o0 B$ c2 a3 g
Aiko#show ip bgp summary! S1 E& `6 G9 Y9 ~2 r
5.清除BGP的路由惩罚:1 h' C/ ~. G/ n
Aiko#clear ip bgp dampening [ip-address mask]9 I3 G& O, y4 G" S/ q; }5 ?) H
6.显示属于特定BGP社团的路由:+ m7 w3 |+ m" b0 ]+ P" R0 U
Aiko#show ip bgp community {number} [exact]
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-22 12:31 , Processed in 0.199414 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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