马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
http://38.121.62.70/forum.php?mod=attachment&aid=MTk3fGY0NjNkZGZkfDE3NzU2OTc1NTB8MHw%3D C:\Documents and Settings\xiaofei>ping 10.1.1.2 Pinging 10.1.1.2 with 32 bytes of data: Request timed out.! _: w9 v* _" z4 F! e
Request timed out.
4 L* K" F, M8 Z8 oRequest timed out.& R; \% A+ @; @. b; e. ~: Y& o3 y" p
Request timed out. Ping statistics for 10.1.1.2:
5 {# T% o: n6 N A! f Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), C:\Documents and Settings\xiaofei>ping 192.168.3.2 Pinging 192.168.3.2 with 32 bytes of data: Request timed out.; L. L$ E1 v) }9 `# ` V1 r
Request timed out.9 Z# @; j: A2 Z$ A$ L0 } a
Request timed out.5 O" c# ]& k& V: c7 q
Request timed out. Ping statistics for 192.168.3.2:
6 i1 f' t% {) c! J2 B Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), C:\Documents and Settings\xiaofei> PCA处于单独一个网段,想要访问PCB,通过路由转发数据跨网段需要做路由,此时可以使用静态路由来实现。 [RTA]ip route-static 192.168.3.0 255.255.255.0 10.1.1.2 指定目标网段以及下一跳出口 [RTB]ip route-static 192.168.2.0 255.255.255.0 10.1.1.1 此时RTA,B上都有对端网段的路由: [h3c1]disp ip routing-table * k0 O4 s3 v" N& J2 \
Routing Tables: Public% N7 O7 {8 e& w
Destinations : 8 Routes : 8 Destination/Mask Proto Pre Cost NextHop Interface 10.1.1.0/24 Direct 0 0 10.1.1.1 S0/0/0
! W! y7 T9 n* w$ R3 g9 c. ^! X10.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0) x9 ~; M' l- G( I
10.1.1.2/32 Direct 0 0 10.1.1.2 S0/0/0: R9 c2 K/ l `8 l+ i7 X/ F
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
. k1 w6 s7 b+ z# a127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
- e7 {4 Q6 P9 ^" u* Q# u6 Q192.168.2.0/24 Direct 0 0 192.168.2.1 Eth0/1/0
0 x) {! i$ @ v192.168.2.1/32 Direct 0 0 127.0.0.1 InLoop0
1 l" f( q6 r! B& L% b9 F) \192.168.3.0/24 Static 60 0 10.1.1.2 S0/0/0
, ^& k2 t* ~5 C* N [h3c2]disp ip routing-table
3 W" G' }8 p. y6 l/ U ^- W; i6 @$ kRouting Tables: Public* Q9 C0 ~9 V T. E0 c& e! ]
Destinations : 7 Routes : 7 Destination/Mask Proto Pre Cost NextHop Interface 10.1.1.0/24 Direct 0 0 10.1.1.2 S0/0/0% j5 q5 }' ~' q' b: z4 w
10.1.1.1/32 Direct 0 0 10.1.1.1 S0/0/0
& G5 G0 [2 @! t7 y+ x2 f10.1.1.2/32 Direct 0 0 127.0.0.1 InLoop00 W! O- M2 ]* _3 v; c; C3 B, o4 W0 B
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0+ ?1 ~2 N/ @9 Q ^! \
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
) I9 C) `6 w$ Q7 a$ \# I2 o192.168.2.0/24 Static 60 0 10.1.1.1 S0/0/0
) N. X" g+ o6 T8 Z( |1 J9 B192.168.3.2/32 Direct 0 0 127.0.0.1 InLoop0
+ ^0 W& ?) Q/ F" k) {6 B 此时PCAPCB可以相互访问; C:\Documents and Settings\xiaofei>ping 192.168.3.2 Pinging 192.168.3.2 with 32 bytes of data: Reply from 192.168.3.2: bytes=32 time=1ms TTL=254# f4 w/ a3 [1 j3 ?' a
Reply from 192.168.3.2: bytes=32 time=1ms TTL=254; P6 Q; w# [0 s% w9 ]# M" e/ ^
Reply from 192.168.3.2: bytes=32 time=3ms TTL=254
# W& w1 F R- x* ^Reply from 192.168.3.2: bytes=32 time=1ms TTL=254 Ping statistics for 192.168.3.2:2 [8 c' Y5 V- w
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
, H, q, k# L0 A2 w. g( y2 xApproximate round trip times in milli-seconds:0 Q1 a' j1 q9 L' u
Minimum = 1ms, Maximum = 3ms, Average = 1ms
; R& b6 }* u" H( U# s' R RTA试用扩展PING从源地址ping目标成功。
6 K4 o% K5 M/ H- i3 k[h3c1]ping -a 192.168.2.1 192.168.3.2& }9 M% T, G3 c7 `8 j& R! d
PING 192.168.3.2: 56 data bytes, press CTRL_C to break
n. }0 m$ L0 u2 Z! Z$ y, x Reply from 192.168.3.2: bytes=56 Sequence=1 ttl=255 time=5 ms3 A+ z. M# v# m( Q I, z
Reply from 192.168.3.2: bytes=56 Sequence=2 ttl=255 time=20 ms
1 @7 |& D; v9 }9 r Reply from 192.168.3.2: bytes=56 Sequence=3 ttl=255 time=1 ms+ E. K' E: e* ]% t4 s. b
Reply from 192.168.3.2: bytes=56 Sequence=4 ttl=255 time=1 ms
6 u' Y- g, i2 g( ^" u$ Z& f Reply from 192.168.3.2: bytes=56 Sequence=5 ttl=255 time=10 ms --- 192.168.3.2 ping statistics ---
5 t2 ~4 r: U8 Y+ n; ?0 Y 5 packet(s) transmitted
/ z1 V9 w3 L. R0 O 5 packet(s) received
% b* w) \+ r; I4 N; v- I6 {# o 0.00% packet loss4 b8 P$ r6 M" D$ V+ C: ]# W) h5 H8 x
round-trip min/avg/max = 1/7/20 ms 用路由追踪发现经过的路由到达目的网络。 C:\Documents and Settings\xiaofei>tracert 192.168.3.2 Tracing route to 192.168.3.2 over a maximum of 30 hops 1 <1 ms <1 ms <1 ms 192.168.2.1
" J% C/ q' M/ h 2 1 ms <1 ms <1 ms 192.168.3.2 Trace complete.
) M* a1 Q. b- y( V9 ]1 i0 W |