
50金币
|
PT模拟器里的一个ping的路由交换问题(拓扑+配置)
) |1 n" p9 B: l9 {! Q& U$ C \, A# h2 G1 }
PC1能ping通R1的se0/0/0,为什么ping不通R2和R2身后的网段,求解6 P; t) }* `# l. Y: _, }; O
r1#show run
7 v( O3 p& }) a- f$ A" c; o2 ZBuilding configuration...: q9 n x( Y# [" U
& [: j2 e; s n+ A
Current configuration : 1794 bytes
% l- g& ^2 {! c& M1 l# s, n& @9 x( x!
1 o! z- Y( W$ j* Z* x/ D" jversion 15.1- I) }8 L0 {( E7 E& u
no service timestamps log datetime msec
. |9 m# [6 {/ sno service timestamps debug datetime msec2 A( r4 E1 K' V) v3 F* K
service password-encryption( v3 {- e5 q7 |
!
T+ c8 k$ F" N4 t r" L, ahostname r16 z, Z1 ?; Y# @) l
!. f# l3 W8 {1 X4 Z
0 s3 H4 g1 R7 h% v6 F3 P
username r2 password 7 0822455D0A163 v% C! j; K) R) |& H: ~
!) S4 p$ D- L0 N, f1 x
!$ y+ K& j( n* n3 V' i2 r- I- @
license udi pid CISCO2911/K9 sn FTX15245Y0J
4 y, N1 f1 R1 P8 ?9 ]: i2 ~! Z: K. u!9 N2 j. S7 K6 x p) v4 F% l) h8 }- \
!; e f: u9 b2 V, ^3 v+ u" o/ J
% \6 H# O/ j5 K0 t6 S2 \!( w: _9 j' y3 S. v3 L- z$ `( W2 {
spanning-tree mode pvst
; k9 F7 |2 ^1 ]% [ _ F. t# \$ }!+ v" O* X* C7 ^2 e
5 i4 m2 k$ i' Y, D
!
2 g8 _5 h+ E6 N Y0 u+ A3 sinterface Loopback0* k W; Z/ z' p6 {, B e! H' P
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
& j" P9 w$ ]' f, H5 \+ c!( ~' P( _6 C& l" [1 a' t3 ` b
interface GigabitEthernet0/0
0 V# a/ j/ T4 u, W no ip address
# C' ~* m7 H2 L# W2 H' X duplex auto. u/ c( y x6 ~7 x7 j7 H; i! Y
speed auto
8 J6 _8 y! q2 R!1 }9 o% {/ O. G( {, `
interface GigabitEthernet0/0.100 @4 [: T I( j7 y/ {
encapsulation dot1Q 101 a7 E6 r; |9 ?. v2 i
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.0
7 s0 g3 E) u* l; P ip access-group 110 in2 r( {' F' K2 S
ip nat inside! P' P9 t! w$ B. u( K, S
!( P3 H' \( M0 s$ l) b6 E& W
interface GigabitEthernet0/0.11
) N0 |! ^6 |) F M: }$ X encapsulation dot1Q 112 A( |( x, [* X2 B
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
8 `( E0 d6 i. E ip nat inside
& k' U( @: i6 M# S
& q( c# c8 z& v- r4 d" E- D, \0 x- v!
2 G2 x$ d6 o3 e! sinterface Serial0/0/0
4 _* R1 `# _, Z- D; N6 U% L7 o bandwidth 100009 L7 k) b+ Q9 P) r) f
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" P2 u4 R' O0 c( ^0 P- r
encapsulation ppp ~ K4 @5 [# |& y6 Z( a
ppp authentication chap& M: s2 i5 h& Q4 K2 v; }- ?. i% b7 }
ip nat outside
* j; B7 B& {' ^( r6 M: \1 x' [& s! s2 _6 u, s
interface Vlan1) R1 y4 b) ]/ a2 `
no ip address
& t; ]/ E2 P' z shutdown6 N, s$ {/ l! [2 a. d
!
: \% b+ d( D# K) W& Urouter ospf 10
1 {' e" J$ N; _, y3 d# D+ X1 q- q router-id file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png100.100.100.100! |+ h8 A+ Q( n! V$ B. f0 X0 H7 J
log-adjacency-changes3 R9 j' I; k! E0 g; T4 B& o3 X
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: q$ v, F# P7 o( }: x& z5 d
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
- G) ?, @" f5 n3 e5 F Q8 ]5 |, h!
* j- U7 h$ I6 q' M# Rip 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.2249 T# K) C) A+ ]' _7 p: @4 Y
ip nat inside source list 5 pool mapp-address' g: K2 j5 @5 @ L
ip classless
+ I" Y- `+ M: ?5 k; r: U. d!
- y+ e4 C! D) r8 U/ j0 }8 w% G0 C9 K+ q8 _
access-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
, c& A# m5 U3 Z2 D2 K8 faccess-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
$ |7 `. @8 a9 E4 v6 X# Yaccess-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, R. u3 B: [; y9 {2 A7 T8 y
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
& a" U, R4 n$ V3 V& _access-list 110 permit ip host file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png192.168.1.1 any9 h0 S& P4 ^2 y& c/ D$ A1 R, S
access-list 110 permit ip any any# K4 E8 a* \9 r7 I! O, n! s1 Y
$ u7 F- E5 y& J7 K3 O4 c7 {$ ~. u, u- l# j; g4 h1 v
' d) S2 G; @1 L n5 h
) A6 l& {/ }5 P& ^, v
r2#sho run) c. D. z6 G# D' b0 b
Building configuration...3 K1 S1 l4 x, S+ |# @
, ^8 g: ^3 p" T
!
1 H' t! c8 f- ^, E4 |hostname r2
* P: [4 p5 [' M0 {, T!( v; D- ]6 w X# v \) O; F: Z( k
/ `3 u4 C. Q% R!
3 [7 \- [! f c! K* C; X# ousername r1 password 7 0822455D0A16
/ p3 E: g2 O$ r) Z, l!
' @) t. h0 @2 s1 b!
. U) v/ C( C8 p8 s4 Y# b. C0 I# Vlicense udi pid CISCO2911/K9 sn FTX1524168Z
) L! b( G9 G& L$ N) F& O/ `, E$ M' A
!
! h8 X0 F( ~( b+ D& t; b) U. l!
# g/ T( X/ G0 l, @3 e7 t9 ispanning-tree mode pvst
$ g& \9 b8 s% r. k0 \!
4 U7 C! q: P) z y/ F3 u8 O4 H, K& I
!& h: R& _5 [0 V0 v+ u
interface Loopback0! K$ I4 z B' r" L. R
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
6 s: b: `+ u; B ^!8 X4 h# {% t( W6 Z6 N. y9 ?
interface GigabitEthernet0/0
$ x, ]* d$ j i7 O/ f 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
" T; B$ c/ R# _+ w1 V duplex auto7 `- u" f2 w' i: s( J8 O% L9 U
speed auto
' G; U% E/ H4 i$ y( x
, M$ p; c2 ?! Ointerface Serial0/0/0
) E3 T9 ?3 f# \6 r9 S3 S* F bandwidth 10000: d: d; r) f( b! t
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.2528 }7 D6 Q6 V* C( x5 K p
encapsulation ppp+ R+ e* P! ^( j, M( C$ R' ~
ppp authentication chap* y& `% O; w# T& {( B
ip access-group denyweb in, M3 p8 c. Z# p4 |" s/ w
clock rate 125000
) @" j2 ]% X, Z- E- X& L$ U!; z/ f# C% _" r: ?, V" _7 j
+ `. j% X$ X! h. ~interface Vlan11 r. f( U; O2 E( n
no ip address
3 ~8 A! \, s; p9 _ shutdown
% |" ^8 j4 e& `" X- r' h!# M6 p- o5 A, M% x3 n
router ospf 112 @3 H* x! o' Z2 z O
router-id file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png90.90.90.90
3 P6 D. _) z6 i# _2 a9 m/ N log-adjacency-changes/ q) X: x. r1 `& }
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
5 ~: J1 G6 ^8 ` network file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png202.100.1.0 0.0.0.255 area 108 i0 e. j: j3 ~- r
network 202.100.2.0 0.0.0.255 area 106 ?: N0 O3 E3 X! Y9 _* a: r
!# u% d1 @% N* t8 H L
ip classless
$ V, }- V7 e& b8 a7 B3 [, R; z! n!
* G0 v0 ^( F. d8 a& aip flow-export version 9
' k! j& S- i. _0 {!
0 _" J, b8 f; L2 w) ^' b+ [!
$ t6 T9 ]# n* q2 Jip access-list extended denyweb- _+ h |* U$ I6 t0 o( S
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) C! w& w* J, w V3 W# I: P
permit ip any host file:///C:\Users\vlan5.com\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png202.100.2.1
/ W* L9 u; |8 e- d1 m9 C# W% N1 ?: u permit ip any any/ W3 M5 c( W1 h! Q8 {# O
!3 r& Q8 h5 O0 [2 ~6 d
!
* @- D' n0 E7 x6 X0 p3 v* l% J!
8 }+ d: W7 z9 T" k1 @ V" J& g!
5 T' Q7 d+ d/ W3 U& Cend 7 R9 C) D/ y/ b$ J; f/ [
此为R2配置
# I2 j9 d; W8 M$ {
" j; W6 b: z! W
, e" r$ r" o+ A' P1 g7 I+ r* I$ ^5 K% i
|
|