一:实验背景: # }- p6 Z K: B. f/ R
2 u& G' D9 `% y0 C- ~ b东天公司的规模越来越大,网络也越来越复杂,公司吞并了一个小公司,但是和这个公司网络合并时,却无法直接接入OSPF的骨干区域,网络条目也越来越多. 7 ^0 D7 _. B! s7 h# d
为了减少路由条目的数目,要求对路由条目进行汇总.
+ }3 B! O; n4 g( N2 o8 A$ m( m/ G) N$ e
二:实验目的:
5 Y% l) O$ E7 |. M# n4 U+ y% S, X! ^7 C( V5 g+ [9 D/ b& y
1:通过虚链路实现Area 3与骨干区域的相连 - s; j" b2 z+ ^. m+ M* t. T
2:分别实现路由汇总(区域内路由汇总和外部路由汇总),实现路由汇总后查看路由条目. Z! P2 K' u8 s7 z2 c* }# G' I
3:实现全网络的路由.
: X* T I9 W, r B" r+ _5 d5 F0 l+ a7 k, e+ d2 G) S0 {6 W$ z
三:实验拓扑
3 p7 j `! `: R% b) U; j! q. c) _一:实验背景: - L- R0 ?1 O5 A! Q
0 J" ^$ U6 L1 ?5 _& f( H东天公司的规模越来越大,网络也越来越复杂,公司吞并了一个小公司,但是和这个公司网络合并时,却无法直接接入OSPF的骨干区域,网络条目也越来越多. / l$ J, H1 `) k* t6 Z* X, j
为了减少路由条目的数目,要求对路由条目进行汇总.
8 D$ F+ v9 O1 _: t. F! l
) x7 `, q# E; q% A9 e2 u3 g; z8 K$ @二:实验目的:
. A# b! t- d1 y, ~: @# j3 _; e) j/ K
6 f2 T3 b" H( W: f! V1:通过虚链路实现Area 3与骨干区域的相连
2 w( {8 b. }. E* f2:分别实现路由汇总(区域内路由汇总和外部路由汇总),实现路由汇总后查看路由条目.
4 j5 x+ L! I0 {7 c/ }& |3:实现全网络的路由.
) ?- H# f, c: l t G, F# F9 m0 m- J& {
三:实验拓扑
1 }- W! h0 E: T: W }, a! {5 x : q1 `) J) a/ i+ b# U6 W
[img]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/STOBJ0%60P]~~%60[]DXAI%7BGS0G.jpg[/img] ' R' D$ j9 u% ]) {( H
8 ~9 S1 d8 z) J L; ^
三:实验步骤: 2 u( l: ?" T1 K. Q' r8 r' Z
1:先配置多区域的OSPF,打通全网路由,注意,发布环回接口.
* `5 n( J6 B! a7 ]3 w5 F% D7 W 2:区域3无法与骨干区域直接相连,所以先用虚链路连接到骨干区域。
4 n# c x) `# G2 P3 }2 Z2 O, { 3:将外部路由重新发布到ospf. * }; |$ O% {& Z6 Y0 b7 T
4: 配置NSSA和Totally Stubby区域.
. f* j( i* K+ y* r4 v7 j. F$ c 5: 在ASBR和ABR上分别做路由汇总.(在R3和R2上用环回接口模拟几个网段,做汇总) % @% k* U6 i+ F! U) p' O
说明实验现象. " Y- v/ O% J8 L' Y
实验步骤:
+ @: z2 A5 S+ Q3 B c1、基本配置,配置接口IP及环回接口IP
; ?5 x0 f% Y: G" |. IR1(config)#inter loo 0
# t1 `/ X: q; W) f. R) hR1(config-if)#ip add 1.1.1.1 255.255.255.255
" u! J5 p0 U5 U M: ` yR1(config-if)#interface f0/0
$ U8 P5 W5 M. k8 x" _2 r$ OR1(config-if)#no shut 1 B$ D( W; C- u9 G2 S1 F! \
R1(config-if)#ip add 10.1.1.1 255.255.255.0 # D! v; R, \* H2 d3 t: P
R1(config-if)#interface f1/0 ' J6 o" i6 Z( s/ f; a& G
R1(config-if)#no shut 4 [8 Y. W5 I# \! U0 {
R1(config-if)#ip add 11.1.1.1 255.255.255.0 & c0 [9 T, B: R- h' q
! k0 H, l1 k; U4 F: ~
1 a6 z% ~ q3 n. E& P* \' ~
) ?- {) D. } Z% O8 H2 oR2(config)#interface loo 0
$ `7 }; G9 V1 A6 _R2(config-if)#ip add 2.2.2.2 255.255.255.255 8 u0 H% r- d1 E. J- V# P3 b* e
R2(config-if)#interface f0/0
7 [$ Y* C' N5 ~: v8 v$ lR2(config-if)#no shut ) ^$ z2 K$ M* E/ P
R2(config-if)#ip add 10.1.1.2 255.255.255.0
) M B/ N) g5 Y0 x# qR2(config-if)#no shut
, U( g8 h/ m& j' M3 _; z. vR2(config-if)#interface f1/0 ; H( O$ @' w/ @' z9 X
R2(config-if)#no shut 8 Z: F( e+ Q: }/ c8 s+ q' |0 a. F4 S! e
R2(config-if)#ip add 20.1.1.1 255.255.255.0 3 X# W5 k' A3 ~; c
/ ~7 c6 S# B' {, O) S6 S
! H& D' w1 e1 d3 C* y& l6 C$ `
& T- ]5 n- p( h9 |5 ~0 SR3(config)#interface loo 0
; y6 P U/ j" ER3(config-if)#ip add 3.3.3.3 255.255.255.255 + D* h& m* a2 D7 W7 x C, ^
R3(config-if)#interface f0/0 ( n/ L( e$ M" {: Y+ ?# a4 [
R3(config-if)#no shut
2 D+ i) G4 M/ U5 q( ^8 X, M( ]R3(config-if)#ip add 21.1.1.1 255.255.255.0 3 m/ p5 d1 L7 {& P$ w' b4 n, {& Z: e
R3(config-if)#interface f1/0 9 Q3 F. Y! {; B) n: N
R3(config-if)#no shut ) x; _# @) ?' _- x
R3(config-if)#ip add 20.1.1.2 255.255.255.0
9 I% s. I0 x0 m- E. Z# e
0 G7 f. P% j* h* r- N# Q$ i" R0 i! {7 x( x1 y9 ?
R4(config)#interface loo 0 , A0 S$ a8 }$ H J/ u) y0 D7 @
R4(config-if)#ip add 4.4.4.4 255.255.255.255
# p# u* B% |( mR4(config-if)#interface f0/0 r4 f* f) ~4 P b* P+ ^5 Y: Q
R4(config-if)#no shut
4 n- d( C5 ^/ {7 `, e) ^R4(config-if)#ip add 30.1.1.1 255.255.255.0 / i5 h8 `$ ]" B5 X7 l* v
R4(config-if)#interface f1/0
2 M- P. Y# s1 p' ]# P, @R4(config-if)#no shut
W6 a$ Q% d: x6 Q. P& I5 Y2 RR4(config-if)#ip add 11.1.1.2 255.255.255.0 - _( E7 q: n0 Q! y% ~1 ]
5 z1 h, T/ h# [
: r- S) P) p5 ^! B6 V0 f- KR5(config)#interface loo 0
# n2 c4 ?8 K2 `3 }R5(config-if)#ip add 5.5.5.5 255.255.255.255 1 w1 y9 S6 z% V! G: v% F* O$ v
R5(config-if)#interface f0/0 ! Y; v8 [4 s! w2 O+ J
R5(config-if)#no shut 2 g) L7 I+ K) [1 E2 v2 _) R# Y0 R
R5(config-if)#ip add 30.1.1.2 255.255.255.0
; m- M: z$ U _R5(config-if)#interface f1/0 & K* t H R4 u M# v# l+ M3 Y$ m! Q
R5(config-if)#no shut ' T1 b8 [# C) J0 M
R5(config-if)#ip add 31.1.1.1 255.255.255.0
. M7 K2 x1 V4 S& N e$ t0 F
/ ^ q, F) T5 A* v$ A# C8 n4 x5 O# K' w; w( w/ m" j
7 |: n' n5 \3 y' k2 @+ N0 I( R; S/ V
* `0 Q/ M/ e9 J. M4 [5 j
R6(config-if)#interface loo 0
! W9 P- r' ~, u' Z* d+ zR6(config-if)#ip add 6.6.6.6 255.255.255.255 " E3 Z4 i k K# p
R6(config-if)#interface f1/0
. P4 }. N) i! |2 W8 {2 XR6(config-if)#ip add 31.1.1.2 255.255.255.0 * R8 l I, ?9 O9 B
R6(config-if)#no shut
# V% D! ?$ u) g) N) y" D
+ S+ L* X/ M2 J) y' P ~' ]
# {; K/ @- ^1 y* zR7(config)#interface loo 0 / w" v: A* b( |+ ~ k2 }- E
R7(config-if)#ip add 7.7.7.7 255.255.255.255 * b/ \- L' q6 T; _& T P- F) z. a
R7(config-if)#interface f0/0 : e! l6 R( @5 @: k) [
R7(config-if)#no shut - G& z( X* j) V4 X
R7(config-if)#ip add 21.1.1.2 255.255.255.0
; p' P" {. q' ]$ t
- Z3 F& i) B) N* pR4#ping 30.1.1.2
. U N8 E9 w. q/ |' V7 R' N, x# eType escape sequence to abort.
% V/ u0 k8 C6 s2 [Sending 5, 100-byte ICMP Echos to 30.1.1.2, timeout is 2 seconds:
% H% h) c# i2 X+ a9 ]. R6 L.!!!! " |( j3 j6 s. y8 p" }; z. `6 l% D
//现在相邻的设备之间已经可以Ping 通了
$ q# L U- i4 x( L9 P) x9 k+ ]7 {" G. H, P
2、打通全网路由
2 D, m3 Q$ p7 u* Q# W4 z3 e. SR1(config)#router os 110 y% |/ Q7 Z' W& t+ i. t) x# c5 I
R1(config-router)#network 1.1.1.1 0.0.0.0 area 0
1 i* f! g. @" `7 }& D( [R1(config-router)#network 10.1.1.0 0.0.0.255 ar 0 . W! J7 k* ~2 c Q8 X
R1(config-router)#network 11.1.1.0 0.0.0.255 ar 0 " T" p9 l" m. p+ G6 L+ {
2 l! K' M+ I& ^9 i1 `7 ]
R2(config)#router os 110
. t; ^* t g1 o& X2 E+ cR2(config-router)#network 2.2.2.2 0.0.0.0 ar 0 * s2 [ Q) M2 b3 y1 v) h
R2(config-router)#network 10.1.1.0 0.0.0.255 ar 0
; r* i, \8 T. Q5 Y2 v6 u8 i) sR2(config-router)#network 20.1.1.0 0.0.0.255 ar 1 Z6 E( ]! ^7 A8 [' d
R2(config-router)#network 20.1.1.0 0.0.0.255 ar 1
) w5 _. Q2 K4 U9 O' f+ `' z
, ^6 d; F! h* }R3(config)#router os 110 ( e4 ~, G1 ]6 [* U
R3(config-router)#network 3.3.3.3 0.0.0.0 ar 1 ) z8 T) w: B* a# d
R3(config-router)#network 20.1.1.0 0.0.0.255 ar 1 : e. i7 d) g W/ I! @) n) ]* D/ f
R3(config-router)#exit
1 `+ v& l0 q1 l* \R3(config)#router rip //R3为ASBR,连接两个不同的自治系统。 - H, p V- L$ F) _: X J
R3(config-router)#version 2 , g7 b' A2 Z8 v6 C9 w
R3(config-router)#no auto-summary
; B, p3 B' m# zR3(config-router)#network 21.1.1.0 1 T0 ^6 B: p) @ Y' T# Y
* Z0 m4 J" F% z U5 J3 H; [/ m
! x3 K T, \6 d) d. O; E
) t- ^! x) B; F) e2 e" Q
/ a. {% P( F2 [
) \7 V3 L* i! Q) HR4(config)#router os 110
- @& r) H. l( p, Z% k( p1 UR4(config-router)#network 4.4.4.4 0.0.0.0 ar 0 & \, o2 D* v8 G8 ]
R4(config-router)#network 11.1.1.0 0.0.0.255 ar 0 . U6 H( X/ ?! G" H o- L
R4(config-router)#network 30.1.1.0 0.0.0.255 ar 2 # Z! e8 U9 s) A" D/ l6 e
* Y4 M2 n0 @; Q. v6 W/ m% d6 J, i' C; w4 f
R5(config)#router os 110
( @2 y; S- K1 ^ M1 @& BR5(config-router)#network 5.5.5.5 0.0.0.0 ar 2
: ]8 b( J: z# @6 ~# cR5(config-router)#network 30.1.1.0 0.0.0.255 ar 2 ) ~* t" |! j2 W0 X
R5(config-router)#network 31.1.1.0 0.0.0.255 ar 3 6 [, E7 i3 b7 e* I, X* B
7 Q3 N* u1 z- G$ G) V5 W% D t9 Y
4 x6 \. F# S2 U% IR6(config)#router os 110 - l& Q+ m; J8 d# w& N
R6(config-router)#network 6.6.6.6 0.0.0.0 ar 3 6 T; j* Y3 d* |3 A4 A! \6 }$ b; L0 Q
R6(config-router)#network 31.1.1.0 0.0.0.255 ar 3
: Z3 @$ l. Y: s& X% u
$ x# c; |5 ^: @' o1 h; V+ @- H7 W6 O/ }7 p7 o
R7(config)#router rip
{7 V( U3 Y& |R7(config-router)#version 2
2 p9 {6 R9 h' x- D7 |" d* p8 HR7(config-router)#no auto-summary & N" i" s4 n# T4 s- {- Y6 g
R7(config-router)#network 7.7.7.7
/ O, |. E) O7 A" W6 ?R7(config-router)#network 21.1.1.0
( f2 G$ f4 Q* v, o- Q l& e- @. \2 f+ E0 A
R4#show ip route 3 Z- v, z( h! ], s2 F0 _
1.0.0.0/32 is subnetted, 1 subnets 3 ~0 Y; g' Z( {' f& ]7 R7 y
O 1.1.1.1 [110/2] via 11.1.1.1, 00:04:41, FastEthernet1/0 6 b% L1 u5 e; J& K! i' q
2.0.0.0/32 is subnetted, 1 subnets
4 H' |/ }* {! c; n3 ^ J' W+ x, ^O 2.2.2.2 [110/3] via 11.1.1.1, 00:04:41, FastEthernet1/0
( Y y/ ]. ]$ E2 Y2 w% I0 V$ l 3.0.0.0/32 is subnetted, 1 subnets
- ^4 T' u6 u4 |; tO IA 3.3.3.3 [110/4] via 11.1.1.1, 00:03:25, FastEthernet1/0
- G3 H! b, ^* h: U' X! N7 I 4.0.0.0/32 is subnetted, 1 subnets 7 u$ [0 B& N, O9 E; S
C 4.4.4.4 is directly connected, Loopback0 $ s! D9 t- w: i# n; Z0 o! r
20.0.0.0/24 is subnetted, 1 subnets
( Z/ j+ ~9 w3 u" O# H1 F1 TO IA 20.1.1.0 [110/3] via 11.1.1.1, 00:03:25, FastEthernet1/0 # j+ N0 i$ V, I
5.0.0.0/32 is subnetted, 1 subnets
% L4 m* a' O$ Y" J5 }" t4 wO 5.5.5.5 [110/2] via 30.1.1.2, 00:03:25, FastEthernet0/0
+ d4 v9 C+ s7 O6 {) ^9 a9 A5 L 10.0.0.0/24 is subnetted, 1 subnets % ~3 D/ }8 Q6 e; R9 j
O 10.1.1.0 [110/2] via 11.1.1.1, 00:04:43, FastEthernet1/0
" D4 I9 \* b2 V2 }6 T" z 11.0.0.0/24 is subnetted, 1 subnets $ o; i* K: g! P
C 11.1.1.0 is directly connected, FastEthernet1/0
8 G' B" N: A/ b4 X. H% z% b 30.0.0.0/24 is subnetted, 1 subnets / k0 W" x1 |$ L1 W& H) r+ Z1 f
C 30.1.1.0 is directly connected, FastEthernet0/0 ! |, t8 N$ u. I3 W' F1 }
3 C. ?7 S+ x( S- k5 h//查看R4的路由表可以看出R4学到了本区域的及其它OSPF区域的路由信息,但是没有Area 3 以及RIP自治系统的路由信息,这是因为Area 3 没有和骨干区域直连,RIP和OSPF属于不同的自治系统,不能直接学习路由信息。
% u0 O# `" L) y- T# K2 c9 c, Q; @' \6 Z1 c" V
3、配置虚链路
& B2 w K1 H7 o% P6 n; tR4(config)#router os 110 & f9 F7 s. t6 H% x: U
R4(config-router)#area 2 virtual-link 5.5.5.5
- L1 d4 L! y7 S9 T& E. f- b4 p/ m ^$ m/ ]
R5(config)#router os 110 ) I) |/ A$ I3 _6 Y& I( V( s
R5(config-router)#area 2 virtual-link 4.4.4.4
" j, Q4 V% o0 \- T( i6 S/ Q4 y
" b c: i% h( J. P2 U再次查看R4的路由表 . \' P' H) |: q8 g2 {. a( L
3 ^9 P: S/ }% d8 i# ]( k
R4#show ip route
\# |3 C. X9 k' m( H' q 1.0.0.0/32 is subnetted, 1 subnets % X# s+ X; G I( C# k
O 1.1.1.1 [110/2] via 11.1.1.1, 00:00:24, FastEthernet1/0 " Z9 |( h S0 a# Q
2.0.0.0/32 is subnetted, 1 subnets
" o, G9 C. x, ^- IO 2.2.2.2 [110/3] via 11.1.1.1, 00:00:24, FastEthernet1/0 9 V- s4 m) Q) a7 b6 \# }- B8 I
3.0.0.0/32 is subnetted, 1 subnets
5 _! M1 O% m3 W# o1 V8 f0 BO IA 3.3.3.3 [110/4] via 11.1.1.1, 00:00:24, FastEthernet1/0
+ y* ]% ^! e7 a' q5 K" }4 l 4.0.0.0/32 is subnetted, 1 subnets " S) Z4 T8 K+ `8 R/ W& O
C 4.4.4.4 is directly connected, Loopback0
3 w$ z w$ g( M+ j0 G 20.0.0.0/24 is subnetted, 1 subnets 1 ~( O4 c1 B! L% p( g ~
O IA 20.1.1.0 [110/3] via 11.1.1.1, 00:00:24, FastEthernet1/0 3 {1 w$ i" c2 {+ O1 W7 `
5.0.0.0/32 is subnetted, 1 subnets
- ?' L' u5 c9 CO 5.5.5.5 [110/2] via 30.1.1.2, 00:00:24, FastEthernet0/0
O* Q2 F% Z9 w( A/ Z 6.0.0.0/32 is subnetted, 1 subnets
' T& P- t; Q2 p/ U1 e* b9 K- C) ZO IA 6.6.6.6 [110/3] via 30.1.1.2, 00:00:27, FastEthernet0/0 0 a0 D# P1 a7 L1 D# q
10.0.0.0/24 is subnetted, 1 subnets
5 D0 d. ^2 c0 t5 T( O: m0 dO 10.1.1.0 [110/2] via 11.1.1.1, 00:00:27, FastEthernet1/0
( ~/ F# X# ?' o4 i Q 11.0.0.0/24 is subnetted, 1 subnets
! w) e! y5 a& F uC 11.1.1.0 is directly connected, FastEthernet1/0
+ _0 r$ W: J% X2 `( v# Z5 Z 31.0.0.0/24 is subnetted, 1 subnets
0 Z4 C8 X& g( Z# xO IA 31.1.1.0 [110/2] via 30.1.1.2, 00:00:27, FastEthernet0/0 4 p, S9 U$ ?1 b: @6 o. S) j) |% l
30.0.0.0/24 is subnetted, 1 subnets
% j0 i* k3 V1 Y" f" J; |6 FC 30.1.1.0 is directly connected, FastEthernet0/0 / x7 r Y" q x0 |& @1 @
2 k$ f) F) B7 f2 s" x2 L8 j& Z, p
; V2 ]2 g+ S7 ^- t+ c; }
//可以看到,添加完虚链路之后,就可以学习到Area 3的链路信息了,但是还是没有RIP路由协议的路由信息. ! i) y* @* \" r, O& S0 Q
- F) q7 E Q6 w, J
J0 z6 G- }$ c7 B1 z$ P! F4 T& u# G7 N/ H A
5 w- d' a$ v$ }5 W2 B" p7 ~4 l \( u3 Q
4、重分发 ) u+ ?, [( T+ X0 k/ g
R3(config-router)#router os 110
6 {) D( n2 n) X# ~ |- wR3(config-router)#redistribute rip metric 100 subnets * g- b* j$ n. C8 i$ k+ J
R3(config-router)#router rip - L U9 e" s/ g0 t% `% G
R3(config-router)#redistribute os 110 metric 1
R: G/ P9 A: h, s& }% n' w3 y
4 @: v/ F) x4 e//再次查看R4的路由表 8 ~7 v1 s3 S1 V" r
6 P+ X4 A3 O4 T2 ^3 ]+ ]
R4#show ip route
# [ J0 J g! l6 E+ \* O' P 1.0.0.0/32 is subnetted, 1 subnets : _1 z4 w9 [3 y4 I% V# l
O 1.1.1.1 [110/2] via 11.1.1.1, 00:14:37, FastEthernet1/0
2 Y" P/ F. |9 G6 w 2.0.0.0/32 is subnetted, 1 subnets
7 g8 [* L; [4 H- B2 X2 \- O- fO 2.2.2.2 [110/3] via 11.1.1.1, 00:14:37, FastEthernet1/0 & S! p1 E$ q' Y
3.0.0.0/32 is subnetted, 1 subnets / V5 F. I5 U/ o8 u
O IA 3.3.3.3 [110/4] via 11.1.1.1, 00:14:37, FastEthernet1/0
; h1 H3 x* J! { [" U! s 4.0.0.0/32 is subnetted, 1 subnets , [; u3 |1 a! ]) \ j
C 4.4.4.4 is directly connected, Loopback0 - k4 L K+ A8 t4 a- V
21.0.0.0/24 is subnetted, 1 subnets # o2 l3 g1 P" w1 n
O E2 21.1.1.0 [110/100] via 11.1.1.1, 00:06:11, FastEthernet1/0 4 Z J, T: L4 [2 c5 R7 W* f$ }
20.0.0.0/24 is subnetted, 1 subnets 3 t. u% O6 m2 g5 _# q
O IA 20.1.1.0 [110/3] via 11.1.1.1, 00:14:37, FastEthernet1/0
* M) z+ W# m: h: N( u7 Y. [ r 5.0.0.0/32 is subnetted, 1 subnets 7 r- ^! C" a% Z) N( P5 u# g
O 5.5.5.5 [110/2] via 30.1.1.2, 00:14:38, FastEthernet0/0 & ?4 c: O1 F6 Z2 @
6.0.0.0/32 is subnetted, 1 subnets * @9 h0 P! P8 a( _/ T! J4 W
O IA 6.6.6.6 [110/3] via 30.1.1.2, 00:14:38, FastEthernet0/0 ! w8 o8 n, Z1 C/ d' a
7.0.0.0/32 is subnetted, 1 subnets 6 ~0 u3 y6 J. A4 w9 a5 ~% J. j" n
O E2 7.7.7.7 [110/100] via 11.1.1.1, 00:06:13, FastEthernet1/0
* r' x9 t' l F2 ?( @ 10.0.0.0/24 is subnetted, 1 subnets ! s7 i/ ~, i* |: p, t' e, z" s
O 10.1.1.0 [110/2] via 11.1.1.1, 00:14:38, FastEthernet1/0 % A* X' x: M0 G3 }* p* J' @0 l
11.0.0.0/24 is subnetted, 1 subnets
! C7 z7 r0 M; H2 |1 q0 i0 e! [C 11.1.1.0 is directly connected, FastEthernet1/0 7 I6 K# v( T* a$ R! ^. t9 A6 Q
31.0.0.0/24 is subnetted, 1 subnets
# _7 e6 {3 W6 YO IA 31.1.1.0 [110/2] via 30.1.1.2, 00:14:38, FastEthernet0/0
0 p, z+ W3 j3 n" G& k 30.0.0.0/24 is subnetted, 1 subnets
/ j, |6 K9 d: f% v( R' jC 30.1.1.0 is directly connected, FastEthernet0/0
/ l8 F# R# x( R5 p- a4 t7 @+ y
) T9 w2 } X* r& o( G! A3 Y. }7 Z" E. X* v. H
//可以看到现在R4上已经有了RIP路由协议的路由信息。
; G# ]9 S; k" a8 ?2 R
6 l% s# J3 L* Y2 e, I+ b( L; B0 G% K- P" P8 }) B1 u5 H% s
1 H, K6 A9 T3 g h. x! v( M( L6 W `. K3 i1 ~' u$ p3 n
# s- l8 A9 J4 c. g
( W* y4 w- D9 \+ ?1 U( [
查看R7的路由表 5 N$ ^- A2 l) g- C
; i0 a9 ]: d5 \8 w4 c$ J
R7(config-router)#do show ip route
% N3 o* u) M) h ?% u+ P6 }% O 1.0.0.0/32 is submitted, 1 subnets * j; {6 \2 X) A; `
R 1.1.1.1 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 ( }5 h( Y& C% o: y# h! f% f1 l
2.0.0.0/32 is subnetted, 1 subnets * J4 j& _" k! [# |+ m+ y& T+ {, T8 v
R 2.2.2.2 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0
4 t* ~, v+ u% W) f 3.0.0.0/32 is subnetted, 1 subnets 0 A( ?, u. X+ H; E/ k% F+ W. Z% @
R 3.3.3.3 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0
; ~) t/ ~+ ^ w$ i6 O. F1 G 4.0.0.0/32 is subnetted, 1 subnets , e( Z! c* N8 I3 G* w! z
R 4.4.4.4 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 # m* h& E% m4 n; u$ y/ G ~( V
21.0.0.0/24 is subnetted, 1 subnets
' H5 U: ^) K* [1 A1 uC 21.1.1.0 is directly connected, FastEthernet0/0
( {- o& V) F/ V: ~; W 20.0.0.0/24 is subnetted, 1 subnets 1 g% @# T2 s+ E
R 20.1.1.0 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0
* n) H H. I* w9 r5 w0 [# t) F" G4 u, O2 e 5.0.0.0/32 is subnetted, 1 subnets ) v. R* W- R8 S- \# z
R 5.5.5.5 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0 ) o5 g: E7 R# u8 S g/ o
6.0.0.0/32 is subnetted, 1 subnets
a5 c0 Z6 W. F8 [" `% XR 6.6.6.6 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
r& V+ X5 ]- z6 |. X! d8 a 7.0.0.0/32 is subnetted, 1 subnets 8 c4 l& L% w9 y6 y
C 7.7.7.7 is directly connected, Loopback0
9 s; I) `7 E. [ 10.0.0.0/24 is subnetted, 1 subnets
& `/ W1 c$ S2 @/ z1 ^3 ]R 10.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
# s' `, q. o/ w% Z9 K 11.0.0.0/24 is subnetted, 1 subnets . Z- H, x0 Z6 a- X" _
R 11.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0 2 V2 H3 F* h; u& G! t. h( i0 S
31.0.0.0/24 is subnetted, 1 subnets
: U- |6 y! J4 R: }+ {# zR 31.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
9 A$ I" }+ _; H- a 30.0.0.0/24 is subnetted, 1 subnets 6 D) j$ x) r' B; C6 b! l
R 30.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0 ; k! ^8 @, V+ `( C' q" K, D
9 d7 `" l& `- D8 C+ A
//可以看到R7也学到了OSPF自治系统的路由信息。 7 v8 c( H d d. D8 a; B
|