
一、网络拓扑和实验环境: "( )"接口名称,“ [ ]” 网段标识
2 _2 ]& J1 Q- f) f7 ?$ f2 }8 n+ |. ]/ e z) d
PC10 (e0)----[fec0:10:1::/64]----(e0/0)R1(Serial1/1)----[172.16.1.0/24]----(Serial1/1)ISP(fas0/0)----[10.3.1.0/24]----(e0/0)PC30
( H' N# ^3 W: u& R, q2 C$ Q
1 I4 k" r0 S; A5 b) h6 e; w5 o( CPC10 PC30:VPCS' z: g& m- j9 Q) U: B3 l" P
R1: I86BI_LINUX-ADVENTERPRISEK9-M( Q+ _; H: r' W" H( l
ISP:C7200-JK9O3S-M
- K f: \, ]& |( s9 l" g9 L; o
: d1 U+ }$ O( h- T7 ?( l1 \5 s% W0 z二、设备的主要配置
1 l4 |* C; \' @+ V- C3 ]PC10> show1 ^- k) n0 O5 C$ ]
NAME IP/MASK GATEWAY MAC LPORT RHOST:PORT8 Q/ ]( H$ s: L
PC10 0.0.0.0/0 0.0.0.0 00:50:79:66:68:00 10001 10.80.0.100:10000; `6 T5 P; t6 l$ v9 S* u
fe80::250:79ff:fe66:6800/647 a& Z. Y5 c/ v- |$ a C
fec0:10:1:0:2050:79ff:fe66:6800/64
9 X: g; s' j- ?( K' r* F0 Y( M$ J2 a! t; F8 k/ y. p" P4 g' p
R1#show running-config ( ~0 Z; q2 u- U1 ?9 W9 i, q
Building configuration...+ @1 O; ]- l9 }) A2 \
!
2 h1 Q' u& |4 F. h, Yhostname R1
, s |- D/ F' j( I- R8 Y2 Yip cef6 v3 I; t/ \3 |7 j- z: U" F% F
ipv6 unicast-routing R% X/ l" s) _* S8 u
ipv6 cef H4 F& E& e* k1 a7 F
!
, b9 E/ Q/ H+ g" {+ S0 I0 Ainterface Ethernet0/0
% w7 [: R8 v0 ]% F4 N/ \( C no ip address
; o3 n7 |, ]( T/ @! U- i% I nat64 enable
! }0 U' Z9 @# Z; u ipv6 address FEC0:10:1::/64 eui-643 ^' C1 s1 h# }. ^! M2 h
ipv6 enable
# n' ]# U8 l2 U. [( p!2 K' h1 f: l2 p1 j5 ^3 }
interface Serial1/1
% {% ~% g2 _% k' T5 U ip address 172.16.1.1 255.255.255.0( t# m7 \5 ~2 v
nat64 enable, y0 g) H" i0 ?! u+ @, B l
serial restart-delay 0% l- t( t/ j# J5 c3 P' m
!9 V! {. E$ F9 `% R# D3 o/ n X
ip route 0.0.0.0 0.0.0.0 Serial1/1& B9 z. R: S9 T6 ^
!
! q( X! ]5 d, ]$ ?% J( ]nat64 prefix stateful FEC0:10:3::/963 x1 {7 r( V8 c3 k& Z
nat64 v4 pool IPV4POOL 172.16.1.11 172.16.1.12 R) X8 J; ]+ E" R+ X% C R
nat64 v6v4 list MYLIST pool IPV4POOL overload6 Z3 t/ d$ p- G- |! X) m% a6 v0 K
!! r! ?% `- }6 ]* v% t# Q
ipv6 access-list MYLIST0 C$ D4 _* K2 I6 X% `+ o
permit ipv6 FEC0:10:1::/48 any
2 m' C3 j! n( k) Z# I% i6 yend1 K4 G# j! K) g" X {8 F% {+ h
R1# $ x, V( s+ s/ _- g2 q4 F0 d
9 e1 m5 g* Z- V; x
ISP#show running-config
" b( P3 E4 i9 pBuilding configuration...
( C% h2 A& G* ?9 x!" N% n8 e' d% r0 g7 m# u
hostname ISP
O# c4 ^" j9 ^. ~6 g!
0 H- a. e( n7 p4 @# u4 K" @! a) ginterface FastEthernet0/05 w; o( {* c$ e$ n+ _' o
ip address 10.3.1.3 255.255.255.0
% a9 G% D C9 d( x0 i' ~# O- H+ M( ` duplex half# d) Q8 \5 `) l: h* @
!
0 r- ~' M9 @9 V5 a7 n' G4 X* J* ointerface Serial1/1* n( E+ u [4 H% A K
ip address 172.16.1.3 255.255.255.0
0 Q/ M; e4 W5 l! S- ^ serial restart-delay 0- Z/ I; w1 p% Y2 x4 j
clock rate 640002 J. p7 \ P; I: E5 o( h: L
!
& ]2 o' c' P+ s7 G; T2 ?end
9 t9 K" {( Y8 Z* k- [ISP#
9 ?9 ^3 y2 [* R$ i2 K" }. f; Q- o4 V" T; y
PC30> show0 d8 b1 y, m1 y1 P5 {1 u: y
NAME IP/MASK GATEWAY MAC LPORT RHOST:PORT
7 w/ M- r; j( Y+ s. WPC30 10.3.1.30/24 10.3.1.3 00:50:79:66:68:02 10005 10.80.0.100:10004
2 r4 `* j2 A% y, m. U. p" _$ | fe80::250:79ff:fe66:6802/64
Y' u& H; g" k
- S4 I0 Z1 r |& G1 B2 g三、测试结果
0 ~" Q1 Y% ^7 ] 1、在R1上测试到PC30的IPv4连通性
/ P m, i; t! w4 e0 cR1#ping 10.3.1.30# A! _: a/ |# G/ ` Q( @+ }" Z
Type escape sequence to abort.
+ S! H1 b2 q% }Sending 5, 100-byte ICMP Echos to 10.3.1.30, timeout is 2 seconds:
+ e" q0 M! _ Q( v8 D9 O$ ]!!!!!
8 l& h5 N3 c* l+ _% q3 H. fSuccess rate is 100 percent (5/5), round-trip min/avg/max = 20/20/21 ms
9 } f4 q0 m h/ V: PR1#
" M+ J# {, v# c5 B" l2 F, ]4 g6 w4 a( Z6 t2 ]# B# O
2.从PC10测试到PC30的IPv6连通性(结果失败,求指导)* f) a, p8 B5 l6 E! Z$ M5 Y
PC10> ping fec0:10:3::a:3:1:1e (PC30对应的NAT64地址). e7 B7 f5 l8 d, \, Q E1 p
7 ]; W8 u2 ?- ^
fec0:10:3::a:3:1:1e icmp6_seq=1 timeout! G$ K, Y( s0 `/ J' \
fec0:10:3::a:3:1:1e icmp6_seq=2 timeout
) }. [/ D5 {2 N* F pfec0:10:3::a:3:1:1e icmp6_seq=3 timeout
3 O. ^4 j; V$ xfec0:10:3::a:3:1:1e icmp6_seq=4 timeout
- U+ B$ k# I2 U& Z( L2 cfec0:10:3::a:3:1:1e icmp6_seq=5 timeout U6 x% M5 M. Q: [: b* ?3 p7 j" r
( L' p5 z8 k+ C
PC10> 9 J% ~8 c% ~9 s( m9 F9 r- X
, r1 @0 z/ l: t: n* X |
|