一:实验背景:
2 M/ N0 E: q1 ?1 N" `2 C$ o5 b5 o- [; X7 c
东天公司的规模越来越大,网络也越来越复杂,公司吞并了一个小公司,但是和这个公司网络合并时,却无法直接接入OSPF的骨干区域,网络条目也越来越多. ; q9 `3 R6 [# {* |# j7 ~: |4 G
为了减少路由条目的数目,要求对路由条目进行汇总.
+ `/ G& g F' L) E( Z4 D9 i1 J2 c0 }
二:实验目的:
3 ]- _/ _ S1 X3 X# u; g9 B5 O3 q/ F
1:通过虚链路实现Area 3与骨干区域的相连
8 |% n6 E g: \) j2:分别实现路由汇总(区域内路由汇总和外部路由汇总),实现路由汇总后查看路由条目. " Z. \7 _& J( N: J# }
3:实现全网络的路由.
1 u& E2 a: ~' S+ P
. {7 ?% B$ u% U- x三:实验拓扑
$ f# c9 L" S9 L3 d一:实验背景: 1 r# f+ D/ E" P1 j4 p
" ]) F% o4 H! D, G3 m. @+ V
东天公司的规模越来越大,网络也越来越复杂,公司吞并了一个小公司,但是和这个公司网络合并时,却无法直接接入OSPF的骨干区域,网络条目也越来越多. 3 Z* c2 l* k" ?) l8 W2 w7 R
为了减少路由条目的数目,要求对路由条目进行汇总.
0 K7 O) G( l/ O3 P0 V4 n; q4 C4 J0 a' r
! F! Y: g8 A0 y6 \二:实验目的: ( |0 p6 h0 E3 x, G9 _% o
0 U+ ~2 ?( C8 O3 \! N# K
1:通过虚链路实现Area 3与骨干区域的相连
3 ]# f7 o% p& Y ~2:分别实现路由汇总(区域内路由汇总和外部路由汇总),实现路由汇总后查看路由条目. / m( h- Z2 }2 H0 b" d& l
3:实现全网络的路由.
* m. F$ }2 ^# Q8 |' o! ^& t* ~8 P
7 Z, k) \6 ?8 U' t% i三:实验拓扑 $ h9 Q; N1 N+ ] X) v8 B. K
/ j1 u F6 K& r2 Z [img]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/STOBJ0%60P]~~%60[]DXAI%7BGS0G.jpg[/img] ' W/ |; i* ^1 T: B. S# v6 v
W& W+ Q8 ~3 _8 \" |1 M( r三:实验步骤: ( z1 E5 F$ ^. H# b$ R& C* \0 a/ W
1:先配置多区域的OSPF,打通全网路由,注意,发布环回接口. , y7 y2 ]3 K5 b
2:区域3无法与骨干区域直接相连,所以先用虚链路连接到骨干区域。 2 D/ y# p8 @% C3 l% P/ p% h
3:将外部路由重新发布到ospf.
! u- @* ^, g( i- V 4: 配置NSSA和Totally Stubby区域.
' [9 i% s4 Q/ W$ ]! _ I 5: 在ASBR和ABR上分别做路由汇总.(在R3和R2上用环回接口模拟几个网段,做汇总) 1 ^/ y' F; n5 w3 @! R
说明实验现象. % R$ }6 h7 o% I2 E* `% R k. |
实验步骤: 6 i& W- b# ?% o: {& N1 ~/ Z3 a& u1 l
1、基本配置,配置接口IP及环回接口IP
; c# X2 B" Q1 o3 M y# PR1(config)#inter loo 0
7 C1 a) Q, p; y7 ?6 SR1(config-if)#ip add 1.1.1.1 255.255.255.255
+ I) K5 s. k2 B0 w/ r* gR1(config-if)#interface f0/0
! Y3 I3 ` F C" f0 ^- o% I0 K' RR1(config-if)#no shut
" ?# `/ i4 Y% d, U/ J% NR1(config-if)#ip add 10.1.1.1 255.255.255.0 6 h, v2 X' P5 [% ^/ u6 s/ S
R1(config-if)#interface f1/0 9 x. }/ r# o( X8 ~. A2 M
R1(config-if)#no shut
# e2 y7 s7 q7 Q5 v/ BR1(config-if)#ip add 11.1.1.1 255.255.255.0 / A9 D x+ ~. g& V# _4 |! G& l
; b- `9 R2 V9 V$ R
# c6 f8 b9 b6 Q: i" J/ h7 T$ K
# S& _2 y" ?6 @: y) V6 A+ n
R2(config)#interface loo 0
& z- w4 L2 x6 g& u) dR2(config-if)#ip add 2.2.2.2 255.255.255.255 7 F- w$ X$ p6 b$ @1 x
R2(config-if)#interface f0/0 ) [; F) F- y0 E5 h( D
R2(config-if)#no shut
# s) W0 ?0 q9 h& F7 W2 C9 V: jR2(config-if)#ip add 10.1.1.2 255.255.255.0 + ?% X' }/ g( q+ d: i: K$ I
R2(config-if)#no shut , c, g! N' J$ L$ S5 A
R2(config-if)#interface f1/0
2 E3 Q7 [7 a, y' r: Z7 RR2(config-if)#no shut # ^# ]2 w7 r! |8 Q; s9 x
R2(config-if)#ip add 20.1.1.1 255.255.255.0 ! s0 J( [% y( |* p" g
! w% e4 ^4 T; W
, i0 u h. P$ i( [
' x" }1 w$ F- V9 [3 p+ e2 O+ NR3(config)#interface loo 0
& t6 ~" j* t8 D: @' @% p8 \R3(config-if)#ip add 3.3.3.3 255.255.255.255
+ O4 d& v4 ~- m6 r- c/ @) k. rR3(config-if)#interface f0/0
7 v& E$ e# B- ~R3(config-if)#no shut
2 q# |; e0 T: e4 }R3(config-if)#ip add 21.1.1.1 255.255.255.0 # e, |/ t, j3 t$ o# v
R3(config-if)#interface f1/0 ' s& _# M, U" u0 O4 ^) c
R3(config-if)#no shut
, b' C) i% P. F, \6 eR3(config-if)#ip add 20.1.1.2 255.255.255.0
5 t) X* U4 N3 M7 w+ b6 B8 q
: f9 Z$ Q( x3 r3 j; t" Y5 W+ e4 Y
R4(config)#interface loo 0
8 ^- a+ x! `: _( l/ h# C C sR4(config-if)#ip add 4.4.4.4 255.255.255.255
5 P& H3 z4 k% e/ x& wR4(config-if)#interface f0/0
' w, @, r6 _, E) ~, s. T. w6 IR4(config-if)#no shut
1 c/ M3 S/ L0 e9 q! N2 j6 l% YR4(config-if)#ip add 30.1.1.1 255.255.255.0 3 [- H7 @$ b3 N h; r
R4(config-if)#interface f1/0
& N2 W1 h* n- g8 KR4(config-if)#no shut
, T3 E7 R( v, qR4(config-if)#ip add 11.1.1.2 255.255.255.0
) Z- V, y* r- n8 `) [5 L5 i% D3 E1 ^9 I% X6 s f6 N
- D1 O* P3 L: Y0 G& c/ b oR5(config)#interface loo 0 1 q3 k6 ?% z& O
R5(config-if)#ip add 5.5.5.5 255.255.255.255 " m6 D; F' z8 _2 I2 X* {: V- u6 H
R5(config-if)#interface f0/0
. h% ~* {# x0 V; d' h. P8 MR5(config-if)#no shut
! ^1 M n% v* v* w& @& W( a9 O' iR5(config-if)#ip add 30.1.1.2 255.255.255.0
, D9 u1 O0 |* m6 w6 iR5(config-if)#interface f1/0
0 G: @9 I1 x. Z3 mR5(config-if)#no shut
$ b: x6 C( J" |! lR5(config-if)#ip add 31.1.1.1 255.255.255.0
: j" d' |5 h0 s" f: u7 C
W7 ~ U) a% a+ V: z/ J/ E6 r( g" R0 e4 ?" p
: |; `0 q9 T. M8 G# T3 l p3 c0 L8 S$ n) w
R6(config-if)#interface loo 0
' I8 G2 M6 D% d- i) vR6(config-if)#ip add 6.6.6.6 255.255.255.255 4 x2 `: ~ W+ A5 U9 `9 E3 o+ Z
R6(config-if)#interface f1/0 8 f0 |& ~' g4 G& ~1 v7 k
R6(config-if)#ip add 31.1.1.2 255.255.255.0 6 Z8 f, w0 E; U6 u. N. T% ?
R6(config-if)#no shut 1 ], v# [0 |0 r# I3 t& u; p# L
- J) D& u8 o) K
+ @! B% O _3 KR7(config)#interface loo 0
# ]" g0 Y3 O$ ~5 pR7(config-if)#ip add 7.7.7.7 255.255.255.255
7 x, K/ }" _0 F9 G. PR7(config-if)#interface f0/0 6 D, g3 q: }4 R6 A( m; j
R7(config-if)#no shut 3 v! \( ^4 i+ L, Z; E" ]( E
R7(config-if)#ip add 21.1.1.2 255.255.255.0 $ y. r0 V! R% m% B: K4 P
9 N) p5 n7 K) c5 a: v X% E. K3 {! `R4#ping 30.1.1.2
# t6 `% O/ G1 w( W- AType escape sequence to abort. 9 q! k& m' C9 K( L4 I! T
Sending 5, 100-byte ICMP Echos to 30.1.1.2, timeout is 2 seconds:
) g8 u! g" h \.!!!!
! Q+ a2 m: U4 \( {' H; Y//现在相邻的设备之间已经可以Ping 通了
8 d6 G* p; h) P/ `) y5 H; W
+ s% k, p1 {7 y( `( d5 N* L' a0 Y3 ]2、打通全网路由
) Z" [! m# P [, _& C* j+ Q0 |R1(config)#router os 110
1 j: C- A; D6 aR1(config-router)#network 1.1.1.1 0.0.0.0 area 0 ' T, D8 l& G" N8 B
R1(config-router)#network 10.1.1.0 0.0.0.255 ar 0 : l7 y; v) ~: \; S5 j
R1(config-router)#network 11.1.1.0 0.0.0.255 ar 0
# O0 v2 v- [/ B$ K7 G0 b
5 R+ }0 n# }3 ~0 {; VR2(config)#router os 110 + {. d& A; N7 a! ]7 g/ y. U
R2(config-router)#network 2.2.2.2 0.0.0.0 ar 0
/ u) G8 M1 Z; zR2(config-router)#network 10.1.1.0 0.0.0.255 ar 0 $ p) e3 i' S/ W7 w! q2 M0 ?. x x; _
R2(config-router)#network 20.1.1.0 0.0.0.255 ar
6 |4 S( Z' t5 Z9 f" F9 q2 [R2(config-router)#network 20.1.1.0 0.0.0.255 ar 1 w: S8 P) `* K G0 h" n) ~/ h" L
& N1 u8 I. a6 F& R4 DR3(config)#router os 110
c* J9 v- Y& k! p$ G* W4 [R3(config-router)#network 3.3.3.3 0.0.0.0 ar 1 1 r& g: F+ t$ o$ D
R3(config-router)#network 20.1.1.0 0.0.0.255 ar 1
! }* @+ g- I8 ~) m4 ]R3(config-router)#exit & g1 c w, t* v8 M
R3(config)#router rip //R3为ASBR,连接两个不同的自治系统。
! h! S8 R: A4 ]' TR3(config-router)#version 2 ) m, u2 W6 y$ o6 v; h$ C: }; x
R3(config-router)#no auto-summary * D5 ?' p- O1 D6 T
R3(config-router)#network 21.1.1.0
3 p: v m! Z5 |, z: E/ a* A
. Y1 G7 Y3 b. C0 u
1 i9 ~8 W, o$ Y$ u6 i4 K0 F
8 z, a) R' b0 {/ x
! u6 R# K4 d% U* k+ y, \: N" }! s2 U0 e9 ? b# k
R4(config)#router os 110 9 c) _% I8 k. M% J8 X
R4(config-router)#network 4.4.4.4 0.0.0.0 ar 0 " v( f( t; d' c7 [
R4(config-router)#network 11.1.1.0 0.0.0.255 ar 0 4 k# d* n% ?: ^- A( d. i
R4(config-router)#network 30.1.1.0 0.0.0.255 ar 2
1 X/ N% p+ x/ r3 d& _( Y, ]3 B4 e' D/ c u# s
; d; v* P9 \- x2 o+ r |R5(config)#router os 110
* C. E" K3 t+ K2 P$ x& ?1 TR5(config-router)#network 5.5.5.5 0.0.0.0 ar 2
! h& t/ Z \6 [0 f0 kR5(config-router)#network 30.1.1.0 0.0.0.255 ar 2
9 b# E; B3 G6 y6 T( p/ vR5(config-router)#network 31.1.1.0 0.0.0.255 ar 3 8 m" d$ X: z4 ^0 u3 {5 e- X
1 g0 \& g$ ?9 O" P7 H/ q& R) i7 |: {+ F* M; X
R6(config)#router os 110 , F" \ n% S0 f$ a
R6(config-router)#network 6.6.6.6 0.0.0.0 ar 3
' G. E) }' @ [+ iR6(config-router)#network 31.1.1.0 0.0.0.255 ar 3
1 _. b, @, W8 t, Z' A2 R3 R! }1 ]. P3 F
~& d+ H% i1 c' p5 t
R7(config)#router rip
1 s, K* ?! f& l/ a6 W/ A5 sR7(config-router)#version 2 3 W6 W) R$ I) S9 |
R7(config-router)#no auto-summary
3 J( J8 _% Z$ ?R7(config-router)#network 7.7.7.7
4 _2 f3 L0 W8 a4 `3 c5 gR7(config-router)#network 21.1.1.0 r+ g3 a+ ?- G& y8 l
5 r, e3 S, d5 r% ~- Z# G' Z4 |
R4#show ip route
' q" e6 ~! I3 R. D1 K0 G 1.0.0.0/32 is subnetted, 1 subnets
g ^9 T+ C1 C+ _5 t! H# wO 1.1.1.1 [110/2] via 11.1.1.1, 00:04:41, FastEthernet1/0
; r" x& {+ X) w: J( } 2.0.0.0/32 is subnetted, 1 subnets 5 x$ M5 P: W% U$ L W$ N( l& z
O 2.2.2.2 [110/3] via 11.1.1.1, 00:04:41, FastEthernet1/0
H! t5 r! A+ \6 e* c9 s 3.0.0.0/32 is subnetted, 1 subnets
" W+ i* e( u' KO IA 3.3.3.3 [110/4] via 11.1.1.1, 00:03:25, FastEthernet1/0
5 l3 ?) q$ ^6 u. V7 ?9 Z( P 4.0.0.0/32 is subnetted, 1 subnets
+ L1 N3 z H$ Q R, I% H( }C 4.4.4.4 is directly connected, Loopback0 ( d- r2 [/ y* n% e
20.0.0.0/24 is subnetted, 1 subnets * q! s$ L. _& N+ q( D# I
O IA 20.1.1.0 [110/3] via 11.1.1.1, 00:03:25, FastEthernet1/0 1 {2 p# n( M1 z9 j) B6 ~% A* E% \
5.0.0.0/32 is subnetted, 1 subnets
! J# h. W: f/ k( \5 Y2 n/ P1 T5 f: KO 5.5.5.5 [110/2] via 30.1.1.2, 00:03:25, FastEthernet0/0 8 ]. |! T ?! B6 X ]- ]( o
10.0.0.0/24 is subnetted, 1 subnets , ]1 p2 D3 z0 h9 O3 g) x& C& t
O 10.1.1.0 [110/2] via 11.1.1.1, 00:04:43, FastEthernet1/0
1 `! @! u6 l2 _" v- @ 11.0.0.0/24 is subnetted, 1 subnets ; u5 t/ s% }! E# O% l
C 11.1.1.0 is directly connected, FastEthernet1/0 * T( {4 n% G- e% S( d8 z$ K0 y
30.0.0.0/24 is subnetted, 1 subnets 3 Z. P& r9 y" N! ?; W6 L. ~
C 30.1.1.0 is directly connected, FastEthernet0/0
" ?7 N( ~5 `% W, g1 E
5 _0 K1 |$ L) }: L# D: g! }5 o//查看R4的路由表可以看出R4学到了本区域的及其它OSPF区域的路由信息,但是没有Area 3 以及RIP自治系统的路由信息,这是因为Area 3 没有和骨干区域直连,RIP和OSPF属于不同的自治系统,不能直接学习路由信息。
& e; k1 X% ^. j! Z* ~1 b" M- C$ M- u8 i$ t- {) _1 y( L% D
3、配置虚链路 5 y3 ?6 P: E- U+ q
R4(config)#router os 110 + r% H0 P$ N7 a4 _! ^9 M4 `
R4(config-router)#area 2 virtual-link 5.5.5.5
( |$ z3 [& X b+ _! b) y/ u' `# n; J; o! R1 q7 R. S5 s
R5(config)#router os 110
( |' J6 s+ f3 p! ZR5(config-router)#area 2 virtual-link 4.4.4.4 ; a$ G2 N4 W& l% B- W, g
5 g% u( G o T ^
再次查看R4的路由表 5 q1 U, V1 r! p/ f( @6 ^ `0 d
; Z4 |3 t- A, x& B9 J$ dR4#show ip route
3 c; O3 l* v! h* ~! @- F 1.0.0.0/32 is subnetted, 1 subnets
- g2 C( B8 q6 b, X) ?7 fO 1.1.1.1 [110/2] via 11.1.1.1, 00:00:24, FastEthernet1/0
# ?1 c6 A! b+ z2 N5 U. G, o 2.0.0.0/32 is subnetted, 1 subnets * J8 s* W8 r) |: s7 {+ M
O 2.2.2.2 [110/3] via 11.1.1.1, 00:00:24, FastEthernet1/0
: V: l; ?) M. ]6 ] 3.0.0.0/32 is subnetted, 1 subnets 9 I6 l) E8 V3 B9 Z Z. a! N1 j; F
O IA 3.3.3.3 [110/4] via 11.1.1.1, 00:00:24, FastEthernet1/0
3 m2 i' Z5 G, \8 p3 C 4.0.0.0/32 is subnetted, 1 subnets % h; Y7 F; z' N& a( y1 k
C 4.4.4.4 is directly connected, Loopback0 5 l3 d. M# W2 Q' y. }
20.0.0.0/24 is subnetted, 1 subnets
3 J0 F$ N9 t. R2 l( c. H6 b/ D9 ]O IA 20.1.1.0 [110/3] via 11.1.1.1, 00:00:24, FastEthernet1/0
% W" @$ U& X5 {' u; T 5.0.0.0/32 is subnetted, 1 subnets
) F7 [( }+ H# J; L$ Z6 G% xO 5.5.5.5 [110/2] via 30.1.1.2, 00:00:24, FastEthernet0/0
7 a. V& r5 t# @6 w0 W% [0 G 6.0.0.0/32 is subnetted, 1 subnets
- s- ~4 ?3 |, ~O IA 6.6.6.6 [110/3] via 30.1.1.2, 00:00:27, FastEthernet0/0
- t, X8 j- ^& b/ P" K 10.0.0.0/24 is subnetted, 1 subnets
5 R# i8 g4 A4 u) B& U$ vO 10.1.1.0 [110/2] via 11.1.1.1, 00:00:27, FastEthernet1/0
4 V* X- v- ^7 a2 o 11.0.0.0/24 is subnetted, 1 subnets 0 K$ N* n- p0 y6 n. u0 ]; d" X
C 11.1.1.0 is directly connected, FastEthernet1/0 ! N. i, }% {' T" P2 [
31.0.0.0/24 is subnetted, 1 subnets * v; G/ v8 X! L
O IA 31.1.1.0 [110/2] via 30.1.1.2, 00:00:27, FastEthernet0/0 " z: B" t5 Y4 D1 Z) F
30.0.0.0/24 is subnetted, 1 subnets - W, ?8 h' P5 z6 v1 e- V: i
C 30.1.1.0 is directly connected, FastEthernet0/0
* S, L) s* ?& x5 B- ~" N( s& j4 x
: N4 i" n# b- k# A
//可以看到,添加完虚链路之后,就可以学习到Area 3的链路信息了,但是还是没有RIP路由协议的路由信息. ! T5 O5 v L. }" q5 ]
! \; n. s; w" \3 K
' D) x) K3 S7 t: T+ I% }& U
* `) }6 j% S, U) H& q q& L
$ m& M# X4 `! z' {! E9 P d! M& U. }+ q8 X/ b" {. l" d; Z5 i$ I
4、重分发 , Q3 H/ }4 f$ X& ^! F9 q5 @
R3(config-router)#router os 110
! H m: S% [( P5 X/ RR3(config-router)#redistribute rip metric 100 subnets
9 P7 f s1 [$ s- cR3(config-router)#router rip
* ]# B. w6 a- v& a8 q; GR3(config-router)#redistribute os 110 metric 1 - D# x0 e3 B' k1 f5 j
; c( t" \. i! p% Q9 p5 J9 J3 r
//再次查看R4的路由表 : l1 G' k, m1 R. k$ I2 U' ~+ c
6 _, {- l) U+ N
R4#show ip route ! e3 V" r8 I( S" u; a# O
1.0.0.0/32 is subnetted, 1 subnets
) H# o2 a/ o8 m- `& w/ s9 E/ @. KO 1.1.1.1 [110/2] via 11.1.1.1, 00:14:37, FastEthernet1/0
" |) G* d2 D& \1 ~& }3 Y' y" O 2.0.0.0/32 is subnetted, 1 subnets
+ Q7 A& R9 v! ~+ C0 c: v3 KO 2.2.2.2 [110/3] via 11.1.1.1, 00:14:37, FastEthernet1/0
( S0 M2 Z2 p0 t% I+ o! x1 V 3.0.0.0/32 is subnetted, 1 subnets ( C2 m: x: _# p
O IA 3.3.3.3 [110/4] via 11.1.1.1, 00:14:37, FastEthernet1/0
# q/ @* A! H$ K% s' \% @ 4.0.0.0/32 is subnetted, 1 subnets
4 H2 s5 h3 t: F2 r- XC 4.4.4.4 is directly connected, Loopback0
4 v3 V/ w } ?7 ]( s/ ~ 21.0.0.0/24 is subnetted, 1 subnets 8 F4 I O" q$ o& u6 g
O E2 21.1.1.0 [110/100] via 11.1.1.1, 00:06:11, FastEthernet1/0
+ |+ _7 ~4 @ x& W 20.0.0.0/24 is subnetted, 1 subnets
. r" Q3 |2 w/ {1 [9 \O IA 20.1.1.0 [110/3] via 11.1.1.1, 00:14:37, FastEthernet1/0
6 V" C" D+ K1 Y# E: g- M 5.0.0.0/32 is subnetted, 1 subnets ( R& J: r6 t) g' Z
O 5.5.5.5 [110/2] via 30.1.1.2, 00:14:38, FastEthernet0/0 ; c* r W. ?- \: {" n. g
6.0.0.0/32 is subnetted, 1 subnets , ^6 F4 j+ s! v2 v* [" z
O IA 6.6.6.6 [110/3] via 30.1.1.2, 00:14:38, FastEthernet0/0 + B! k# _) f5 S0 X( Q7 J
7.0.0.0/32 is subnetted, 1 subnets
- @; ]+ f' Q5 O6 ~( l5 jO E2 7.7.7.7 [110/100] via 11.1.1.1, 00:06:13, FastEthernet1/0 - r" {2 F4 C0 `
10.0.0.0/24 is subnetted, 1 subnets 0 ~! k7 e: x9 c1 T- f2 p
O 10.1.1.0 [110/2] via 11.1.1.1, 00:14:38, FastEthernet1/0 2 j2 x; j5 T4 S9 @) W a+ N
11.0.0.0/24 is subnetted, 1 subnets & d( M8 \' c% l8 U8 ^0 A4 ?: c
C 11.1.1.0 is directly connected, FastEthernet1/0 : {3 _- K$ t6 f# p9 q- q2 e
31.0.0.0/24 is subnetted, 1 subnets / z# X3 U8 O" O7 M7 B% y
O IA 31.1.1.0 [110/2] via 30.1.1.2, 00:14:38, FastEthernet0/0
/ K; Y1 N$ t9 b8 t6 }# j 30.0.0.0/24 is subnetted, 1 subnets
. T; f" b" B" {+ M0 p& M! }+ k3 ]C 30.1.1.0 is directly connected, FastEthernet0/0
+ w. P) B$ v& a, O' D) m3 Q4 D1 o" V+ [0 B V% G
9 u7 i: r: m: X//可以看到现在R4上已经有了RIP路由协议的路由信息。 6 W" x' r' V; H, ` S3 H/ R+ X
7 V& [# n* `* u( {' }$ O: c
# L+ s* P D) n$ z" T& }4 n. v8 g u- J" Z( r+ m
3 b2 I+ T! F2 Q! N; e f3 }, ]
9 A2 I9 Y$ F; ]# ~! G
2 J4 W y# A G$ t8 r" ]查看R7的路由表 ; b8 \ D7 P5 k }: x5 f0 v+ |% N
7 ?! e, Y5 O- W$ }7 p. B( {3 _R7(config-router)#do show ip route
9 v6 L( A& q( {! a2 l 1.0.0.0/32 is submitted, 1 subnets
/ Z8 i( k+ _6 j( g: D: vR 1.1.1.1 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0
. T. ~, V# Y* V1 P+ z- t+ D9 I/ N 2.0.0.0/32 is subnetted, 1 subnets ; A3 F7 p7 V2 ^7 O7 D
R 2.2.2.2 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0
* n1 o" i& h* n3 f A( C: i) y 3.0.0.0/32 is subnetted, 1 subnets
a! U- Y1 z, XR 3.3.3.3 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0
# _1 u: A0 `7 S9 F p 4.0.0.0/32 is subnetted, 1 subnets
* W t: X( @6 ?6 H8 \& ?+ N8 C" xR 4.4.4.4 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 / A+ C1 U7 ?: A/ n Q! r9 F0 p' m" U
21.0.0.0/24 is subnetted, 1 subnets # m$ s8 g; B" N
C 21.1.1.0 is directly connected, FastEthernet0/0 9 G* ~# X8 R6 W: f5 N
20.0.0.0/24 is subnetted, 1 subnets % t* I2 c; E5 W3 ?# G7 x, M" @7 O0 ~& n
R 20.1.1.0 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0
1 \- g( V. T: @0 X# o 5.0.0.0/32 is subnetted, 1 subnets 0 B4 F% l5 r! r( A3 m) k) W& o" H
R 5.5.5.5 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
$ c& `/ M, x; z' } 6.0.0.0/32 is subnetted, 1 subnets * q, R$ a: C; Q/ ?9 m
R 6.6.6.6 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0 ) {" y# ?1 A+ v( n7 V" _
7.0.0.0/32 is subnetted, 1 subnets
A! ?- L4 W9 J5 T1 M3 m* uC 7.7.7.7 is directly connected, Loopback0 : F3 k% J9 h. A9 y" t
10.0.0.0/24 is subnetted, 1 subnets
M4 e9 H* C' wR 10.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
4 y$ b, ~+ A- R* r3 m% O 11.0.0.0/24 is subnetted, 1 subnets 0 S+ {7 S& G8 q0 y. t' ^9 ^
R 11.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0 0 a- n' P' C, E. h
31.0.0.0/24 is subnetted, 1 subnets ; X" \ g7 d) J3 ]7 b* U& ^: ^
R 31.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
0 Q: X) P+ e+ u2 n7 N 30.0.0.0/24 is subnetted, 1 subnets
4 \" o9 ~& N9 S8 R; x: ER 30.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
' p% ]& U# D+ U4 g
6 X7 m$ G( { p4 h( R3 P//可以看到R7也学到了OSPF自治系统的路由信息。 % F# |8 z& K& m4 G8 S# _" X X
|