
一、网络拓扑和实验环境: "( )"接口名称,“ [ ]” 网段标识/ R5 e* f. M; k+ g, b9 Y
) r1 d# A5 t/ ]3 J
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
. M; s# M$ |0 ^/ r6 C- T
* p2 n# Q) f4 X" m+ b- CPC10 PC30:VPCS
4 I& Q( x) ~* }0 mR1: I86BI_LINUX-ADVENTERPRISEK9-M
! @/ g4 C! F5 ^4 i" XISP:C7200-JK9O3S-M# ~1 U& s8 x, Z4 V, u
, w5 k& _' ^/ S/ [' Z二、设备的主要配置
: X' L. f& W/ QPC10> show
, V5 U0 n7 P# i' uNAME IP/MASK GATEWAY MAC LPORT RHOST:PORT" A7 h7 y* y7 u% ], S+ l' m
PC10 0.0.0.0/0 0.0.0.0 00:50:79:66:68:00 10001 10.80.0.100:10000
: ^3 j2 z! S$ P Z+ K fe80::250:79ff:fe66:6800/64
' I. _. ^) Y% m2 D7 _ fec0:10:1:0:2050:79ff:fe66:6800/64 / o, ~. e" F* F8 e( [7 T: ?: T& U
4 e2 |4 C+ o& W& i$ @' I: U) d9 L2 UR1#show running-config
; @$ s' A' R# Y# `$ ^* _Building configuration...$ s9 d* v# ^: c3 k5 ~) a% H# K$ N- u
!/ {8 W+ f! q' T1 `: J: o
hostname R17 W" x; i* z1 D
ip cef$ u9 o% C( o+ x) c, ^8 L4 ^* }: Q
ipv6 unicast-routing' m, x) ~& F: o& S4 {& H. ^! p
ipv6 cef' F: a& k6 {, v+ M+ `5 b( b4 ^8 n
!3 Y, H5 P& c3 m
interface Ethernet0/03 ? ?& W- ~) \3 I( |% J& `
no ip address
& A5 h$ v& t0 s0 ]0 p1 l" M& N nat64 enable
2 c, |" b' J9 { ipv6 address FEC0:10:1::/64 eui-64" h+ O# c0 m* s8 N' Z
ipv6 enable
% u6 M% C9 W: o; E- h5 I!
5 N6 W: _0 y: Q1 o7 m0 ?' q" minterface Serial1/1
) g: v. s& e" e C ip address 172.16.1.1 255.255.255.0
9 C1 n. j# j0 b8 U nat64 enable
; @1 Y) \1 C6 v4 @. P4 Q& r! R serial restart-delay 0- ]; O4 z6 ~3 c. k) V; J9 o6 _
!
0 @" o! }" L/ m& j+ z0 j0 [4 W1 Nip route 0.0.0.0 0.0.0.0 Serial1/1# J9 L5 A# G9 c8 }$ M- K5 i( `2 m
!
8 A; P, ?- W1 Knat64 prefix stateful FEC0:10:3::/96
4 {9 h% {# h# N U0 `" `nat64 v4 pool IPV4POOL 172.16.1.11 172.16.1.12
& T9 b6 X# ?5 Z# Snat64 v6v4 list MYLIST pool IPV4POOL overload
' u3 G+ t' v1 J! Y0 k9 [( g* \& |!
+ H4 a- a* j- x/ y! ~; M$ ?$ yipv6 access-list MYLIST( p7 q. R4 d" T' S
permit ipv6 FEC0:10:1::/48 any
0 A; q% H9 a4 p9 V# [end
7 C" J& M' K+ m7 I6 i) k) L$ bR1# 8 t/ a! {+ A, z! w& T$ @ n, C# D
/ s( M1 L( t; n+ l/ r' xISP#show running-config 4 d! a8 t8 A& h
Building configuration...8 W% q/ a, f& ^0 r* M
!1 [5 v! I/ A9 F% F6 u$ L* G% U* |
hostname ISP# L ? \3 T# M
! & D! C% ^2 M. [* V2 h& U# E
interface FastEthernet0/0
1 V1 v* `& v; Z# ] ip address 10.3.1.3 255.255.255.0
7 Z3 }% Z" n4 e8 G duplex half
* w) o$ ?3 a3 \! i!
6 p& H* L# s0 w( d' winterface Serial1/16 ?: s6 ^# \9 e% X- X
ip address 172.16.1.3 255.255.255.0
* R" D7 V# B r' m! L4 A serial restart-delay 02 B/ l5 s! W) @$ c
clock rate 64000
! b8 w5 V& `& |2 `!+ U% S2 f+ `5 s$ X1 j1 h
end
4 q/ g7 w" ^; q1 Q/ t) k, VISP#
0 F" n/ y# t+ F1 h! n1 X
7 W6 e8 r+ e# D. @PC30> show
8 g% S1 f, E7 t" V& f0 E3 Q$ QNAME IP/MASK GATEWAY MAC LPORT RHOST:PORT! T- J8 u( \7 R
PC30 10.3.1.30/24 10.3.1.3 00:50:79:66:68:02 10005 10.80.0.100:10004
9 j) Z2 ^" k8 r* e+ W* C) g fe80::250:79ff:fe66:6802/64
5 M+ F+ v9 h6 L- ~( w7 @6 p
3 Y4 {$ ?7 Q S& q3 p5 m# J: `三、测试结果
7 I% S0 n& J* z: ]* M" g 1、在R1上测试到PC30的IPv4连通性& x$ \7 L& e8 b& M% z! x
R1#ping 10.3.1.30
5 u0 ]( f B/ l* V: BType escape sequence to abort.
' H: U* _$ z+ `5 Z8 ]/ S* ^. fSending 5, 100-byte ICMP Echos to 10.3.1.30, timeout is 2 seconds:
& H& p+ q; }( T5 S z4 c!!!!!: p. p. _, I1 @ p% j2 J! x
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/20/21 ms: S( Q# Y6 `. `( I$ U {
R1#
2 r0 K6 W- i z" R/ a) J4 d
+ W* _) {$ {, o. c0 q0 C2.从PC10测试到PC30的IPv6连通性(结果失败,求指导); ^1 g0 \4 F' p# L3 W
PC10> ping fec0:10:3::a:3:1:1e (PC30对应的NAT64地址), r8 M! X4 S3 _. Z' S
6 l4 U9 E" r" Dfec0:10:3::a:3:1:1e icmp6_seq=1 timeout/ f3 d; [1 @' e- c6 v& j
fec0:10:3::a:3:1:1e icmp6_seq=2 timeout/ S N$ N" n. D& M8 y
fec0:10:3::a:3:1:1e icmp6_seq=3 timeout
6 f* M. ^& P) Vfec0:10:3::a:3:1:1e icmp6_seq=4 timeout2 ?0 [% }" q& x# @# \# V- U+ I9 K; m( k
fec0:10:3::a:3:1:1e icmp6_seq=5 timeout
' ~' E. G3 d0 _/ K4 G1 w. }% X- B, B7 {* s1 ?
PC10>
4 H; ^: j" d& o$ n6 u/ K
" w2 p5 Z, k- y7 h0 U+ y |
|