一:实验背景: 7 O& w' S/ L- G& c
% y R! d3 ~. ~9 ^
东天公司的规模越来越大,网络也越来越复杂,公司吞并了一个小公司,但是和这个公司网络合并时,却无法直接接入OSPF的骨干区域,网络条目也越来越多.
7 O$ f/ P& h% |- |3 K4 C7 M为了减少路由条目的数目,要求对路由条目进行汇总.
- }" c6 ]2 i& V! ~ Z1 E5 a! B9 s, X& [/ S5 Z5 a& S$ T
二:实验目的: - _4 x2 {/ g& Y1 w0 g/ F
0 d! V. q% u' s' O/ B& Q1:通过虚链路实现Area 3与骨干区域的相连
( z" r. b9 Y4 [* T, j/ I. y1 Y2:分别实现路由汇总(区域内路由汇总和外部路由汇总),实现路由汇总后查看路由条目.
/ @2 T- h- r# ]+ B3:实现全网络的路由.
6 r+ C7 ?" ~2 J. c$ O
& B+ G* Z& d! a. L& q2 a( {. V5 o三:实验拓扑 ' e/ K' q5 i) k
一:实验背景: # `/ ^4 s6 ~6 ~
V- D# g" ~4 u( x+ q7 e( A2 {东天公司的规模越来越大,网络也越来越复杂,公司吞并了一个小公司,但是和这个公司网络合并时,却无法直接接入OSPF的骨干区域,网络条目也越来越多.
0 }8 T# K# c! D# Q" ~为了减少路由条目的数目,要求对路由条目进行汇总.
6 m' u) p! K( B F; _3 @' h6 V$ l1 S. o( i
二:实验目的:
/ A- l4 B# D# X# b' l0 t3 O6 W. ~2 n& I
1:通过虚链路实现Area 3与骨干区域的相连 1 w$ N: T( u7 T! r2 M& j/ L# T
2:分别实现路由汇总(区域内路由汇总和外部路由汇总),实现路由汇总后查看路由条目. 6 R8 ?1 Q' F: G
3:实现全网络的路由. 0 ^& E( }1 d0 R) i0 M+ J( C) \
1 H/ ]# y- Z: x$ d" u
三:实验拓扑 3 p( R' G: } x' I
; V" T; s* @% o9 X# B [img]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/STOBJ0%60P]~~%60[]DXAI%7BGS0G.jpg[/img]
" R( }$ z, \. a0 _0 ~ d: y
1 ~7 E. a9 M) I5 Z' L# M' D三:实验步骤: : \0 J7 M* P4 l- ]
1:先配置多区域的OSPF,打通全网路由,注意,发布环回接口.
7 [5 Y( j' f/ ` y 2:区域3无法与骨干区域直接相连,所以先用虚链路连接到骨干区域。 7 A8 d& ]! M- i5 e3 F6 f% d6 e4 }
3:将外部路由重新发布到ospf. 4 }, L% ]$ h/ a$ w( h/ U$ Y) t
4: 配置NSSA和Totally Stubby区域. " r5 U+ B K' ~. [. O8 b; J
5: 在ASBR和ABR上分别做路由汇总.(在R3和R2上用环回接口模拟几个网段,做汇总)
1 B# a: A& q1 C. S+ w* W- K% P- e) q 说明实验现象.
+ T$ p2 x, m i7 b8 u 实验步骤:
! I/ I0 R0 [1 t' e7 J1 O9 a9 Q1、基本配置,配置接口IP及环回接口IP
7 N8 |* s! n& t; b' c( R7 yR1(config)#inter loo 0
T* J9 W) g/ V1 b& F' C0 sR1(config-if)#ip add 1.1.1.1 255.255.255.255
8 U0 L$ ^) ?8 f" ]R1(config-if)#interface f0/0 ( j) V& ]6 ]5 }: U/ R- b3 D
R1(config-if)#no shut
. E/ B8 g2 K# B: g- X% I$ k) vR1(config-if)#ip add 10.1.1.1 255.255.255.0 # n x% r3 q- X8 t) e Y% ?/ a
R1(config-if)#interface f1/0 , t5 H( |# ^3 J- l! ?& h: C) z
R1(config-if)#no shut 7 u1 F+ r! _& _% u3 {
R1(config-if)#ip add 11.1.1.1 255.255.255.0
4 F- ~, ~$ i% n) O& u! i4 L) N; G( c' w, [8 x1 }5 [
+ f* ^5 j/ m. K# ?9 l8 u. {8 R, c' n4 K5 {* A, h
R2(config)#interface loo 0
: Y) r$ P+ S. g& z0 V7 }8 mR2(config-if)#ip add 2.2.2.2 255.255.255.255 ; S7 p, k P5 X/ Q4 o; R; F/ M
R2(config-if)#interface f0/0 # N" @) P( o( q% U8 R' L0 a
R2(config-if)#no shut
# G w' j) I8 z* ?R2(config-if)#ip add 10.1.1.2 255.255.255.0
2 M: B( E% {# h5 xR2(config-if)#no shut & w; ]) F" {& w9 N9 S. J
R2(config-if)#interface f1/0
- k: E8 C0 j g1 ]R2(config-if)#no shut
& g S0 G9 Q: l$ j4 G7 Z' g' F0 E2 PR2(config-if)#ip add 20.1.1.1 255.255.255.0 ! N+ _, P9 O* g' }' l' j$ E0 p
7 }+ F) s" M- V6 h s
, G! L2 Q8 H- Q3 T5 Z G3 E
0 ~- L, m6 C- M6 @0 m' e" uR3(config)#interface loo 0 6 ]$ X4 Y6 K3 P5 U& R
R3(config-if)#ip add 3.3.3.3 255.255.255.255
6 b7 K& e3 E3 M) z2 b. kR3(config-if)#interface f0/0
" |5 ^) N5 v+ A* M$ K" _6 lR3(config-if)#no shut
5 m& i# d5 V0 X, V0 t/ U& IR3(config-if)#ip add 21.1.1.1 255.255.255.0
0 T1 @' K8 h( qR3(config-if)#interface f1/0
* K9 W' f: g5 X( u' E9 K: {R3(config-if)#no shut - _ X7 S& p$ D( I4 Q# a
R3(config-if)#ip add 20.1.1.2 255.255.255.0 3 I7 a4 @: c0 b& Y( n
( ~3 |/ M: g( o7 A. e1 R
- b, D$ [0 @8 @& f3 i8 rR4(config)#interface loo 0
7 A9 u: b$ p" B( ~; a+ c6 TR4(config-if)#ip add 4.4.4.4 255.255.255.255 . ]* u% }7 y. N% b
R4(config-if)#interface f0/0 ) F$ f2 O1 ^" I
R4(config-if)#no shut , w' [9 b( s. U$ W+ ]% |
R4(config-if)#ip add 30.1.1.1 255.255.255.0
. C0 ?( K* Z7 _- A) \. zR4(config-if)#interface f1/0 & H: z' Y, x* u+ s
R4(config-if)#no shut
1 }9 e4 D8 R' g: F/ v4 n3 I/ tR4(config-if)#ip add 11.1.1.2 255.255.255.0
7 f, X5 v9 ?# G! K
9 x% Y) q( c [# H
& w+ v& ^7 _' s& `- o0 cR5(config)#interface loo 0
1 I: y6 s4 T5 D) C, CR5(config-if)#ip add 5.5.5.5 255.255.255.255
+ |9 E" s+ K9 VR5(config-if)#interface f0/0
, C+ \0 z% T* tR5(config-if)#no shut ( b2 w8 [8 W ~% `& t* a
R5(config-if)#ip add 30.1.1.2 255.255.255.0 # C( }( o# ?% L Y
R5(config-if)#interface f1/0
' w6 `; G2 J; a2 w( G3 q' G' H+ {R5(config-if)#no shut
, ?% W7 n8 ^7 L9 |* w, yR5(config-if)#ip add 31.1.1.1 255.255.255.0
4 Z4 J" W9 K7 ?7 H2 w. `
0 B: _& p$ H( e8 q) z- F6 `2 Y. V9 T9 I( J; o) C' P
4 c) O7 n7 z; F* L1 i* b! \* @. f
; }% l, R; {2 {5 A# w& {* d2 rR6(config-if)#interface loo 0 * c( B! ]/ P. H
R6(config-if)#ip add 6.6.6.6 255.255.255.255
2 w( L4 ], w; R1 }2 kR6(config-if)#interface f1/0
% B( x: R' E1 LR6(config-if)#ip add 31.1.1.2 255.255.255.0
4 H9 Q5 ^5 c# |& T! J! G2 L2 DR6(config-if)#no shut 3 j: f* l/ E6 j0 V4 R- N0 \, h: Q
- S* f6 l; h% M$ `6 C5 Q3 [; y# }' J
1 G6 s0 r! J8 D3 ^* N9 `+ c: hR7(config)#interface loo 0
: D9 I/ j7 }# }& S$ HR7(config-if)#ip add 7.7.7.7 255.255.255.255
- P6 C/ T, T1 d1 v4 n# eR7(config-if)#interface f0/0
) C0 n5 E+ v( b4 \/ i1 y) jR7(config-if)#no shut
% o. p+ l8 ]* Q+ C) ]- R( a/ VR7(config-if)#ip add 21.1.1.2 255.255.255.0 2 s. T- Q$ n) R- Y. l7 n' T
/ D4 E2 O( A2 |5 l9 u/ aR4#ping 30.1.1.2 5 n( C/ q& J% [& _/ [& i9 K& u
Type escape sequence to abort. + m) d' q7 D4 V) z. R
Sending 5, 100-byte ICMP Echos to 30.1.1.2, timeout is 2 seconds: 1 {" ^2 E" a: S6 z0 B
.!!!!
% M' R4 Z4 ~4 o! j//现在相邻的设备之间已经可以Ping 通了 8 `4 D$ y% S, w& ]: t
4 U9 ^; _ \ |7 M$ _; t0 O7 I2、打通全网路由 4 p/ d6 a0 ?8 P" J. B
R1(config)#router os 110
7 P# W9 {2 C) z! JR1(config-router)#network 1.1.1.1 0.0.0.0 area 0
. b& H. Z" {6 @* {% E1 i% M! MR1(config-router)#network 10.1.1.0 0.0.0.255 ar 0 " y' u" {$ \) ]9 b& N! E
R1(config-router)#network 11.1.1.0 0.0.0.255 ar 0
( i* \( Z1 l5 J" H2 ]. n. r8 J L
# g3 I! D4 O. b* PR2(config)#router os 110 ' b( v; e& A6 V0 O) {! [
R2(config-router)#network 2.2.2.2 0.0.0.0 ar 0 * E9 |, n6 D) [6 T" O1 R8 ]5 B( G9 C
R2(config-router)#network 10.1.1.0 0.0.0.255 ar 0 T' b, U* f$ c1 D
R2(config-router)#network 20.1.1.0 0.0.0.255 ar
5 f# G9 D' j' @+ l+ F( Z+ k* b* ^R2(config-router)#network 20.1.1.0 0.0.0.255 ar 1
7 F O W) l" G+ T7 u+ e% ?+ `
( p( c1 K3 `, Q5 x m. [- u$ J8 \R3(config)#router os 110
, ~+ I# x4 b3 e2 l: iR3(config-router)#network 3.3.3.3 0.0.0.0 ar 1
! u5 l7 W5 R: OR3(config-router)#network 20.1.1.0 0.0.0.255 ar 1
2 W1 _4 B& E, D2 MR3(config-router)#exit
- b$ _: e9 W; ^+ ^/ CR3(config)#router rip //R3为ASBR,连接两个不同的自治系统。 2 b8 W* b1 p" j; ^& @& h0 x
R3(config-router)#version 2
" d8 t/ [1 E# X; ^3 e! vR3(config-router)#no auto-summary
3 I$ d# _) \, `" |: ]: s% C) j; P- X wR3(config-router)#network 21.1.1.0
% o7 C/ x! D. z6 V5 a' | C( D5 S: w! f8 i3 x2 U4 o. R
$ F% l- J) J& r5 R. m& z" h5 ^ _, C5 i
) Q" b3 X' y. I8 y( J# O
' U: k, z* m( y8 WR4(config)#router os 110 8 M3 o3 ^9 D1 h, K) W' t1 u; E
R4(config-router)#network 4.4.4.4 0.0.0.0 ar 0 * m# h. F# R6 W8 j- ?
R4(config-router)#network 11.1.1.0 0.0.0.255 ar 0 5 o2 `+ e9 r/ L
R4(config-router)#network 30.1.1.0 0.0.0.255 ar 2
3 u% y# s0 T6 [5 B! t% x; j' I1 a3 w3 e: `
: E2 P# f1 T4 s9 W1 GR5(config)#router os 110
8 i& q6 G, U4 f* p& X; f' _R5(config-router)#network 5.5.5.5 0.0.0.0 ar 2
( b, d, w$ y" s7 `% X+ `6 F/ }R5(config-router)#network 30.1.1.0 0.0.0.255 ar 2
9 W! ]3 E7 x6 N( S( [$ M& wR5(config-router)#network 31.1.1.0 0.0.0.255 ar 3 ! V1 G9 F; C5 [3 u, W- g- }4 V0 u
* |0 {: Q5 U8 ?! H9 m3 \
/ }8 O+ T9 T o. N0 @, lR6(config)#router os 110
8 `: a; ]$ [5 F' R# ^3 nR6(config-router)#network 6.6.6.6 0.0.0.0 ar 3 6 `7 w Z, E: O' J j! v( U
R6(config-router)#network 31.1.1.0 0.0.0.255 ar 3
: Q9 r$ V1 O3 S+ W7 n7 e; C+ z, G
9 W! x% Q+ {3 b' e- o/ u# S
0 O, y% j, F# ]R7(config)#router rip
" M% E& q, Z$ _/ zR7(config-router)#version 2 8 ~% l+ \0 @7 X* }9 U# z
R7(config-router)#no auto-summary
5 p+ O: l4 n5 U9 QR7(config-router)#network 7.7.7.7
0 Q1 v7 h8 F q+ pR7(config-router)#network 21.1.1.0 ( W" w8 M" H2 E6 @
( A0 d# U; o/ o' m( {3 G" y) ]# B
R4#show ip route
: d% j/ M% t- k2 r6 K 1.0.0.0/32 is subnetted, 1 subnets
8 X; k- W9 m, E; v) [O 1.1.1.1 [110/2] via 11.1.1.1, 00:04:41, FastEthernet1/0
9 E1 L% N! |/ T' H( G- E: x- j; V 2.0.0.0/32 is subnetted, 1 subnets & A; e$ Y! P# h% `7 g
O 2.2.2.2 [110/3] via 11.1.1.1, 00:04:41, FastEthernet1/0 7 r( @$ w& W' t% q8 G! ^# ~
3.0.0.0/32 is subnetted, 1 subnets
- i2 b" B& q; U0 ?O IA 3.3.3.3 [110/4] via 11.1.1.1, 00:03:25, FastEthernet1/0
& h" m) l7 w! R' R8 b' k3 _/ t0 [& D* x 4.0.0.0/32 is subnetted, 1 subnets
" j& R: _( {9 F0 P8 N' ?" w5 kC 4.4.4.4 is directly connected, Loopback0
* \: f2 P# y0 w& |6 F' k; B; [0 w 20.0.0.0/24 is subnetted, 1 subnets + w$ l# }# c+ K1 N- I( m$ I
O IA 20.1.1.0 [110/3] via 11.1.1.1, 00:03:25, FastEthernet1/0
N% `9 M0 ?' P0 Z) d 5.0.0.0/32 is subnetted, 1 subnets - S( m- w" i# x1 @; S* I' Z( ^$ f
O 5.5.5.5 [110/2] via 30.1.1.2, 00:03:25, FastEthernet0/0
; R& z" v3 v* J! U% p 10.0.0.0/24 is subnetted, 1 subnets - \, E. P5 m- G8 J: `* D
O 10.1.1.0 [110/2] via 11.1.1.1, 00:04:43, FastEthernet1/0
, X: Q+ l* s" E0 o 11.0.0.0/24 is subnetted, 1 subnets
) V5 w- Z, L/ M! k% u& {6 TC 11.1.1.0 is directly connected, FastEthernet1/0 ( k( `/ a; K, p* m. x2 E
30.0.0.0/24 is subnetted, 1 subnets + F1 ?, X' O6 I( O0 d
C 30.1.1.0 is directly connected, FastEthernet0/0 ' m4 k, ?9 ?# P. t8 S& u, L
, ~/ X* R# a2 [+ _- p# U+ e# \" J//查看R4的路由表可以看出R4学到了本区域的及其它OSPF区域的路由信息,但是没有Area 3 以及RIP自治系统的路由信息,这是因为Area 3 没有和骨干区域直连,RIP和OSPF属于不同的自治系统,不能直接学习路由信息。 - c: S& x6 M! s; d( U/ T: y
% |" k- x) l% l# p% f0 M f7 t3、配置虚链路
9 \- D$ J8 h# p0 a {) dR4(config)#router os 110
1 K$ \, K; }3 U: r2 `2 [R4(config-router)#area 2 virtual-link 5.5.5.5 ) R4 l4 h8 j# u0 t
0 n! k; K% Y# r3 f/ DR5(config)#router os 110
2 H5 T& [4 U! X6 I) U+ O: jR5(config-router)#area 2 virtual-link 4.4.4.4
6 ]! w' |+ W4 S% ^
. ^+ Y0 a4 {, l/ Q4 l再次查看R4的路由表 % C5 p! R S+ r" ^7 S
, t1 F% m1 |6 d3 B
R4#show ip route
/ l3 m2 l; n. o) u 1.0.0.0/32 is subnetted, 1 subnets
# g9 O i$ w$ O/ H# s& _O 1.1.1.1 [110/2] via 11.1.1.1, 00:00:24, FastEthernet1/0 * [1 E- I, {+ c: F2 [
2.0.0.0/32 is subnetted, 1 subnets
- W( g# G3 Z1 n) a2 B7 {O 2.2.2.2 [110/3] via 11.1.1.1, 00:00:24, FastEthernet1/0
( s+ @# K3 b {2 C! S+ @ 3.0.0.0/32 is subnetted, 1 subnets
: w. X% a3 z' O2 P2 Y; oO IA 3.3.3.3 [110/4] via 11.1.1.1, 00:00:24, FastEthernet1/0
2 i$ D& l0 s( f, j' A# O7 H5 { 4.0.0.0/32 is subnetted, 1 subnets 8 `2 a* J) n5 J# P3 @/ p* i. n* B
C 4.4.4.4 is directly connected, Loopback0
- u- ~1 _+ Z/ T, V1 L 20.0.0.0/24 is subnetted, 1 subnets
1 T ^% @8 ~& zO IA 20.1.1.0 [110/3] via 11.1.1.1, 00:00:24, FastEthernet1/0 ) M4 _% a! y5 G! h. z. x8 }
5.0.0.0/32 is subnetted, 1 subnets
' g3 A, y1 t0 a3 |9 e/ y3 a: ~O 5.5.5.5 [110/2] via 30.1.1.2, 00:00:24, FastEthernet0/0
! M$ }# Y5 u& }5 ^ 6.0.0.0/32 is subnetted, 1 subnets ! t% M7 E5 d( l8 @4 X
O IA 6.6.6.6 [110/3] via 30.1.1.2, 00:00:27, FastEthernet0/0
8 V! q+ m6 a, Z. X8 f0 }+ F9 }2 }6 M& D7 s 10.0.0.0/24 is subnetted, 1 subnets
& B. @2 L+ ]8 Z1 G7 h4 iO 10.1.1.0 [110/2] via 11.1.1.1, 00:00:27, FastEthernet1/0
+ {3 C' x9 [" X' K B0 t5 { 11.0.0.0/24 is subnetted, 1 subnets ' E B, O }6 U6 @6 {' T/ d& X
C 11.1.1.0 is directly connected, FastEthernet1/0
5 r3 z0 W: q1 J% {4 m# p0 l. t# x3 Y 31.0.0.0/24 is subnetted, 1 subnets
7 Q5 H* D/ W* R; w# E" eO IA 31.1.1.0 [110/2] via 30.1.1.2, 00:00:27, FastEthernet0/0 7 _1 G" Y1 [: d$ u
30.0.0.0/24 is subnetted, 1 subnets 0 P) m1 S& v% b
C 30.1.1.0 is directly connected, FastEthernet0/0
3 @/ {2 B4 r: |9 c3 S2 q* w3 e3 K7 F! Q: Z3 {
2 ~0 e9 |) A5 e) {* {- M* P6 G
//可以看到,添加完虚链路之后,就可以学习到Area 3的链路信息了,但是还是没有RIP路由协议的路由信息. - |6 F( o; T9 }! q$ t% R5 w' ~
7 L3 G( S" I. q6 ?1 t. J$ Q& `) M v
. ~2 _! j: |% v! Q; m0 t# n4 b5 P2 [& r" X( o1 A8 ^, }
0 K- t( V5 Y, B' y1 ] B# }' C8 x6 E) r: K) F- V
4、重分发 / e( o% N& X, h
R3(config-router)#router os 110 & W( \9 E# ?! A* @# r2 o8 l
R3(config-router)#redistribute rip metric 100 subnets - f9 r( p) w a2 U) r6 s
R3(config-router)#router rip 5 i- x, [8 V8 A# f7 B+ b
R3(config-router)#redistribute os 110 metric 1
+ C5 q. I! {- W2 @- a; S6 l2 m
# x$ Y9 D( G: g//再次查看R4的路由表
: Z9 h0 y$ G) Q" g% [ Y- ` p" E$ j
R4#show ip route
' N6 V0 d4 z6 v2 D* r0 o5 Q: y* u 1.0.0.0/32 is subnetted, 1 subnets $ w# @; c" [' X
O 1.1.1.1 [110/2] via 11.1.1.1, 00:14:37, FastEthernet1/0
7 b, H2 T; L: [ 2.0.0.0/32 is subnetted, 1 subnets * q' D) j" r s: x
O 2.2.2.2 [110/3] via 11.1.1.1, 00:14:37, FastEthernet1/0
? @7 A; G; b7 Q/ i6 | 3.0.0.0/32 is subnetted, 1 subnets
; ~0 q3 {; [7 W# wO IA 3.3.3.3 [110/4] via 11.1.1.1, 00:14:37, FastEthernet1/0 2 s4 |. l8 y" I) u
4.0.0.0/32 is subnetted, 1 subnets
, c V1 Q% d$ f( v' G% W, [C 4.4.4.4 is directly connected, Loopback0
, x7 `/ Y0 W% x- a+ Z/ W3 e: f4 E+ P 21.0.0.0/24 is subnetted, 1 subnets
6 P7 M5 t* w& R& ]O E2 21.1.1.0 [110/100] via 11.1.1.1, 00:06:11, FastEthernet1/0
8 y2 J2 |3 i1 W8 o 20.0.0.0/24 is subnetted, 1 subnets 3 }9 J+ Q& x9 p5 [( ?* N3 m; O
O IA 20.1.1.0 [110/3] via 11.1.1.1, 00:14:37, FastEthernet1/0
0 y, |. a( L5 [' y 5.0.0.0/32 is subnetted, 1 subnets
' a! l1 u: o. JO 5.5.5.5 [110/2] via 30.1.1.2, 00:14:38, FastEthernet0/0 ( O& b+ p+ {. f; h \, N
6.0.0.0/32 is subnetted, 1 subnets
3 M9 m3 @3 Y4 L' o; [' UO IA 6.6.6.6 [110/3] via 30.1.1.2, 00:14:38, FastEthernet0/0
( O6 I$ c$ f1 M# H5 k 7.0.0.0/32 is subnetted, 1 subnets 4 }+ g7 d, x* B8 I5 z" a
O E2 7.7.7.7 [110/100] via 11.1.1.1, 00:06:13, FastEthernet1/0
E$ k( `+ |! s2 p 10.0.0.0/24 is subnetted, 1 subnets * B( z' w9 j. R. s# t6 E
O 10.1.1.0 [110/2] via 11.1.1.1, 00:14:38, FastEthernet1/0
$ F2 t: c4 p y4 N 11.0.0.0/24 is subnetted, 1 subnets 8 q+ a6 Q1 [7 f. Z0 \
C 11.1.1.0 is directly connected, FastEthernet1/0
" l9 [/ x5 Q- B/ [( x) ]8 R2 [ 31.0.0.0/24 is subnetted, 1 subnets 3 M: j5 d% E' K, e/ {; {
O IA 31.1.1.0 [110/2] via 30.1.1.2, 00:14:38, FastEthernet0/0 ) s l; [4 z" e9 _4 \( l
30.0.0.0/24 is subnetted, 1 subnets ) j" M. B( ~ f
C 30.1.1.0 is directly connected, FastEthernet0/0 4 ], |. Z6 a: E2 J
( k* `* M9 l) ]" G' x! x
6 w# R0 z8 W% u8 [/ E6 l1 Y
//可以看到现在R4上已经有了RIP路由协议的路由信息。
, w* s- P5 ^- y# n) f7 {% o
. f* |: O! l( n1 l
9 L0 y$ s+ S) o% e2 T1 |2 k5 j1 L& F; g; d/ P8 h; z; x! o
& @& z! N+ u% o7 r8 a! ]: f' a# k
( a6 N. \) `% |
& }/ L4 U G5 V- ]6 r Y$ l* q查看R7的路由表
; o8 w2 ^# F C3 s) J7 c
4 ]% n- \, X! ]( ?3 kR7(config-router)#do show ip route
1 [/ }( g4 n7 \$ r9 q 1.0.0.0/32 is submitted, 1 subnets
3 w" I9 N; X! S X, CR 1.1.1.1 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 ! y; t) n0 C: J, l) D& ~4 V. J
2.0.0.0/32 is subnetted, 1 subnets
+ W z( {; t: k. q' _R 2.2.2.2 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 / v5 B' A/ V. |8 V) o/ B
3.0.0.0/32 is subnetted, 1 subnets
' H F! c) p3 Y+ T9 r8 ~$ FR 3.3.3.3 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 + p: z4 B6 N' T8 i. O' @
4.0.0.0/32 is subnetted, 1 subnets : p& D8 O2 d) l1 L/ u6 y" ]
R 4.4.4.4 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0
! |& @- I) Z x8 P. t 21.0.0.0/24 is subnetted, 1 subnets / G8 {9 K) ]' ^* s+ H; O
C 21.1.1.0 is directly connected, FastEthernet0/0 / R& y2 B: G( X( u, F
20.0.0.0/24 is subnetted, 1 subnets
2 v! s/ x8 {0 l0 Y7 g: tR 20.1.1.0 [120/1] via 21.1.1.1, 00:00:08, FastEthernet0/0 4 C- U2 r; R q+ B
5.0.0.0/32 is subnetted, 1 subnets
- O/ O1 ]3 V1 ^* n% m) XR 5.5.5.5 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
/ f% U* D8 w3 w! O; `" F+ q 6.0.0.0/32 is subnetted, 1 subnets
1 K( m1 V6 P( l/ CR 6.6.6.6 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0 8 P5 G% j8 g, e
7.0.0.0/32 is subnetted, 1 subnets
% b8 ]) K, q5 b) T/ v3 hC 7.7.7.7 is directly connected, Loopback0 - |. o* U r$ Y0 h/ ]6 K8 _
10.0.0.0/24 is subnetted, 1 subnets 2 \% W# s6 \4 R; U/ G# J
R 10.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
2 Q$ I b9 r. M+ m, c 11.0.0.0/24 is subnetted, 1 subnets
9 J0 q* Q- \( y& N4 w! VR 11.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0 9 ]% \% j) O+ p$ x0 p3 }& {
31.0.0.0/24 is subnetted, 1 subnets
( \2 O7 F! _2 Q, M4 o1 lR 31.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0
% p4 e+ n. f& o2 Q 30.0.0.0/24 is subnetted, 1 subnets / L( S4 l3 D$ r' O' z
R 30.1.1.0 [120/1] via 21.1.1.1, 00:00:10, FastEthernet0/0 3 c1 z$ [ P+ Q) j1 I
' j/ A2 U: C+ V8 Q
//可以看到R7也学到了OSPF自治系统的路由信息。
9 o- K# w/ d, e1 o |