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

[考试战报] 完整的rip与ospf高级配置

[复制链接]
发表于 2009-11-13 14:09:29 | 显示全部楼层 |阅读模式
:实验背景:
& m% d" p4 z; X1 s3 V. k4 p9 Y4 K5 b0 Z0 T( P/ x& Z
东天公司的规模越来越大,网络也越来越复杂,公司吞并了一个小公司,但是和这个公司网络合并时,却无法直接接入OSPF的骨干区域,网络条目也越来越多.
% J0 K( S. B) t9 J! V3 m. M0 s
为了减少路由条目的数目,要求对路由条目进行汇总.
; g  x  @5 Q0 g7 o- J
" x. Q# I! [( d7 Z. v% z
:实验目的: 7 L( z% r0 T5 m6 }3 J" z8 t

3 f3 S4 p6 l5 I1:
通过虚链路实现Area 3与骨干区域的相连
" _# a! y0 h  C$ P) g- W# ^3 t5 j2:
分别实现路由汇总(区域内路由汇总和外部路由汇总),实现路由汇总后查看路由条目.
0 e8 j8 @/ l3 P3 R$ {+ m( Y% T3:
实现全网络的路由. 3 w) N2 Y" h4 g; `) }! F

  Z8 n* {( F" f+ y) C
:实验拓扑
6 l9 W5 s5 V; H" ~1 S3 J
:实验背景: - X: H" k4 l$ [9 t3 N
" C8 D$ }0 U9 t' n9 |6 Q! A
东天公司的规模越来越大,网络也越来越复杂,公司吞并了一个小公司,但是和这个公司网络合并时,却无法直接接入OSPF的骨干区域,网络条目也越来越多. + [: u# l) {! x+ H
为了减少路由条目的数目,要求对路由条目进行汇总. 2 h2 s1 e9 o. D; Q1 T* Z
6 J% w/ W. a  W2 P% a: T$ c' \
:实验目的: " Q$ ~! p' w9 S

! H6 B1 f8 d% q! p1:
通过虚链路实现Area 3与骨干区域的相连   ?  s9 P% I( {6 H
2:
分别实现路由汇总(区域内路由汇总和外部路由汇总),实现路由汇总后查看路由条目. 0 l5 l& u0 ~5 [  z7 C
3:
实现全网络的路由.
9 U8 Y- E4 n7 Q' i0 R8 d
5 W1 S2 \, R& |
:实验拓扑 ; `! @% W! i1 E! d: y6 |) Z9 P
   0 U8 a" ?8 P1 M, H' M
[img]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/STOBJ0%60P]~~%60[]DXAI%7BGS0G.jpg[/img] # |* o, g: D/ H4 L0 d1 Y  F

% c% e2 u: v8 X4 b7 N
:实验步骤: : h& j$ B- |, ^' @  T1 @8 m, S/ s
   1:
先配置多区域的OSPF,打通全网路由,注意,发布环回接口. ; ~7 q2 e1 l4 H$ k; _: H( |' S5 u
   2:
区域3无法与骨干区域直接相连,所以先用虚链路连接到骨干区域。   S( ]1 q1 p" E. C+ P* K
   3:
将外部路由重新发布到ospf. " @, M) _, j. n5 l% x
   4:
配置NSSATotally Stubby区域.
8 I9 M/ F% K5 K) p+ [   5:
ASBRABR上分别做路由汇总.(R3R2上用环回接口模拟几个网段,做汇总) % L  ]+ G) U. M9 h) z
说明实验现象. $ p5 T& k/ r: Z; K* i. |5 L
实验步骤:
: b# {% v# b1 i  F
1、基本配置,配置接口IP及环回接口IP
8 U/ I: x+ }5 [: a1 Z% t5 V
R1(config)#inter loo 0
6 r7 @1 p% z/ Q; }$ ^
R1(config-if)#ip add 1.1.1.1 255.255.255.255 - {4 u+ g; M! I; t1 \
R1(config-if)#interface f0/0 # _* s. D! W- s/ p: m
R1(config-if)#no shut
* Y+ j' o9 C( n: h; ^+ R
R1(config-if)#ip add 10.1.1.1 255.255.255.0
, n; z. F# l* c( E( Q
R1(config-if)#interface f1/0
# U$ r8 v5 ]8 O( w* ?  v; j. |
R1(config-if)#no shut
( J+ @0 M: d- v: V% }- M
R1(config-if)#ip add 11.1.1.1 255.255.255.0
- `) P# R$ Y1 U9 ]& f/ e2 @8 z2 E( z5 h( h* r0 z8 S) L5 u
" ?. y8 |6 U1 r3 Y9 M* l

# i/ B8 h) G2 z
R2(config)#interface loo 0
3 ~+ p) F7 T- s7 w3 I5 O
R2(config-if)#ip add 2.2.2.2 255.255.255.255
, ?$ S# h* ^, Z& N- e& {
R2(config-if)#interface f0/0
( i$ ]2 o* a3 ~
R2(config-if)#no shut & `2 B! V" j; f  M
R2(config-if)#ip add 10.1.1.2 255.255.255.0
+ F) e' i) q8 w% v
R2(config-if)#no shut
8 g) F2 a7 O& s, q; d
R2(config-if)#interface f1/0
4 X1 d& j0 s+ I) [! K7 J
R2(config-if)#no shut 3 q* D! T& V, y, a1 V- m+ r$ d
R2(config-if)#ip add 20.1.1.1 255.255.255.0 3 j$ j. o4 [3 N4 y' v
7 T$ `' e+ w" G* a  R- t* @
3 b# b4 P$ y& Y+ ?
1 J) }; C" C! L: P4 D
R3(config)#interface loo 0
# q' o+ P& e8 Z) {! Y
R3(config-if)#ip add 3.3.3.3 255.255.255.255 # Q! Y: Q; c* {+ W
R3(config-if)#interface f0/0
" T+ a7 o, N* F2 k
R3(config-if)#no shut
9 ~+ C  B  l  Q) X0 s' M  v& \( r
R3(config-if)#ip add 21.1.1.1 255.255.255.0 7 s8 f: Z3 G8 q- S5 Y# u
R3(config-if)#interface f1/0
, D$ h+ t4 j+ X0 c% r: D% N7 Z
R3(config-if)#no shut
# l9 h% K9 y6 N- G7 n) z$ s" f/ a
R3(config-if)#ip add 20.1.1.2 255.255.255.0
; k6 e* B# X: Q: B+ s! D# X$ E: F3 e+ j: R0 ?
; W  ?6 G- D. X5 L3 R1 ~' W
R4(config)#interface loo 0 ! ?. [* s  V9 [0 k; N7 ?  M2 A$ C
R4(config-if)#ip add 4.4.4.4 255.255.255.255 4 u; B3 O9 ]; F  u$ g! v, F
R4(config-if)#interface f0/0
3 w* M5 ?; o* k, D
R4(config-if)#no shut
7 X& F. z% R2 e/ H* Y5 [2 x( |; M6 h2 N
R4(config-if)#ip add 30.1.1.1 255.255.255.0 ! y! T4 y, @* E+ N
R4(config-if)#interface f1/0 5 z- y+ b$ |7 ~
R4(config-if)#no shut
! L, s2 P+ F5 s; _: }
R4(config-if)#ip add 11.1.1.2 255.255.255.0
" x0 g+ e7 {+ T1 E1 c, K' _* O2 ~+ h0 j
$ }/ s- J5 c' r7 h, }1 M: {
R5(config)#interface loo 0
4 s3 |7 |. L" L5 e9 u" ~3 E
R5(config-if)#ip add 5.5.5.5 255.255.255.255
; E" c4 O+ q: k/ w
R5(config-if)#interface f0/0 3 i6 T6 a. d& u6 ~" J6 c9 Z
R5(config-if)#no shut 7 _) V9 X: ?5 B0 l% x
R5(config-if)#ip add 30.1.1.2 255.255.255.0 4 P+ r; X8 w0 P5 a" E
R5(config-if)#interface f1/0 3 W! I( a  W4 ~
R5(config-if)#no shut ; x' |% K; ]) Y' X9 L
R5(config-if)#ip add 31.1.1.1 255.255.255.0 , S% @$ H9 t5 L# Q- U1 M7 b$ N2 T; d
! s: u1 o$ B2 A. j" J7 N
* k/ U4 J& E$ _, I

# T. U( ~% k6 i1 T: C. E/ e
" Z- F% J' k/ l, I
R6(config-if)#interface loo 0 - a* c+ B) s; K$ k5 f5 M
R6(config-if)#ip add 6.6.6.6 255.255.255.255
$ H2 {$ V$ X8 a$ t' J) Q
R6(config-if)#interface f1/0 + V# Y# v$ G4 X0 w. t
R6(config-if)#ip add 31.1.1.2 255.255.255.0
3 Z9 ^& }, h# F) b) ?% C
R6(config-if)#no shut
+ T. r) o' W3 r1 c
& z# H) @6 z6 h2 r% I8 k- y5 E8 {+ E0 _  s2 p! N
R7(config)#interface loo 0
2 p1 `7 I# U+ z) N- `; n
R7(config-if)#ip add 7.7.7.7 255.255.255.255
! Y( I$ Q6 {1 K" a5 q" _5 W
R7(config-if)#interface f0/0 $ o* X3 j  K7 G2 `7 L
R7(config-if)#no shut   G' D, m- h' j# ]* R& P
R7(config-if)#ip add 21.1.1.2 255.255.255.0
6 i$ D+ b+ a3 ]8 [3 x' O  W) ^7 W0 m& R7 Y2 E9 U: {: n
R4#ping 30.1.1.2
$ e. [. {( }2 d2 b7 B* f" N& d
Type escape sequence to abort. / M- x3 W0 _/ T
Sending 5, 100-byte ICMP Echos to 30.1.1.2, timeout is 2 seconds: 4 w) _* T) `! Z- F* _7 n. d* D
.!!!! ( G* w1 R8 u" p* v7 L: i
//现在相邻的设备之间已经可以Ping 通了
( W0 }8 |8 A+ V# `7 D5 z' C& d' a. y5 T, w0 K$ N6 W
2、打通全网路由 " R3 X4 N4 s4 y* w7 O% l
R1(config)#router os 110
# B( C8 w" F4 ^5 n; H! b
R1(config-router)#network 1.1.1.1 0.0.0.0 area 0   b' W9 g8 k" W, o6 p5 p' y$ P; O
R1(config-router)#network 10.1.1.0 0.0.0.255 ar 0
) C. j5 Z  H4 R9 {! J6 J
R1(config-router)#network 11.1.1.0 0.0.0.255 ar 0 + P  u7 H; [- m% B4 G+ R( A. E

8 u, f" z  }- V8 x/ j
R2(config)#router os 110
- X5 V; o3 ]5 S# n/ W; k) j
R2(config-router)#network 2.2.2.2 0.0.0.0 ar 0 $ X% s) s7 n( X/ F3 T
R2(config-router)#network 10.1.1.0 0.0.0.255 ar 0
5 G4 W( }; ?: C7 g. L( ~
R2(config-router)#network 20.1.1.0 0.0.0.255 ar
7 ^( Y$ r4 V" }( g* m7 ^
R2(config-router)#network 20.1.1.0 0.0.0.255 ar 1
( ?6 H& G) M9 F4 x+ z- }2 k1 y  |' E9 w$ Q  Y
R3(config)#router os 110 4 x& a! h; n% \( M: G  L1 I3 s% Q
R3(config-router)#network 3.3.3.3 0.0.0.0 ar 1 5 T. `2 ^% k4 C8 V" M
R3(config-router)#network 20.1.1.0 0.0.0.255 ar 1
! N" _; y9 J4 X+ U
R3(config-router)#exit 8 C  X/ u4 `2 W4 c  T2 Z1 y6 Q4 l  L6 x
R3(config)#router rip                //R3ASBR,连接两个不同的自治系统。 # [1 d' O" N* [
R3(config-router)#version 2 - v9 K! `+ d1 ?3 X$ C8 f$ Z9 ?
R3(config-router)#no auto-summary
5 {4 l4 s# `# G2 A
R3(config-router)#network 21.1.1.0
) H+ i' n( Y1 Q# Z" Q& S6 P9 o4 ~
3 z% [* G/ K) N4 @* K
$ F/ O  Z, z# ^* H2 r

! Z3 f8 a' c8 U6 k! f  B* ]  m) \8 j
R4(config)#router os 110
! D3 \' @7 c2 c8 G0 V
R4(config-router)#network 4.4.4.4 0.0.0.0 ar 0
( W# f- |/ S* X7 e! `' B2 C
R4(config-router)#network 11.1.1.0 0.0.0.255 ar 0
' [5 F( @8 w8 w8 p) Y
R4(config-router)#network 30.1.1.0 0.0.0.255 ar 2
4 F: z7 O5 G5 l" \. M& j  O1 D' g0 S" q9 w5 G

5 H+ C: c  J% j* C: z+ F, ]
R5(config)#router os 110
3 D, `( ^- \9 s/ A
R5(config-router)#network 5.5.5.5 0.0.0.0 ar 2
, R7 ?; Q8 T+ @5 J7 J
R5(config-router)#network 30.1.1.0 0.0.0.255 ar 2 1 N1 Q6 b1 y6 P- E2 @
R5(config-router)#network 31.1.1.0 0.0.0.255 ar 3
: o) [! [* G4 M
% K& @# Q' C9 j7 _/ I
5 K0 u6 U, O' W) w  u/ Y5 I
R6(config)#router os 110 $ ~6 m4 O: }1 d3 _  W* r9 ]; t
R6(config-router)#network 6.6.6.6 0.0.0.0 ar 3 & F% f$ }: e7 m: s; u
R6(config-router)#network 31.1.1.0 0.0.0.255 ar 3 * t0 ?/ Q; R: r" q

$ ^, r8 b6 a8 a6 G# }' N7 T. i
! w$ Q( o& ?( t# L( J9 n% X/ d9 S
R7(config)#router rip 8 k  X( V$ O# @6 P
R7(config-router)#version 2
5 o2 f6 i9 V# ^( P# H' [
R7(config-router)#no auto-summary - f% R& g/ W6 N6 h2 p% w
R7(config-router)#network 7.7.7.7 $ u& P# S0 J+ v- ^- o6 i
R7(config-router)#network 21.1.1.0 ) n- X  v# `" c- ?& h( b; |

. y2 `8 r& ?& f. ]& t0 D
R4#show ip route
1 _6 Y- X% m3 f, c0 j' k% a
   1.0.0.0/32 is subnetted, 1 subnets ) E, }' A  @2 i9 \, \; u- }/ R. N1 R
O       1.1.1.1 [110/2] via 11.1.1.1, 00:04:41, FastEthernet1/0 8 a! ?& U' q- S/ T% U2 }6 u
   2.0.0.0/32 is subnetted, 1 subnets - U- [- e; @5 h' ^4 a( A! {; m$ _3 _) J
O       2.2.2.2 [110/3] via 11.1.1.1, 00:04:41, FastEthernet1/0
" I4 N* p3 I% T1 F
   3.0.0.0/32 is subnetted, 1 subnets , v6 g3 |5 W4 \: Y. \- O) J
O IA    3.3.3.3 [110/4] via 11.1.1.1, 00:03:25, FastEthernet1/0 ' y' k' T6 M' N) |% N
   4.0.0.0/32 is subnetted, 1 subnets , I- P& Z, Q  }4 M8 u
C       4.4.4.4 is directly connected, Loopback0
5 H; [, C# p1 H! R$ O( j! T' Y7 c
   20.0.0.0/24 is subnetted, 1 subnets
  Y$ A9 ^+ n( g% ~9 G$ _
O IA    20.1.1.0 [110/3] via 11.1.1.1, 00:03:25, FastEthernet1/0
* x7 y( g3 v3 G2 B% W
   5.0.0.0/32 is subnetted, 1 subnets
8 n" K. a! I4 t" w# t; ]- _
O       5.5.5.5 [110/2] via 30.1.1.2, 00:03:25, FastEthernet0/0 0 H# U1 Q* C$ C( i4 v% ]5 ?* c
   10.0.0.0/24 is subnetted, 1 subnets ) Y6 J" V- N1 ?  s* {
O       10.1.1.0 [110/2] via 11.1.1.1, 00:04:43, FastEthernet1/0
( _$ c  t7 ~- M6 H* V. A: p
   11.0.0.0/24 is subnetted, 1 subnets % n& h. E1 c2 Y' p( ^
C       11.1.1.0 is directly connected, FastEthernet1/0
' K$ n4 v5 ^7 ?! d3 A
   30.0.0.0/24 is subnetted, 1 subnets
+ Y* m) T" D! Z; A  U  }
C       30.1.1.0 is directly connected, FastEthernet0/0
/ A# S) \0 F% C$ _; Z
5 P" T0 d4 g% R: D8 O$ {2 {# b# Z
//查看R4的路由表可以看出R4学到了本区域的及其它OSPF区域的路由信息,但是没有Area 3 以及RIP自治系统的路由信息,这是因为Area 3 没有和骨干区域直连,RIPOSPF属于不同的自治系统,不能直接学习路由信息。
. U6 r+ r* [) b4 o
4 T) F! Q, g$ Q9 o
3、配置虚链路
+ W( k% B! A8 `( y% O; I+ Q# [
R4(config)#router os 110 * y; U3 F: w( L: r6 S/ l, w
R4(config-router)#area 2 virtual-link 5.5.5.5 , O# _# G0 r/ X5 H0 b, `

3 v5 ~; U  A# t* J8 q8 Y
R5(config)#router os 110
) T* D# P, ]# h- N. r, w+ m- o3 D. P1 f
R5(config-router)#area 2 virtual-link 4.4.4.4
  G; W% H) c5 M. z
( q, {( ]5 x$ }+ l; j- x/ ?
再次查看R4的路由表
5 `# y: U' k/ W; J8 R# v/ _0 ^+ Z
R4#show ip route $ C- ^; i. }% K7 Y, b
   1.0.0.0/32 is subnetted, 1 subnets
4 C8 \4 G  w+ s- Q# h
O       1.1.1.1 [110/2] via 11.1.1.1, 00:00:24, FastEthernet1/0 + S8 b" B$ j7 w0 x: h$ B
   2.0.0.0/32 is subnetted, 1 subnets
9 c$ C3 _" n' L& R# Y  q; I
O       2.2.2.2 [110/3] via 11.1.1.1, 00:00:24, FastEthernet1/0
' s5 W9 B$ F# Q9 f2 y
   3.0.0.0/32 is subnetted, 1 subnets 7 S& N, d. ]% T: O7 k" H3 u6 O8 [$ u
O IA    3.3.3.3 [110/4] via 11.1.1.1, 00:00:24, FastEthernet1/0 + m. z) S* b, W& a' @/ R! y! d
   4.0.0.0/32 is subnetted, 1 subnets   d: x3 \! g8 L
C       4.4.4.4 is directly connected, Loopback0
4 w# |, R2 X. \: [$ n
   20.0.0.0/24 is subnetted, 1 subnets
- q+ C5 z' ^: {) A- @! i: I" q
O IA    20.1.1.0 [110/3] via 11.1.1.1, 00:00:24, FastEthernet1/0
' W) \% w+ j- l. `& n! r7 ~# K
   5.0.0.0/32 is subnetted, 1 subnets * |* _4 D) \4 _4 @! X
O       5.5.5.5 [110/2] via 30.1.1.2, 00:00:24, FastEthernet0/0
8 ]! p: w( @9 p: U; J  c' U
   6.0.0.0/32 is subnetted, 1 subnets ) K1 c5 O- a6 Z" ^
O IA    6.6.6.6 [110/3] via 30.1.1.2, 00:00:27, FastEthernet0/0
: Z' ~4 h, E: k
   10.0.0.0/24 is subnetted, 1 subnets , |$ I) C9 m: l; V
O       10.1.1.0 [110/2] via 11.1.1.1, 00:00:27, FastEthernet1/0
- }1 ^6 c; C2 ^. H, j; c
   11.0.0.0/24 is subnetted, 1 subnets " l" [! P( o% j, z& M% q" U
C       11.1.1.0 is directly connected, FastEthernet1/0 & o4 n) Z2 n" \& A( J
   31.0.0.0/24 is subnetted, 1 subnets / ]) J' g4 x3 [; T
O IA    31.1.1.0 [110/2] via 30.1.1.2, 00:00:27, FastEthernet0/0
8 c5 A! c, k) u- i: P3 S' n( U& x
   30.0.0.0/24 is subnetted, 1 subnets
3 {1 o* e8 T( u
C       30.1.1.0 is directly connected, FastEthernet0/0
- g# a$ @2 b- _% T9 t4 }2 M* t* e5 K8 @9 D0 `% Z

% p/ u6 j! |+ d
//可以看到,添加完虚链路之后,就可以学习到Area 3的链路信息了,但是还是没有RIP路由协议的路由信息.
5 l5 @( ^: x% W( Y* f9 Y( [/ [# F

5 V8 i  k0 F! V8 u# _+ e
7 G7 l; ^" q; A- a. k2 i3 R: J4 W  u% ^

1 p" J; G6 E( x& R' i5 z- r
4、重分发 7 v9 a5 x" Z  c0 E# F  E
R3(config-router)#router os 110
' L  E5 A  H- W7 A; O9 j+ A/ F
R3(config-router)#redistribute rip metric 100  subnets & l9 y$ `& G3 D+ y
R3(config-router)#router rip
6 Z. g: ^/ B; ?( @4 y
R3(config-router)#redistribute os 110 metric 1 5 E, c* b# z0 }( s: {# @$ c
& e7 z) N( P7 ?
//再次查看R4的路由表
; Y" D% }2 C0 h) V% B: P( N' Y% ]
R4#show ip route # K0 f7 @% P; w: {6 g3 [
   1.0.0.0/32 is subnetted, 1 subnets 1 i; C0 o' u) t+ W
O       1.1.1.1 [110/2] via 11.1.1.1, 00:14:37, FastEthernet1/0
8 ]& U1 X1 F$ |, I) ]& Y
   2.0.0.0/32 is subnetted, 1 subnets
5 R8 [2 F7 y- y( }7 E
O       2.2.2.2 [110/3] via 11.1.1.1, 00:14:37, FastEthernet1/0 * X2 U5 S0 L: E* h- c! H, S
   3.0.0.0/32 is subnetted, 1 subnets 9 _: H( f! j7 p+ n& J
O IA    3.3.3.3 [110/4] via 11.1.1.1, 00:14:37, FastEthernet1/0 $ w, I1 C% e4 L. y4 E& ^
   4.0.0.0/32 is subnetted, 1 subnets - i2 e  O) v6 G! A
C       4.4.4.4 is directly connected, Loopback0 , C1 m! z0 y8 R1 M, ~  x
   21.0.0.0/24 is subnetted, 1 subnets $ x/ i) T6 h; M* _2 a/ ?+ F
O E2    21.1.1.0 [110/100] via 11.1.1.1, 00:06:11, FastEthernet1/0 # m' {5 e) ?7 b9 n3 L; T$ m
   20.0.0.0/24 is subnetted, 1 subnets " v% a( S) n! ]. E: ~
O IA    20.1.1.0 [110/3] via 11.1.1.1, 00:14:37, FastEthernet1/0
7 @8 A7 q$ ]8 ^
   5.0.0.0/32 is subnetted, 1 subnets
4 y, U9 c6 s4 Q$ ~; j# w
O       5.5.5.5 [110/2] via 30.1.1.2, 00:14:38, FastEthernet0/0 5 D6 Q+ ^7 \" k8 d$ o" T+ Z
   6.0.0.0/32 is subnetted, 1 subnets
+ K7 C4 C6 N" q: R
O IA    6.6.6.6 [110/3] via 30.1.1.2, 00:14:38, FastEthernet0/0
7 H7 E' ~( B" q
   7.0.0.0/32 is subnetted, 1 subnets * v5 j1 Q& p' g' v) b! J5 }% c
O E2    7.7.7.7 [110/100] via 11.1.1.1, 00:06:13, FastEthernet1/0 ' B  m# ?* R0 s* d
   10.0.0.0/24 is subnetted, 1 subnets
( s' B+ k. _, y  R$ U
O       10.1.1.0 [110/2] via 11.1.1.1, 00:14:38, FastEthernet1/0
3 s+ ^/ h6 y* K- m, Y
   11.0.0.0/24 is subnetted, 1 subnets
! P$ m6 {- i$ }$ f2 ]- ^
C       11.1.1.0 is directly connected, FastEthernet1/0 " e. v7 Q  l' o" P9 d
   31.0.0.0/24 is subnetted, 1 subnets
' [7 y7 e* T. N& ^" ^
O IA    31.1.1.0 [110/2] via 30.1.1.2, 00:14:38, FastEthernet0/0
( x* c$ ^" E4 E4 v2 v' {
   30.0.0.0/24 is subnetted, 1 subnets
  I- L  F5 Y0 C) Y$ D# n1 ]) n4 R
C       30.1.1.0 is directly connected, FastEthernet0/0 1 f+ L) e8 e! j5 t# Z1 e

) y& _, `  `+ b0 D+ y
+ M- |* x- C$ v* C
//可以看到现在R4上已经有了RIP路由协议的路由信息。
# U- @: [% z2 T& G& E/ t* p# y* ^+ f6 g
% K  x* u( h" A% G
8 w4 J% [; ]" z4 J( b0 l! [
4 f; Z0 g9 J; Y; p) [7 u0 E$ D
! ^: I' _% b2 a

" c  ^$ G+ L. _' D: B2 B
4 L  b% s: H- F8 x- B
查看R7的路由表 1 ?2 K; I/ E  J% _# v8 Y! U' u

( Z, l* m% n4 S7 P
R7(config-router)#do show ip route ) `- j$ ~6 L5 j8 @/ n, N% |
   1.0.0.0/32 is submitted, 1 subnets . X! i8 Y) Q6 q# e0 N3 b2 g; r" R0 e8 @
R       1.1.1.1 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 2 ]! s: H3 ?0 _" F3 g# B2 H4 [" v
   2.0.0.0/32 is subnetted, 1 subnets
& O- F$ ]6 q- e7 Y) j2 T
R       2.2.2.2 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 2 b: K' q( r( e0 s* c
   3.0.0.0/32 is subnetted, 1 subnets 9 x9 M. [+ o, H" ?  `. f
R       3.3.3.3 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 ! {4 a5 N1 d6 t( P. j
   4.0.0.0/32 is subnetted, 1 subnets , e3 p$ f0 k3 e/ I8 D: b
R       4.4.4.4 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 9 A/ |8 B3 V  E  g
   21.0.0.0/24 is subnetted, 1 subnets & V' t% j) a* F1 _3 d3 o* W; @6 P
C       21.1.1.0 is directly connected, FastEthernet0/0 8 E2 r: t# v( |
   20.0.0.0/24 is subnetted, 1 subnets
3 d2 T9 o" ]( A+ Q' C" U2 O
R       20.1.1.0 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 9 e. a: D9 i- o& Z* A
   5.0.0.0/32 is subnetted, 1 subnets
9 r2 v1 i' M$ A0 Y6 h
R       5.5.5.5 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
3 S, d, Q% j# g( t, ]' E2 x5 a
   6.0.0.0/32 is subnetted, 1 subnets ) D+ r3 y/ J9 d% M1 f3 F
R       6.6.6.6 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0 & m* h) X$ x+ E
   7.0.0.0/32 is subnetted, 1 subnets ) M! ?; o" @( ^7 G7 r
C       7.7.7.7 is directly connected, Loopback0
( ^1 M- s* R5 P' E  F! C
   10.0.0.0/24 is subnetted, 1 subnets
2 x# \# f$ @+ p7 Y* D+ h6 C
R       10.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
4 o# M0 O; r/ k* j7 l
   11.0.0.0/24 is subnetted, 1 subnets 3 F* G% X) M, w
R       11.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0 - t: p, K6 u) E# a. Y: t
   31.0.0.0/24 is subnetted, 1 subnets
7 P' V4 Z0 i" p5 ?6 ~! M7 ^5 B
R       31.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
2 _$ g2 ]% c9 G: F) Q
   30.0.0.0/24 is subnetted, 1 subnets ( l  W% w) {$ |5 Z; w6 N) b# K6 x/ Y
R       30.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
3 t/ O6 R+ B* j: n: _
  t! ]/ ?3 B% k! @% S+ A) A
//可以看到R7也学到了OSPF自治系统的路由信息。
: d( H' j* }5 P: p& ^6 L; B
您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

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

GMT+8, 2025-5-26 02:20 , Processed in 0.103396 second(s), 23 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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