
50金币
|
PT模拟器里的一个ping的路由交换问题(拓扑+配置)
; m# `, [- z. Q8 c% g {8 U% o: Q. g: j5 u1 ?/ T: O6 V
PC1能ping通R1的se0/0/0,为什么ping不通R2和R2身后的网段,求解$ J$ g& i( g8 e- Z
r1#show run+ H# q2 P9 L, ~: T5 T
Building configuration...8 ?! s6 o! ^+ x
6 u( ?& s" f% _7 \. b2 A, N) L
Current configuration : 1794 bytes
; U5 ] l* J6 A3 Z: h* E1 n!
! s, G' I F- xversion 15.13 ~0 u: j6 R, L: Q- ~" v D
no service timestamps log datetime msec
# S: J: X2 R! a+ |" k2 Sno service timestamps debug datetime msec
. F# O' f1 I1 M* Jservice password-encryption% Q1 f7 m( W2 U8 R" u
!8 o$ T) e, O a' i7 b1 P
hostname r1 \8 g! s7 G" c: ?: b0 V
!1 e# x1 r. e* J6 K
- k9 m. A7 ^% D; r+ I$ O5 E3 U
username r2 password 7 0822455D0A16# x2 H6 ]) H8 Y g( m7 t
!
+ q$ h; l. W9 k+ `7 x8 u!
( U/ {# G( H6 ?license udi pid CISCO2911/K9 sn FTX15245Y0J
) z- c+ N( k; f* ?" C' w- y3 [& q!3 I! w4 t h5 A+ E) X+ m7 ?# c
!/ }0 D! l; @- D7 h2 q
) I3 V; i5 X0 m! Y u7 x0 A!# f# w/ w- Z) m/ V1 R+ d
spanning-tree mode pvst
; K$ ~. t. b! Q) o. S# U0 h# o: B8 d!/ B' B" r X" H
$ }" k- J# }5 R2 N!. H0 E: F" b& U
interface Loopback04 N; s, G+ n; _4 k8 M& x: |2 q
ip address file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png50.50.50.50 file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png255.255.255.0
. x, B2 w2 B) `' J; G!) n4 F. ^ q8 W( c6 q/ k( T" `/ u
interface GigabitEthernet0/0( F, ?) f5 L; u0 _" @; U
no ip address9 I8 O, J8 n1 G/ F/ @# G
duplex auto
" P; ~; F! V5 Y* l( u7 ^ speed auto+ u6 G8 a& P) ]9 ^, ^
!
! W2 M3 P# \" \7 h6 `* q% _interface GigabitEthernet0/0.10
/ ?: D3 H0 r+ e) H6 e encapsulation dot1Q 101 |0 c1 ]0 D# ~ D: t' R
ip address file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png192.168.1.254 file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png255.255.255.02 m/ ^" O" g! c: N' F
ip access-group 110 in2 B& t# Z: S2 n8 R8 n0 K
ip nat inside
1 k/ T& x: N" @2 {!6 \% L3 _0 z% y
interface GigabitEthernet0/0.11
9 Y6 y, m; u2 E encapsulation dot1Q 11& e. N/ ]" k) T( U. t/ H
ip address file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png192.168.2.254 file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png255.255.255.0& G' {3 Z# @. o7 Q& }
ip nat inside6 L3 E' w2 o4 J( j7 W0 G
; t3 y7 y6 D# W1 h!6 k0 @8 @+ R t4 |
interface Serial0/0/08 `* V) F, ^/ y5 {5 @7 ^6 B
bandwidth 10000* V' |6 @ q6 Y. j5 f0 \+ d. x4 B, z2 t
ip address file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png202.100.1.1 file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png255.255.255.252) V, e" C) x5 c4 C0 H7 ~
encapsulation ppp
/ ?( t ? K) q ppp authentication chap# ~8 o z' m, X3 N" g, ~$ y5 {' |
ip nat outside' e/ J X/ {1 z- [# @
0 K: J1 y+ a" y- U: D: C. c
interface Vlan1
3 g& i5 M/ f9 t( r; a3 Z" Q no ip address
2 o: d5 `: H( G2 j% }* Z shutdown. Y8 O; k" {! x3 F# |, P
!
8 c# I- s4 g8 H$ m# v6 D1 H6 K' irouter ospf 10. V/ o9 m- Q) P. I, ~* s1 ]) f
router-id file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png100.100.100.1004 \ n6 a; h2 n) }4 z
log-adjacency-changes M, |6 [& E! y- Q/ ~- W8 M. o
network file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png50.50.50.0 0.0.0.255 area 10# c# F+ h1 O: o) q6 M
network file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png202.100.1.0 0.0.0.255 area 10
% r, T& W, r+ L! g! F1 b!3 E; K; G2 s7 u
ip nat pool mapp-address file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png202.100.1.10 file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png202.100.1.20 netmask file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png255.255.255.224
# g0 M0 m# z/ C0 N6 w8 vip nat inside source list 5 pool mapp-address. H2 h# C3 O5 }2 B8 u1 S. |% U
ip classless, v% ^, j# s8 ~+ Q- g3 ]; k, q
!1 c; ?$ x8 ?2 u' l( c
6 p' w; h. k; e4 c4 V3 Eaccess-list 5 permit file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png192.168.1.0 0.0.0.255
( e {; J- V' d. p) x3 V. naccess-list 5 permit file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png192.168.2.0 0.0.0.255
4 I$ j+ @$ N5 p: t. naccess-list 110 permit icmp host file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png192.168.1.1 host file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png192.168.2.2 echo: ?# M6 u/ z" P7 Y m" ?
access-list 110 deny ip host file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png192.168.1.1 file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png192.168.2.0 0.0.0.255
) j# t2 f. j2 X3 jaccess-list 110 permit ip host file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png192.168.1.1 any7 K& s; H! W3 @6 V9 G
access-list 110 permit ip any any
B) ]$ V' Y5 O* j' L+ z
/ {2 A: [6 U( y/ J4 L& N$ U. H" ^% T/ B
4 {7 Q$ {$ _ }2 ~) [' {0 l
6 _1 `$ Z H9 y0 T% P
r2#sho run
& e5 _7 Q+ z% y# s) ?4 yBuilding configuration...
8 S* n: a, e4 ^; K! P' l7 Z- }8 \( k: [& H/ w/ R+ l) ?
!
" Q3 M7 u/ S- Ahostname r2$ M% J" R/ _1 @% w
!
" w9 Z Z3 C$ _+ c0 M5 B
! [; l: c/ V. Z, R$ ^3 C, s* i; v!
) s- m z, Q: s3 X J+ A0 |username r1 password 7 0822455D0A16
) Q7 j6 o7 Y, P; J- O!
N9 T7 A( B: z9 g4 V8 k!/ W8 ~1 D1 a6 t4 U U& D% ^4 [
license udi pid CISCO2911/K9 sn FTX1524168Z) O* I7 Z, c, q- E! g
4 [$ m' f% f X% J0 G& b
!, n! a- }( U3 _+ n: n
!
$ k1 m% I3 l8 J% C6 c, [' L. ~spanning-tree mode pvst. w4 {1 P) y0 E0 h
!3 \& W( `2 F1 {7 r% [
- o: m, G; h4 r5 L/ S. x
!" c4 x3 ~8 i% r! F+ t; L. H
interface Loopback07 y$ H: U q) ]. ~5 c
ip address file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png10.10.10.10 file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png255.255.255.0
8 j4 o1 Q/ m) d7 t!
% U1 U/ L; Q$ T$ z2 L6 b, R( Ainterface GigabitEthernet0/0
/ @, D4 p4 L2 }9 P0 d" C, g: T) m T ip address file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png202.100.2.254 file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png255.255.255.0
9 a$ p7 j a$ Z0 L duplex auto# _$ K2 o' i/ @6 H' s- o8 g
speed auto5 v5 n: e0 ] y, H, Q6 F1 g
% X- ]4 }$ B5 u- a! Q# }: A# \/ [
interface Serial0/0/09 h( J7 O# b$ {! U' q
bandwidth 10000
( Z: K3 q% E( x7 r ip address file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png202.100.1.2 file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png255.255.255.2524 e/ v) H$ G( k( T
encapsulation ppp
2 L! w5 U3 s" v3 } ppp authentication chap+ N8 f$ y B6 F
ip access-group denyweb in# @4 G( x9 Q6 @$ ]$ z
clock rate 125000
# h# v, k) j% d9 @' {1 N!9 U& Z, b% @! j3 r
- Z0 U8 I/ T! I% D
interface Vlan17 C% \( ]0 w6 D' V) N% Z
no ip address) s; o( x; L% Q
shutdown, X3 m6 h! J6 [" Y \
!" b, |5 S, X; ~7 X
router ospf 11
" Q: A" X# i& d6 I router-id file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png90.90.90.90) T+ h) D+ Z- S' t6 o
log-adjacency-changes
, R% Q! z! v1 r e; W$ {0 W network file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png10.10.10.0 0.0.0.255 area 10
# Y# q9 A2 S: }' g network file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png202.100.1.0 0.0.0.255 area 10
+ v& ^6 s6 a6 N! ?* X: r network 202.100.2.0 0.0.0.255 area 10
: `' A* y) ?: c5 i; I!
3 F1 A4 I$ v! V+ J* F% q! |/ B& Tip classless' k$ r; Y7 g# A/ V% d% {1 W6 X
!) s$ E% J" I0 Z& {7 I: w) ~3 O3 s
ip flow-export version 98 c' I7 h j3 v6 {' B6 l
!: r! T7 f* D( t' d4 n) N$ S
!
; |4 A. k* L8 E% A6 |ip access-list extended denyweb
1 I4 t# G% o4 ]) h, g deny tcp host file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png192.168.2.2 host file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png202.100.2.1 eq www
( h' w1 |. m! w1 U permit ip any host file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png202.100.2.1
' u g' p1 f% i' q9 c( W+ _2 h permit ip any any, [6 A3 O; Z; C: l1 j5 o
!$ L( _% \$ @& p2 t. V2 S, |
!& s6 B* S- c$ c; b
!
/ x3 I3 g/ n3 U/ H9 I2 j!2 l$ D: J" x4 h
end
) ]2 O; v x/ B2 e# t& Y$ r此为R2配置
6 Z3 {% q( D3 F) V8 L8 [; x+ r4 f1 ?3 b" [. |1 x
# K$ f8 w$ _7 s
$ O% O6 I/ p4 c# P
|
|