</p>R1#sh ip route: C7 g; `, E1 u5 Z
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP" d+ \4 j: R2 T) k
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area/ a2 }2 _! F- V! ]- _! F' l1 N
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
& w' C' z' O) y4 C E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP' x$ |# W7 t$ h' v5 p- R% m
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
0 T( F( p, }& M * - candidate default, U - per-user static route, o - ODR& \9 L Z0 S- q
P - periodic downloaded static route0 j7 ~; a0 a* ?0 Q2 T
1 E( ]1 |6 u; B* Z; m
Gateway of last resort is not set, P" g- R* u1 D# N3 h- H
9 _3 d6 Z4 S$ d1 h6 _
20.0.0.0/24 is subnetted, 1 subnets
. ?1 `; H! H6 S1 \( o$ ~ l$ OD EX 20.1.1.0 [170/2195456] via 10.1.1.2, 00:03:50, Serial0 à外部路由条目
+ ]4 l4 w0 o1 p' w u" s 172.168.0.0/16 is variably subnetted, 4 subnets, 2 masks
* T% \; R3 F# v3 I- |! C3 D3 fD 172.168.0.0/22 is a summary, 00:03:56, Null0
1 P8 {& t0 f, M* @7 m. K* d* jC 172.168.1.0/24 is directly connected, Loopback0
: e" B2 T' S0 t. B3 H* T& PC 172.168.2.0/24 is directly connected, Loopback1
" Y1 N6 Y8 |' U2 j+ yC 172.168.3.0/24 is directly connected, Loopback2+ W( R& O) w1 u$ N& c, M* k
10.0.0.0/24 is subnetted, 1 subnets
$ Y0 v6 T" z9 p8 @5 b% vC 10.1.1.0 is directly connected, Serial0/ e# S6 X$ m% O; Z# o, U9 ~2 c
D EX 192.168.1.0/24 [170/2195456] via 10.1.1.2, 00:01:53, Serial0
2 o2 j$ U! H8 [1 d$ KD EX 192.168.2.0/24 [170/2195456] via 10.1.1.2, 00:01:53, Serial0
, H6 Z& O* \# H0 @ , s: ]7 Q7 e8 ?1 w. j- `4 O9 o! y9 [5 Z3 e
R2#sh ip route D$ e `: B+ d4 x5 N. v
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
: b% v. I( m" y) E9 f5 z D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
5 R; I# ]( O8 W% X D6 a0 r1 I N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
6 s8 ^: _+ ]+ n8 v E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP! U; ~0 q* ^$ V- N0 H
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area7 J; V/ ]6 X2 g* w8 v4 h) M/ B
* - candidate default, U - per-user static route, o - ODR& ^' A3 y( ?: e; ^ H$ e
P - periodic downloaded static route
; K5 O* C. A* e' {2 M- Q5 X ! Y: J3 O$ W Y+ R( p( U0 Z6 n9 D
Gateway of last resort is not set4 }, y/ j, U J. |
5 w& t. ?. U: K/ x
20.0.0.0/24 is subnetted, 1 subnets
, I; H& j) y3 B' g" w2 C) @C 20.1.1.0 is directly connected, Serial0
2 g! f$ k- K0 u2 J 172.168.0.0/22 is subnetted, 1 subnets
" d% B- h H S7 _1 @ UD 172.168.0.0 [90/2297856] via 10.1.1.1, 00:05:39, Serial1
: R4 Q; c3 Z. ]) ?3 L7 u 10.0.0.0/24 is subnetted, 1 subnets
- D$ b& ^4 [" J! t3 hC 10.1.1.0 is directly connected, Serial1' p& m7 _2 `+ j. Y& p1 i4 N" R
O E2 192.168.1.0/24 [110/20] via 20.1.1.2, 00:03:42, Serial0 àospf外部路由条目类型2- e1 ~9 I; k0 Q7 a
O E2 192.168.2.0/24 [110/20] via 20.1.1.2, 00:03:42, Serial0
0 q; ^! ?6 X7 S; `- [
, \! A3 Y3 A6 z4 B' J1 y' ]R3#sh ip route5 ?2 |! e2 a2 K& L# \' {7 ]( e
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP. Q+ n5 q! K% y) l+ g
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area" V) o+ _6 D- q) v% i) _
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
! B* `8 X5 `6 D2 j' q E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP6 Q4 c% J5 o- C! G7 S" n7 Z! d
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area, c: z3 }+ d3 R
* - candidate default, U - per-user static route, o - ODR/ u& E( _+ s+ Z6 S
P - periodic downloaded static route# V" M9 O9 C. T8 K$ U/ [6 |
1 t/ m0 W4 [9 O+ }, _8 e
Gateway of last resort is not set+ p- a; f J7 p2 d" K4 ?
/ Q+ x& z1 N4 ~3 c' y3 O% ]
20.0.0.0/24 is subnetted, 1 subnets
7 j. B( d, g5 p [0 ^C 20.1.1.0 is directly connected, Serial1
5 C9 Q2 j3 `6 w5 G; K 172.168.0.0/22 is subnetted, 1 subnets+ m' g4 ^0 B) s. \0 M) B
O E2 172.168.0.0 [110/20] via 20.1.1.1, 00:04:48, Serial1' }$ i- s- J# y; Q! y" ]9 B
10.0.0.0/24 is subnetted, 1 subnets( j) n5 P; E9 \; a; N5 ~) b
O E2 10.1.1.0 [110/20] via 20.1.1.1, 00:04:48, Serial1
+ b, z+ F% ?9 G- q+ `, bC 192.168.1.0/24 is directly connected, Loopback01 {$ Z8 b. K/ L$ D9 z" E
C 192.168.2.0/24 is directly connected, Loopback1
x" {2 W! p4 s& bC 192.168.3.0/24 is directly connected, Loopback28 c, F0 G0 Y* c1 G; @& q
: v7 n* C0 f$ R& Y$ J' t' K
- Z0 B2 O( }$ v& v3 n1 j步骤六:用ping命令测试连通性
: X/ i$ t( z1 [9 C8 S, T1 w/ ER1#ping 192.168.2.1
3 @* d4 R! m2 W' i3 v6 f' s
" Y1 ^+ W4 ?1 t% Q- X; C!!!!! |