a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 192|回复: 3

[CCNP] 详解BSCI实验四:配置BGP

[复制链接]
发表于 2012-8-3 20:20:19 | 显示全部楼层 |阅读模式
650) this.width=650;" border=0>
# s4 l( k; d* s) C4 X/ U
2 b  x3 [+ W( S# W. l5 \步骤一:配置三台路由器接口使其连通。
$ h; e; d8 z. @) g1 I. A3 p- ] 6 J, L6 q6 X& [% L
R1的配置
. [3 M. C  M8 v5 m: xR1(config)# interface Loopback0% Q/ l/ b/ C0 Q% o; j; d7 k! N, j
R1(config-if)# ip address 1.1.1.1 255.255.255.0
' Z# s& ^( O% \! S" x' SR1(config)# interface Loopback1! t5 n! i; E# r* s, ?# W
R1(config-if)# ip address 2.2.2.2 255.255.255.0
8 G6 N4 I9 ]2 X' J% a: x0 m9 iR1(config)# interface s0
% a7 D; P6 `8 ?5 ^' L) _& dR1(config-if)# ip address 10.1.1.1 255.255.255.0
; N. D( z8 @* [R1(config-if)#no shutdown
1 i. z* p6 T1 @/ k3 s; |: D; c& N& m/ hR1(config-if)#clock rate 64000
* \9 `- K4 d+ _* T' Y/ x ; r# `& A) S$ A& Q# V- D
R2的配置* ?, G3 O, v1 u7 a# B
R2(config)#interface Loopback0
/ W$ B% y8 O3 t8 o0 D) p3 G  LR2(config-if)# ip address 3.3.3.3 255.255.255.0( A4 \/ J$ t* q' V5 f
R2(config)#interface Loopback1/ m6 ^8 {) y7 @2 |3 G
R2(config-if)# ip address 4.4.4.4 255.255.255.0
, i, t6 L5 h3 ?( tR2(config)#interface Serial0
9 b2 I6 h/ S, W) h! j8 W( BR2(config-if)# ip address 20.1.1.1 255.255.255.0
( W* t' W3 j3 Y; ^R2(config-if)#no shutdown# y8 o; f" q' A% M
R2(config)#interface Serial1
" t4 L7 o, Q, A0 B2 I2 UR2(config-if)# ip address 10.1.1.2 255.255.255.0
3 h3 h) G7 f3 H4 [! K3 k) FR2(config-if)#no shutdown
3 h, a# z: p. }2 ~7 k  v& t; X) }; k
8 p4 ?: L6 l; K! y4 y- UR3的配置
" x. I# R. Q( B+ N% T( R1 IR3(config)#interface Loopback0& _0 }- e6 f8 n' A: w
R3(config-if)# ip address 5.5.5.5 255.255.255.0  X9 i' ~5 x8 e
R3(config)#interface Loopback1* B& l" X6 k, n- }
R3(config-if)# ip address 6.6.6.6 255.255.255.0
) y% X# m! [% D$ @: LR3(config)#interface Serial1
- v+ Q* `+ r% |R3(config-if)# ip address 20.1.1.2 255.255.255.0+ A+ d0 t# [2 e) G1 P
R3(config-if)#clockrate 640006 |  g0 y; u* F8 q! v7 G- C
R3(config-if)#no shutdown
+ _8 ]4 b& k, o6 `! n. w 0 y1 \6 N# g9 L6 g5 f. F# ?- ^

/ ?, o9 Y. x; I! Q% C0 R, l- U% M& C步骤二:启用
/ u7 D! _+ l* T. U
9 X+ c( E0 r3 C* u' c2 ?R1的配置
! L) v; d) J6 b2 \! V( j) i1 X2 tR1(config)#router eigrp 100 à启用eigrp100
* m- l2 j7 g' l# M! ]  p; f% z1 A2 lR1(config-router)#network 1.1.1.0 0.0.0.255 à发布相应接口
! r. W) `, E' |9 F: M0 vR1(config-router)#network 10.1.1.0 0.0.0.255
' X2 k1 l* h" F3 _R1(config-router)# no auto-summary à关闭自动汇总
+ m( e1 o" t; u9 e* a4 Q0 g+ }
5 y9 n5 J# G: W) F! qR1(config)#router bgp 65001 à启用BGP650013 I6 r# T( N- g0 t+ b# k
R1(config-router)#no synchronization  à关闭与IGP的同步1 U# M8 O! y* ^. |, z0 D
R1(config-router)# network 2.2.2.0 mask 255.255.255.0 à发布参与BGP网段
: }! w. o9 a, S. D* A4 `R1(config-router)# network 10.1.1.0 mask 255.255.255.0: e. x, a) O* ^7 v6 Q% @& t
R1(config-router)# neighbor 3.3.3.3 remote-as 65001  à指定邻居/ A4 O) k2 [- Z, \0 C; A
R1(config-router)# neighbor 3.3.3.3 update-source Loopback0 à更新源改为loop0接口! W) l+ }4 J3 s$ O9 I- J
R1(config-router)#no auto-summary  à关闭自动汇总
% T9 \# `0 F8 u/ f 2 ^2 p& W: g. }( o% T
R2的配置
( a" f. M* S7 W; e+ w" o! fR2(config)#router eigrp 100# F4 }6 _: w7 p5 H9 @9 r
R2(config-router)# network 3.3.3.0 0.0.0.255
+ a# l" _4 b/ `; n7 n& X0 DR2(config-router)# network 10.1.1.0 0.0.0.2550 C" I7 f7 ^1 u; J
R2(config-router)# no auto-summary
7 }6 z1 U# }! C5 x 1 ^4 C2 O7 o! K
R2(config)#router bgp 65001+ U/ D6 G$ o/ \) c% L) j
R2(config-router)# no synchronization1 E& F1 Y6 M! c7 j8 T$ n
R2(config-router)# network 4.4.4.0 mask 255.255.255.0
" B  W9 g1 [. Y9 E- s: s6 s  K8 `R2(config-router)# network 10.1.1.0 mask 255.255.255.0
: d* L9 Z! l5 H+ b0 v; ?6 ~) _; sR2(config-router)# neighbor 1.1.1.1 remote-as 65001
1 R- T$ C: ]& C9 B3 i: w. ]R2(config-router)# neighbor 1.1.1.1 update-source Loopback0: Z8 O$ E; u" Y; y/ r, _
R2(config-router)# neighbor 1.1.1.1 next-hop-self  à将自己指定为邻居的下一跳
) u# I* p- b, g+ gR2(config-router)# neighbor 5.5.5.5 remote-as 65002  à指定ebgp邻居
$ C2 n3 o& l8 W+ B8 s  G( p: SR2(config-router)# neighbor 5.5.5.5 ebgp-multihop 255  à设定多跳,默认为1
1 ]0 K& m8 z9 _R2(config-router)# neighbor 5.5.5.5 update-source Loopback0# l# u9 V4 Q- d# t8 R" n. M
R2(config-router)# no auto-summary  6 B4 v2 _4 v3 B5 h6 `9 i4 P

1 P4 I8 Q; u4 N, v. ?) U: bR3的配置* V4 G) m8 L" j2 r" p1 d
R3(config)#router bgp 65002
6 B; J# |  W2 n1 N* xR3(config-router)#network 6.6.6.0 mask 255.255.255.0$ B. D: V- K4 h
R3(config-router)# neighbor 3.3.3.3 remote-as 650019 F0 J/ `: h) m# |1 T. Z( b" N5 p+ [' a
R3(config-router)# neighbor 3.3.3.3 ebgp-multihop 255# p7 D& G, y# V) s
R3(config-router)# neighbor 3.3.3.3 update-source Loopback0
9 ~& M& c; D# U- i: ^" S' ZR3(config-router)# no auto-summary
回复

使用道具 举报

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

详解BSCI实验四:配置BGP

</p>
$ {* a/ C4 p3 c! T1 b4 h- }步骤三:配置静态路由
5 C; T# O8 N+ O: t
9 O4 b5 R/ o1 V# h0 m. I& yR2(config)# ip route 5.5.5.0 255.255.255.0 20.1.1.2 à因R2和R3运行在不同的AS,所以要指静态路由来达到可达性
/ B1 k7 h0 b! X+ B' pR3(config)# ip route 3.3.3.0 255.255.255.0 20.1.1.1  à同理
3 N2 y2 C+ c. X8 Y" _' @! a& u % T% Q4 s; y( B. H+ Y. ^3 |

+ x  r# U% Q+ c' l& E' C0 q! L8 X步骤四:查看路由表
; ]) w6 _3 a4 T: Q9 S! \
  [. I7 _6 I3 t% [R1#sh ip route
8 s# V7 K! a9 v5 TCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
: w8 E$ b  d% ~& U" \       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area" l" x- h( A9 c4 x
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2( x$ i6 Y7 H3 C+ b
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP" Q- z' u% q# Q/ i7 _6 |
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
, {  i) v# J! r" j& V! ]       * - candidate default, U - per-user static route, o - ODR0 }( U+ {" ^7 s( K  h+ B5 ]% R) X
       P - periodic downloaded static route
4 N  Z% p1 r5 N* U0 A+ x4 H! E
: `" S, v- C, ^6 ^2 nGateway of last resort is not set
7 d' m: g5 _! R6 z
1 |! R& z, u* X8 J) C     1.0.0.0/24 is subnetted, 1 subnets
% |7 _) ?7 a9 L/ j) yC       1.1.1.0 is directly connected, Loopback0
# m+ u; \0 a* V/ N. F     2.0.0.0/24 is subnetted, 1 subnets* U$ p8 y* |, k: @' ?
C       2.2.2.0 is directly connected, Loopback1  v5 n0 u' t7 g2 ^
     3.0.0.0/24 is subnetted, 1 subnets
0 P$ R: w2 }" Y  G" x8 FD       3.3.3.0 [90/2297856] via 10.1.1.2, 00:09:13, Serial09 ]7 h/ H  o! T7 ?3 O
     4.0.0.0/24 is subnetted, 1 subnets
$ ~6 \" E, W) \5 ?+ X) i- _B       4.4.4.0 [200/0] via 3.3.3.3, 00:07:34  à学来了BGP路由条目
4 Q) O% |( F0 B! C; v- v     6.0.0.0/24 is subnetted, 1 subnets8 Q- G2 n5 Q% s, n: i* h
B       6.6.6.0 [200/0] via 3.3.3.3, 00:07:34
" l) {7 C$ c( b8 V4 M     10.0.0.0/24 is subnetted, 1 subnets4 G* t2 x$ {; O4 ~. S% C4 }
C       10.1.1.0 is directly connected, Serial06 }: G5 n, n- ?, r- H& y

4 C! |# b' O. w% hR2#sh ip route
% {2 L% e& q: v- i. L9 wCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
, j9 j& o% z# C) I1 N& H+ v7 |       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
" N7 g4 T# f; z# y" O/ c       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2$ F; V# D7 C0 ^
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
- `# C+ ^$ |% K, D9 {       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
3 B9 r* P9 g, ^) x& l0 W  I. ]; T1 f0 K+ n       * - candidate default, U - per-user static route, o - ODR
: H$ Q& R/ y2 g1 J7 U       P - periodic downloaded static route5 ?+ [1 d2 B& @/ l) z4 j0 x
1 w$ x2 ^! L; p1 M: [6 r
Gateway of last resort is not set
  q7 u- l4 g6 U. W! H; _
$ i% R4 ~* R* |1 E0 @2 w9 f3 I, c     1.0.0.0/24 is subnetted, 1 subnets8 E3 f; g, g7 ?/ Z: `5 F& C
D       1.1.1.0 [90/2297856] via 10.1.1.1, 00:14:09, Serial11 V4 ~: o" a# I. ]6 o& m/ q
     2.0.0.0/24 is subnetted, 1 subnets3 Q0 N, F' t8 V( W8 i
B       2.2.2.0 [200/0] via 1.1.1.1, 00:14:05
  W7 x/ j7 B& X4 S     3.0.0.0/24 is subnetted, 1 subnets
# ?" L' C- A0 F3 r2 S! ~C       3.3.3.0 is directly connected, Loopback0
! z+ b5 Q7 z4 R+ `4 b/ d" c     4.0.0.0/24 is subnetted, 1 subnets
2 r) O! z' j1 L& K" K6 u8 ]C       4.4.4.0 is directly connected, Loopback1' x: \' U& j- T! A5 ~
     20.0.0.0/24 is subnetted, 1 subnets
' t& q7 a& H4 ^" D2 Q" f# }5 A2 oC       20.1.1.0 is directly connected, Serial0
+ h, L( t& G9 R& o$ e: ^     5.0.0.0/24 is subnetted, 1 subnets+ V2 T$ @) v: E% T
S       5.5.5.0 [1/0] via 20.1.1.2, a0 K- L8 D% q6 k* K$ _+ b
     6.0.0.0/24 is subnetted, 1 subnets
8 f7 S' G. Y* T. Y  D; vB       6.6.6.0 [20/0] via 5.5.5.5, 00:18:07
4 `3 u( X# V7 f1 Q& X! J     10.0.0.0/24 is subnetted, 1 subnets
9 T/ I) I1 B9 e4 f5 X" sC       10.1.1.0 is directly connected, Serial1
, }1 P( @+ \1 M( y, c 1 B$ D& [4 B' i
R3#sh ip route( y$ r+ l" Y* G
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
& V) D7 {, L. e% i1 T1 C+ E       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area6 b" `" p3 B- x6 j. z: K" F2 B9 v
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
) e) ~1 j4 q7 J- Y       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
& m0 j  d( w/ D3 v/ S       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
- D$ ]) c3 o) m6 {3 y% g+ Q       * - candidate default, U - per-user static route, o - ODR
+ p# O3 M! X! _- T6 ^       P - periodic downloaded static route
& [$ m5 A, g% X- h/ u- q# l
' s# T) M/ d0 W. V$ tGateway of last resort is not set
! V8 R8 O7 @! |. Z9 {) L' B + a/ k: y% @; h* `+ J
     2.0.0.0/24 is subnetted, 1 subnets
) N. i5 J# F$ p7 a& IB       2.2.2.0 [20/0] via 3.3.3.3, 00:18:062 f6 d/ H) [' |) a+ _( N- [2 I8 Y
     3.0.0.0/24 is subnetted, 1 subnets
3 u( D- P; v  z: ^5 r# [S       3.3.3.0 [1/0] via 20.1.1.1
$ |0 B$ f* _# V# m     4.0.0.0/24 is subnetted, 1 subnets
6 x" k" j# B; ~# [0 CB       4.4.4.0 [20/0] via 3.3.3.3, 00:22:07
6 G( T  J0 ^( W& R" a     20.0.0.0/24 is subnetted, 1 subnets
1 T" l' ?% v( T* Z  R% a* VC       20.1.1.0 is directly connected, Serial1# ~) I/ L1 {6 c9 d6 i
     5.0.0.0/24 is subnetted, 1 subnets+ N% J/ O3 X' A
C       5.5.5.0 is directly connected, Loopback0
3 J" n, h/ h6 h9 N5 L     6.0.0.0/24 is subnetted, 1 subnets" P6 Q/ r! Y! l5 I' m
C       6.6.6.0 is directly connected, Loopback1
/ s8 y. `* ?3 e, S! d, K( D     10.0.0.0/24 is subnetted, 1 subnets3 p. h4 A( n' ]2 \2 l) q$ C
B       10.1.1.0 [20/0] via 3.3.3.3, 00:22:09
- H5 `& [. ]% Q& y5 X1 x$ ], F
* T/ s2 A) h3 y6 w; K
( o5 M' _" |! r% [步骤五:查看bgp 概要信息# Q. X: z" F  L9 e  F

; f# Q  V" r6 u' IR1#sh ip bgp summary3 E% q1 ?0 u# a
BGP router identifier 2.2.2.2, local AS number 65001' h1 i0 r5 Z  v* ]* t& P8 j$ S  u5 I

7 h% d* Z' ?- A. z7 l0 PNeighbor V AS MsgRcvd MsgSent TblVer  InQ OutQ Up/Down  State/PfxRcd8 H0 J+ C  u- i' ?/ g2 b
3.3.3.3   4 65001      13      12        5    0    0 00:08:23        3/ |  J$ C  P% q: @
( X5 P1 J, w. T6 }# Q& y3 V+ O
R2#sh ip bgp summary
- ?7 x' ~  H4 U7 X2 {" \. x4 Y9 KBGP router identifier 4.4.4.4, local AS number 65001( ]- J  u1 v" s. Y  K% R/ G/ b

! F: u8 I' q5 d5 E9 MNeighbor V AS MsgRcvd MsgSent TblVer  InQ OutQ Up/Down  State/PfxRcd
7 K4 C+ f0 X2 m" m4 n+ i( r1.1.1.1   4 65001      18      19        5    0    0 00:14:41        2
( M4 N! L7 p/ a5.5.5.5   4 65002      22      23        5    0    0 00:18:42        1
回复 支持 反对

使用道具 举报

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

详解BSCI实验四:配置BGP

</p>R3#sh ip bgp summary8 a$ _7 {! E4 ?8 M' R) U0 A
BGP router identifier 6.6.6.6, local AS number 65002
9 J& T5 e# G/ U' a3 r% G
1 S  z. k( l& z. k! F  d  ?NeighborV AS MsgRcvd MsgSent TblVer  InQ OutQ Up/Down  State/PfxRcd
/ g0 v" `/ K# U- L3.3.3.3   4 65001      27    26        5    0    0 00:22:36        3
0 [9 w& T/ f5 }8 z: q1 I
: @5 ~0 k3 W1 N" \# ^5 U
. @/ x! F# R+ Z1 e: T# O0 p1 S步骤六:查看bgp邻居+ V1 p8 U9 b, d2 Q4 c7 a. S

3 X, V. r/ R' C1 |9 ^R1#sh ip bgp neighbors
. G2 q3 W( G9 c1 VBGP neighbor is 3.3.3.3,  remote AS 65001, internal link
  B5 S1 O8 R0 N; R  \$ T: Y  BGP version 4, remote router ID 4.4.4.4
; D! ], I* q* M8 q: a" ~0 Q5 J& P( u  BGP state = Established, up for 00:10:41  àIBGP邻居已建立# ]1 T1 @: t: D
  Last read 00:00:41, hold time is 180, keepalive interval is 60 seconds8 ~$ X: Q3 K8 i) [# a' e# l
+ e8 u" t, Y, ~& {) o3 s. i2 v
R2#sh ip bgp neighbors
  b* e, j% U; ?; ]BGP neighbor is 1.1.1.1,  remote AS 65001, internal link
: e$ ^- }9 [  V0 |  BGP version 4, remote router ID 2.2.2.22 e; Z, t  `& V
  BGP state = Established, up for 00:15:15  àIBGP邻居已建立( m6 I. E8 _4 H/ b# I

3 S/ G; C8 D- H* e4 Y
, p" ^0 K3 ?0 S' G9 _: UBGP neighbor is 5.5.5.5,  remote AS 65002, external link) @  P- d$ b% I
  BGP version 4, remote router ID 6.6.6.6
. }# R: R% q3 D* N' u  BGP state = Established, up for 00:19:25  àEBGP邻居已建立/ r3 {) N% y% Y- X, T& U/ {

& q& U( M/ h7 O2 V* ], {9 `R3#sh ip bgp neighbors5 Y1 d' j5 g. o) u! Y( h( E
BGP neighbor is 3.3.3.3,  remote AS 65001, external link
0 Y  L7 @9 V% V. A( b$ N8 D  BGP version 4, remote router ID 4.4.4.4
8 v+ C1 D3 R7 O: D! h6 |  BGP state = Established, up for 00:22:59  àEBGP邻居已建立( o& x; V0 y% i% V& k

! N% Z; v) b( V9 }0 _   G( v+ w" z% q1 I
步骤七:查看bgp转发表0 l* U- a4 ^' }& P8 r3 R# [

( \0 [, e6 J' v4 r+ }3 Z9 yR1#sh ip bgp
: M5 P9 U7 W) j4 l  N8 UBGP table version is 5, local router ID is 2.2.2.2
, E* e$ h1 f7 F6 t$ ]8 ?/ a% FStatus codes: s suppressed, d damped, h history, * valid, > best, i - internal
  \! ^0 n$ l9 K; q6 iOrigin codes: i - IGP, e - EGP, ? - incomplete
; H) \) p( p' _+ a+ b
7 b; V5 z. m" A  S; a: Q   Network          Next Hop        Metric LocPrf Weight Path
0 ?. W, Y( y" W*> 2.2.2.0/24       0.0.0.0                 0         32768 i
- O1 w& c! h2 T; S. f3 y- }*>i4.4.4.0/24       3.3.3.3                 0    100      0 i( G0 Y$ n/ H( L9 |1 o
*>i6.6.6.0/24       3.3.3.3                 0    100      0 65002 i! a. B5 O4 H- B3 ^
* i10.1.1.0/24      3.3.3.3                 0    100      0 i; Z1 A* ~6 P. F3 M7 g
*>                0.0.0.0                0         32768 i
# `, f) q2 Q& X* _# [ , l; b1 q: u8 W4 d3 l
R2#sh ip bgp. c: T: n& s1 L% ~
BGP table version is 5, local router ID is 4.4.4.4/ T/ v5 r7 W  H! B" p- \0 [
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
+ `! P  F" T/ G0 xOrigin codes: i - IGP, e - EGP, ? - incomplete
: V6 C4 e7 x& Z
, @& p: `; V0 d6 A& O5 k. B, f   Network          Next Hop         Metric LocPrf Weight Path! p# t: g7 K# M
*>i2.2.2.0/24       1.1.1.1                  0   100      0 i
6 \+ c) C% K' e. Z6 D  }*> 4.4.4.0/24       0.0.0.0                  0         32768 i
$ o. N, o" d* A3 ~*> 6.6.6.0/24       5.5.5.5                  0             0 65002 i
1 `2 }+ R; H% y( @# x8 W* i10.1.1.0/24      1.1.1.1                  0    100      0 i
; S- M" G0 v" b2 d3 R*>               0.0.0.0                  0         32768 i
7 A- m- e2 T4 T
$ h) c& n+ q( i: {) _" Y  U  ^R3#sh ip bgp
8 p2 J3 Z/ D$ gBGP table version is 5, local router ID is 6.6.6.6
& O$ k' O. O* s  h4 O; p: YStatus codes: s suppressed, d damped, h history, * valid, > best, i - internal; ^$ d; z  `" U5 x9 I0 D) H
Origin codes: i - IGP, e - EGP, ? - incomplete( M# p$ d2 E* i! J' o+ [
$ H4 R# S3 `$ x) @3 G# M# e
   Network          Next Hop         Metric LocPrf Weight Path  ?( P6 v! C# I, i) x
*> 2.2.2.0/24       3.3.3.3                                0 65001 i
' D9 J, S3 g- Z  a& |( q*> 4.4.4.0/24       3.3.3.3                  0             0 65001 i, x( {* G- S0 L  L
*> 6.6.6.0/24       0.0.0.0                  0         32768 i; H, H! `  B( C3 |0 \" g5 }
*> 10.1.1.0/24      3.3.3.3                  0             0 65001 i
4 D4 T- `" y$ D3 n  o/ I+ ~ ; U/ H1 Y3 t: ]. s
3 U! ]4 p% p: }' M( ]
步骤八:用ping命令测试连通性或用扩展ping命令
! {. |4 g5 ~) k* \4 S, c& A  R 1 E4 a; l9 I# L+ v
R1#ping  6.6.6.6
* Y* V( h8 G* m7 ?!!!!!7 k: X) D  x) Z; h- g8 r
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/64 ms
: @) W0 z& ^8 [- A* Z
' N/ l  ^0 F3 |  H6 K* v
! R7 t) s  U: x+ s2 f+ W% o% tR1#ping 4.4.4.4+ K1 @6 O% k1 e" o
!!!!!
0 q; P% S) J6 W3 A# ~; dSuccess rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
7 h( h4 r# V& O; y8 Q' a 3 e0 @5 x% |" b! {1 t8 k5 J
R2#ping 2.2.2.2
7 `6 P8 M. }2 a* T8 `!!!!!
4 _% b7 O  o- R6 A* q" tSuccess rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
4 H# b. m8 a0 A+ |! i' g 2 J1 Q- x+ s0 M( O" n4 |
R3#ping 2.2.2.2% z4 N- i- K9 k4 E/ y4 }1 B- b
!!!!!
7 u+ n9 j6 c3 A- y3 Y( lSuccess rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms
5 L$ ]$ n1 ~3 l6 b1 x+ _6 c2 T. Q0 C, m: t ' w4 h5 {9 P* |' V! A8 J7 n5 Q
2 t( @) a- r" `  E
r3#ping 4.4.4.4' ]: M, u: t$ l7 n" H
!!!!!/ p7 N# Z' n4 x# N* }
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms4 H/ |) W1 [, R& [3 q! |
' b7 t/ Q2 z) s2 g- b/ d- `
0 z6 T5 t) _" \! l
步骤九:查看配置
1 H) V$ D& W0 n9 ~! ?5 a: v5 [ % v) `  Q" U1 o# e2 L# W6 N5 Q
R1#sh run
( R# i, R! [/ L6 Dhostname R1
( Q- g" ], p& {$ M!
$ M, T  g$ X( u4 u' einterface Loopback0; f4 V# _% x, _* U1 t1 b+ V1 e0 z
ip address 1.1.1.1 255.255.255.0
7 q& {9 {" n4 Y/ ^!
: C# A+ v2 ~5 ~* m2 H! O! ~' {' ~% Ginterface Loopback19 }& c/ Y/ G* v$ k: r
ip address 2.2.2.2 255.255.255.0+ I+ I+ [: T9 {( o
!( ?  j$ R" g( ?4 D+ U
interface Serial04 I2 Y2 v- h$ Y, [) @9 _
ip address 10.1.1.1 255.255.255.0# p0 E# Y4 R& Q% }+ _8 T
clockrate 64000" G" Z: F, h+ {* L) |

+ I- j9 K! m# V) B9 P!
回复 支持 反对

使用道具 举报

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

详解BSCI实验四:配置BGP

</p>router eigrp 100
+ D: ?+ i9 J' F2 P. d8 ]& I6 Q network 1.1.1.0 0.0.0.255$ s, w% P; D# }! L3 T) Y
network 10.1.1.0 0.0.0.255) Y) c' F& q9 N5 D8 m. x
no auto-summary
! }- X  N* o+ w$ Q! |!2 u9 }2 I; w2 a5 q9 l
router bgp 65001* S% V* [& |; y3 Z! a
no synchronization! k0 y# U, t' L; e: ~8 w
network 2.2.2.0 mask 255.255.255.0
5 K4 T- @+ p, R3 p: R& u$ l' t network 10.1.1.0 mask 255.255.255.0: X/ ^* T8 M- B& |( h! _! f" G+ a, \
neighbor 3.3.3.3 remote-as 65001
) E; R. e! n: p$ q2 C6 S9 I: x neighbor 3.3.3.3 update-source Loopback0: |0 r! |- [& @. K7 ?
no auto-summary" _& R/ w; z+ B( \: s! q4 e0 ]
!; G7 q0 V5 {9 ~' h! ^
end" t# A2 {  E' I2 J; s, t) N+ Q7 F
6 x  G1 o! P9 z& Y! r

1 N) E3 g0 E1 }4 v# y$ G+ d, dR2#sh run
  |: c2 V9 v  R3 J$ Phostname R25 ]" A6 t) t( B8 I1 t& Z# }9 m! X9 K
!7 P8 N2 b1 h: y: E
interface Loopback01 ^2 o- W3 h$ G6 u& M. J
ip address 3.3.3.3 255.255.255.00 A! m8 Q* r: G
!
, v! k+ E5 @8 T1 m& @interface Loopback1
9 l8 w+ ]" z0 r9 X$ g- G: o ip address 4.4.4.4 255.255.255.0
& p$ J9 P3 Y4 z9 G0 T4 U!
6 W: u2 d2 \( sinterface Serial0
8 k  S) v! N1 I# P ip address 20.1.1.1 255.255.255.0
1 R5 S- l; x1 M9 H!
+ S- k. a: T: F) Rinterface Serial1, E2 w6 ^% X  A8 B
ip address 10.1.1.2 255.255.255.06 [6 S3 ?9 J/ d, `! `. |
!) ~; I( U4 @& ], f
router eigrp 100
% q" J* _: [! e/ {- L, G+ R8 I; j5 u network 3.3.3.0 0.0.0.2550 v7 c5 c$ W$ s- E, W
network 10.1.1.0 0.0.0.255) {: Z& V5 S7 |& x" B9 {
no auto-summary/ l$ n/ ]* m) R' b: j
!- x: V: X% z. L% Z& t* N1 F$ `
router bgp 65001) }% P1 I5 }0 P' @: l
no synchronization
8 Q, Y, S2 s! u, H+ Jnetwork 4.4.4.0 mask 255.255.255.0
9 V+ g5 C+ B( B; s4 ]  C! ` network 10.1.1.0 mask 255.255.255.0
9 }/ @/ ]: _6 d* N" r6 Y neighbor 1.1.1.1 remote-as 65001
0 z8 d, H2 Z8 Y$ K neighbor 1.1.1.1 update-source Loopback08 C) B* I# B& J" w
neighbor 1.1.1.1 next-hop-self
1 n" Y- q7 @3 A# R neighbor 5.5.5.5 remote-as 65002
# ~2 U' G$ t" C8 u neighbor 5.5.5.5 ebgp-multihop 255: h0 ^, O# Q8 C; Z- z) f, n
neighbor 5.5.5.5 update-source Loopback0
9 ]: u& T1 u- a. Y no auto-summary+ v/ Q0 Z! g' a
!3 S, Z* e5 I' W# W" c
ip route 5.5.5.0 255.255.255.0 20.1.1.2# e: N6 ]2 \" P) a

; o' F+ C, \# }" Hend
5 {, _. o9 R, i# } / S) D# N2 }  l# T) |$ [* T
R3#sh run; W% P: {+ i) g4 Y3 f0 }0 ]
Hostname R3
8 n7 E& i0 M- O" @+ d!
% n" u8 d1 ^. k; f( kinterface Loopback0
! B' u1 j3 V# ^) I' { ip address 5.5.5.5 255.255.255.0
4 z4 E3 V  Z8 y/ f' r!4 k) A' V' a: j
interface Loopback11 F" k. D% Y) u* Y8 |
ip address 6.6.6.6 255.255.255.0
+ C  K9 u. S& {) A5 q8 ^!
% ~) u# ?2 g' j; binterface Serial1
2 a# a& S) u% ]; U6 Y ip address 20.1.1.2 255.255.255.0
% w5 v$ z0 T8 g  \6 s& Z8 Q9 l5 S& E clockrate 64000' ?( u! M( O! o6 y7 M; A
!
1 t6 E4 M, Y2 C" q  }router bgp 65002
2 p! ]0 s8 u2 F% Q, _network 6.6.6.0 mask 255.255.255.0/ l; e- q+ e, z
neighbor 3.3.3.3 remote-as 650019 P  B( i* n3 x
neighbor 3.3.3.3 ebgp-multihop 255
) [3 ?1 d. K; _ neighbor 3.3.3.3 update-source Loopback05 s3 |/ G' i' ?3 M1 M
no auto-summary
2 ?; c) S/ z) G/ j8 [!
$ b! d' V# K5 I' V- iip route 3.3.3.0 255.255.255.0 20.1.1.1
: R3 K; C+ I7 X2 c9 v$ C5 tend
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-5 12:31 , Processed in 0.297315 second(s), 27 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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