المقدمة
يصف هذا المستند تكوين لإعداد نفق IPv6، المستند إلى المسار، من موقع إلى موقع بين موجهات Cisco باستخدام بروتوكول تبادل مفتاح الإنترنت الإصدار 1 (IKEv1/ISAKMP).
المتطلبات الأساسية
المتطلبات
توصي Cisco بأن تكون لديك معرفة بالمواضيع التالية:
- معرفة أساسية بتكوين واجهة سطر الأوامر Cisco IOS®/Cisco IOS® XE
- معرفة أساسية ببروتوكول إدارة المفاتيح وارتباط أمان الإنترنت (ISAKMP) وبروتوكولات IPsec
- فهم عنونة IPv6 والتوجيه
المكونات المستخدمة
تستند المعلومات الواردة في هذا المستند إلى إصدارات البرامج التالية:
- IOS XE من Cisco يشغل 17.03.04a كموجه محلي
- برنامج IOS الذي يشغل 17.03.04a كموجه عن بعد من Cisco
تم إنشاء المعلومات الواردة في هذا المستند من الأجهزة الموجودة في بيئة معملية خاصة. بدأت جميع الأجهزة المُستخدمة في هذا المستند بتكوين ممسوح (افتراضي). إذا كانت شبكتك قيد التشغيل، فتأكد من فهمك للتأثير المحتمل لأي أمر.
التكوين
الرسم التخطيطي للشبكة

التكوينات
الموجه المحلي
الخطوة 1. تمكين توجيه البث الأحادي ل IPv6.
ipv6 unicast-routing
الخطوة 2. قم بتكوين واجهات الموجه.
interface GigabitEthernet1
ipv6 address 2001:DB8:0:A::1/64
no shutdown
interface GigabitEthernet2
ipv6 address FC00::1/64
no shutdown
الخطوة 3. تعيين المسار الافتراضي ل IPv6.
ipv6 route ::/0 GigabitEthernet1
الخطوة 4. تكوين نهج المرحلة 1.
crypto isakmp policy 10
encryption aes
authentication pre-share
group 14
الخطوة 5. قم بتكوين حلقة المفاتيح باستخدام مفتاح مشترك مسبقا.
crypto keyring IPV6_KEY
pre-shared-key address ipv6 2001:DB8:0:B::1/128 key cisco123
الخطوة 6. قم بتكوين ملف تعريف ISAKMP.
crypto isakmp profile ISAKMP_PROFILE_LAB
keyring IPV6_KEY
match identity address ipv6 2001:DB8:0:B::1/128
الخطوة 7. تكوين نهج المرحلة 2.
crypto ipsec transform-set ESP-AES-SHA esp-aes esp-sha-hmac
mode tunnel
الخطوة 8. تكوين ملف تعريف IPsec.
crypto ipsec profile Prof1
set transform-set ESP-AES-SHA
الخطوة 9. قم بتكوين واجهة النفق.
interface Tunnel0
no ip address
ipv6 address 2012::1/64
ipv6 enable
tunnel source GigabitEthernet1
tunnel mode ipsec ipv6
tunnel destination 2001:DB8:0:B::1
tunnel protection ipsec profile Prof1
end
الخطوة 10. قم بتكوين المسارات لحركة المرور المفيدة.
ipv6 route FC00::/64 2012::1
التكوين النهائي للموجه المحلي
ipv6 unicast-routing
!
interface GigabitEthernet1
ipv6 address 2001:DB8:0:A::1/64
no shutdown
!
interface GigabitEthernet2
ipv6 address FC00::1/64
no shutdown
!
ipv6 route ::/0 GigabitEthernet1
!
crypto isakmp policy 10
encryption aes
authentication pre-share
group 14
!
crypto keyring IPV6_KEY
pre-shared-key address ipv6 2001:DB8:0:B::1/128 key cisco123
!
crypto isakmp profile ISAKMP_PROFILE_LAB
keyring IPV6_KEY
match identity address ipv6 2001:DB8:0:B::1/128
!
crypto ipsec transform-set ESP-AES-SHA esp-aes esp-sha-hmac
mode tunnel
!
crypto ipsec profile Prof1
set transform-set ESP-AES-SHA
!
interface Tunnel0
no ip address
ipv6 address 2012::1/64
ipv6 enable
tunnel source GigabitEthernet1
tunnel mode ipsec ipv6
tunnel destination 2001:DB8:0:B::1
tunnel protection ipsec profile Prof1
end
!
ipv6 route FC00::/64 2012::1
التكوين النهائي للموجه عن بعد
ipv6 unicast-routing
!
interface GigabitEthernet1
ipv6 address 2001:DB8:0:B::1/64
no shutdown
!
interface GigabitEthernet2
ipv6 address FC01::1/64
no shutdown
!
ipv6 route ::/0 GigabitEthernet1
!
crypto isakmp policy 10
encryption aes
authentication pre-share
group 14
!
crypto keyring IPV6_KEY
pre-shared-key address ipv6 2001:DB8:0:A::1/128 key cisco123
!
crypto isakmp profile ISAKMP_PROFILE_LAB
keyring IPV6_KEY
match identity address ipv6 2001:DB8:0:A::1/128
!
crypto ipsec transform-set ESP-AES-SHA esp-aes esp-sha-hmac
mode tunnel
!
crypto ipsec profile Prof1
set transform-set ESP-AES-SHA
!
interface Tunnel0
no ip address
ipv6 address 2012::2/64
ipv6 enable
tunnel source GigabitEthernet1
tunnel mode ipsec ipv6
tunnel destination 2001:DB8:0:A::1
tunnel protection ipsec profile Prof1
end
!
ipv6 route FC00::/64 2012::1
استكشاف الأخطاء وإصلاحها
استعملت in order to تحريت النفق، ال debug أمر:
- debug crypto isakmp
- خطأ debug crypto isakmp
- debug crypto ipSec
- خطأ تصحيح أخطاء التشفير في بروتوكول IPsec