好消息,超酷的在线虚拟网络实验室上线了!点击开始实验

为获得更好的浏览效果,建议您使用 Firefox 或者 Chrome 浏览器



MSR绯诲垪璺敱鍣

Windows涓绘満杩涜IPv6ND鍜岄潤鎬NATPT缁忛獙鐨勬渚

 

涓銆佺粍缃

MSR鍜屽悇涓绘満杩涜绠鍗曠殑缁勭綉锛岀粍缃戝浘濡備笅

浜屻侀棶棰樻弿杩帮細

鍦ㄥ涓婄粍缃戝強閮ㄥ垎閰嶇疆鍚庯紝瀵熺湅MSR涓婄殑閰嶇疆锛

MSR閰嶇疆

#

 //浣胯兘璁惧IPv6

 ipv6

#

 //閰嶇疆璁惧鐨natpt IPv6渚ч潤鎬侀厤缃紝灏XP IPv6 PC1::215:c5ff:fe0d:1903杞崲鎴2.0.0.1

 natpt v6bound static 0001::0215:c5ff:fe0d:1903 2.0.0.1

 //閰嶇疆natpt鍓嶇紑涓2::

 natpt prefix 0002::

#

interface Ethernet0/0

 port link-mode route

 //閰嶇疆鎺ュ彛鐨IPv6鍦板潃

 ipv6 address 1::1/64

 //鍙栨秷nd ra鐨勬姂鍒

 undo ipv6 nd ra halt

 //浣胯兘NATPT

 natpt enable

#

interface Ethernet0/1

 port link-mode route

 //IPv4渚ф帴鍙e湴鍧

 ip address 1.2.0.1 255.255.255.252

 //浣胯兘NATPT

 natpt enable

#

濡備笂閰嶇疆鍚庯紝浠IPv6涓绘満ping6 2::1.2.0.2

C:\>ping6 2::1.2.0.2

 

Pinging 2::102:2

from 1::b4e5:4ede:bf70:8dea with 32 bytes of data:

 

璇锋眰瓒呮椂銆

璇锋眰瓒呮椂銆

璇锋眰瓒呮椂銆

璇锋眰瓒呮椂銆

 

Ping statistics for 2::102:2:

    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

 

C:\Documents and Settings\Administrator>

浣嗘槸浠IPv4涓绘満ping 2.0.0.1鍗磋兘鎴愬姛锛屼笖绔嬪埢鍦MSR涓婂涓鎿嶄綔锛

<2021>display natpt session all

 

 NATPT Session Info:

 No    IPV6Source                                   IPV4Source             Pro

       IPV6Destination                              IPV4Destination

 1     0002::0102:0002                        ^    0 1.2.0.2        ^    0  ICMP

       0001::0215:c5ff:fe0d:1903              ^    0 2.0.0.1        ^    0

<2021>

涔熷氨鏄濡備笂閰嶇疆鍚庡彧鑳戒粠IPv4涓绘満渚у彂璧疯繛鎺ワ紝鑰屼笉鑳戒粠IPv6渚у彂璧疯繛鎺ャ

涓夈佽繃绋嬪垎鏋愶細

妫鏌IPv6渚т富鏈虹殑IPv6鍦板潃淇℃伅锛

XP IPv6 PCIPv6鍦板潃淇℃伅

C:\Documents and Settings\Administrator>netsh

netsh>interface ipv6

netsh interface ipv6>show address

姝e湪鏌ヨ娲诲姩鐘舵...

 

 

鎺ュ彛 5: Teredo Tunneling Pseudo-Interface

 

鍦板潃绫诲瀷   DAD 鐘舵   鏈夋晥瀵垮懡     棣栭夊鍛     鍦板潃

---------  ---------- ------------ ------------ -----------------------------

閾炬帴         棣栭夐」            infinite     infinite fe80::ffff:ffff:fffd

 

鎺ュ彛 4: 鏈湴杩炴帴

 

鍦板潃绫诲瀷   DAD 鐘舵   鏈夋晥瀵垮懡     棣栭夊鍛     鍦板潃

---------  ---------- ------------ ------------ -----------------------------

涓存椂         棣栭夐」         6d22h57m49s     22h55m2s 1::b4e5:4ede:bf70:8dea

鍏敤         棣栭夐」        29d23h56m56s  6d23h56m56s 1::215:c5ff:fe0d:1903

閾炬帴         棣栭夐」            infinite     infinite fe80::215:c5ff:fe0d:1903

 

鎺ュ彛 2: Automatic Tunneling Pseudo-Interface

 

鍦板潃绫诲瀷   DAD 鐘舵   鏈夋晥瀵垮懡     棣栭夊鍛     鍦板潃

---------  ---------- ------------ ------------ -----------------------------

閾炬帴         棣栭夐」            infinite     infinite fe80::5efe:10.153.43.145

 

鎺ュ彛 1: Loopback Pseudo-Interface

 

鍦板潃绫诲瀷   DAD 鐘舵   鏈夋晥瀵垮懡     棣栭夊鍛     鍦板潃

---------  ---------- ------------ ------------ -----------------------------

鐜洖         棣栭夐」            infinite     infinite ::1

閾炬帴         棣栭夐」            infinite     infinite fe80::1

 

netsh interface ipv6>

鍙互鐪嬪埌鏈湴杩炴帴4涓婃湁2涓棤鐘舵佸湴鍧鑷姩閰嶇疆鐢熸垚鐨IPv6鍦板潃锛屼竴涓槸璺敱鍣natpt v6bound static涓厤缃殑1::215:c5ff:fe0d:1903EUI-64鏂瑰紡鐢熸垚鐨勶級锛屽彟涓涓槸1::b4e5:4ede:bf70:8dea锛堝井杞氳繃MAC Hash鏂规硶鐢熸垚鐨勶級锛岄偅涔堟槸涓嶆槸Windows涓绘満榛樿浣跨敤Hash鐢熸垚鐨勫湴鍧鍛紵閫氳繃Ethereal鍖呮樉绀鏋滅劧浣跨敤鐨勬槸1::b4e5:4ede:bf70:8dea锛屽洜姝ゆ敼鍙IPv6涓绘満涓婄殑鎿嶄綔锛

C:\>ping6 -s 1::215:c5ff:fe0d:1903 2::1.2.0.2

 

Pinging 2::102:2

from 1::215:c5ff:fe0d:1903 with 32 bytes of data:

 

Reply from 2::102:2: bytes=32 time=21ms

Reply from 2::102:2: bytes=32 time=21ms

Reply from 2::102:2: bytes=32 time=21ms

Reply from 2::102:2: bytes=32 time=20ms

 

Ping statistics for 2::102:2:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 20ms, Maximum = 21ms, Average = 20ms

 

C:\>

鐢辨鍙Windows涓绘満榛樿浼氫娇鐢ㄩ氳繃Hash鐢熸垚鐨IPv6鍦板潃锛屽洜姝ゅ彲浠ュ皢MSR鐨勯厤缃敼鎴愶細

MSR閰嶇疆

#

 //閰嶇疆璁惧鐨natpt IPv6渚ч潤鎬侀厤缃紝灏XP IPv6 PC1::b4e5:4ede:bf70:8dea杞崲鎴2.0.0.1

 natpt v6bound static 0001::b4e5:4ede:bf70:8dea 2.0.0.1

 //閰嶇疆natpt鍓嶇紑涓2::

 natpt prefix 0002::

#

MSR鍏朵綑閰嶇疆淇濇寔涓嶅彉鍗冲彲锛

C:\>ping6 2::1.2.0.2

 

Pinging 2::102:2

from 1::b4e5:4ede:bf70:8dea with 32 bytes of data:

 

Reply from 2::102:2: bytes=32 time=22ms

Reply from 2::102:2: bytes=32 time=21ms

Reply from 2::102:2: bytes=32 time=21ms

Reply from 2::102:2: bytes=32 time=21ms

 

Ping statistics for 2::102:2:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 21ms, Maximum = 22ms, Average = 21ms

 

C:\>

 

鍥涖缁撹

寰蒋璁や负閫氳繃EUI-64鏂瑰紡鐢熸垚涓嶅畨鍏紝鍥犱负鍙互浠IPv6鍦板潃鐚滄祴MAC鍦板潃锛屾墍浠ュ井杞嚜琛屾悶浜嗕竴涓Hash鏂瑰紡鐨勫湴鍧锛岃屼笖棣栭変娇鐢ㄨ繖涓湴鍧浣滀负IPv6閫氫俊鐨勬簮鍦板潃銆

浜斻佽В鍐虫柟娉曪細

闈欐NATPT瀹為獙銆傚彲浠ヤ笉鐢ㄧ粨鍚ND锛岃岀粰IPv6涓绘満鍗曠嫭閰嶇疆IPv6鍦板潃锛屽苟鍦IPv6涓绘満鍙戣捣閫氫俊鏃舵姄鍖呭垽鏂浣跨敤鐨IPv6婧愬湴鍧锛屽繀椤讳繚璇佽矾鐢卞櫒涓NATPT閰嶇疆IPv6鍦板潃鍜岄氫俊婧愬湴鍧鐩稿惢鍚銆傚彟澶栦竴涓В鍐冲姙娉曞氨鏄娇鐢ㄥ姩鎬NATPT

X Close
X Close