IPv6 Over IPv4: Unterschied zwischen den Versionen

Aus Foxwiki
Zeile 70: Zeile 70:
=== Manual IPv6 Over IPv4 Tunnel Verification ===
=== Manual IPv6 Over IPv4 Tunnel Verification ===
To verify our manual IPv6 over IPv4 tunnel configuration, we will use “'''show tunnel interface'''” command. This ommand will give us the detailed information about the tunnel interface.
To verify our manual IPv6 over IPv4 tunnel configuration, we will use “'''show tunnel interface'''” command. This ommand will give us the detailed information about the tunnel interface.
 
Router 1# '''show tunnel interface'''  
<div style="margin-left:1cm;margin-right:1cm;">Router 1# '''show tunnel interface'''</div>
Tunnel0  
 
Mode:GRE/IP, Destination 192.168.1.2, Source 192.168.1.1  
<div style="margin-left:1cm;margin-right:1cm;">Tunnel0</div>
IP transport: output interface GigabitEthernet 0/0/0 next hop 192.168.1.2  
 
Application ID 1: unspecified  
<div style="margin-left:1cm;margin-right:1cm;">Mode:GRE/IP, Destination 192.168.1.2, Source 192.168.1.1</div>
Linestate – current up  
 
Internal linestate – current up, evaluated up  
<div style="margin-left:1cm;margin-right:1cm;">IP transport: output interface GigabitEthernet 0/0/0 next hop 192.168.1.2</div>
Tunnel Source Flags: Local  
 
Transport IPv4 Header DF bit cleared  
<div style="margin-left:1cm;margin-right:1cm;">Application ID 1: unspecified</div>
OCE: IP tunnel decap  
 
Provider: interface Tu0, prot 47  
<div style="margin-left:1cm;margin-right:1cm;">Linestate – current up</div>
Performs protocol check [47]  
 
Protocol Handler: GRE: opt 0x0  
<div style="margin-left:1cm;margin-right:1cm;">Internal linestate – current up, evaluated up</div>
ptype: ipv4 [ipv4 dispatcher: punt]  
 
ptype: ipv6 [ipv6 dispatcher: from if Tu0]  
<div style="margin-left:1cm;margin-right:1cm;">Tunnel Source Flags: Local</div>
ptype: mpls [mpls dispatcher: drop]  
 
ptype: otv [mpls dispatcher: drop]  
<div style="margin-left:1cm;margin-right:1cm;">Transport IPv4 Header DF bit cleared</div>
ptype: generic [mpls dispatcher: drop]  
 
There are 0 tunnels running over the EON IP protocol  
<div style="margin-left:1cm;margin-right:1cm;">OCE: IP tunnel decap</div>
There are 0 tunnels running over the IPinIP protocol  
 
There are 0 tunnels running over the NOSIP protocol  
<div style="margin-left:1cm;margin-right:1cm;">Provider: interface Tu0, prot 47</div>
There are 0 tunnels running over the IPv6inIP protocol  
 
There are 0 tunnels running over the RBSCP/IP protocol  
<div style="margin-left:1cm;margin-right:1cm;">Performs protocol check [47]</div>
Router 2# '''show tunnel interface'''  
 
Tunnel0  
<div style="margin-left:1cm;margin-right:1cm;">Protocol Handler: GRE: opt 0x0</div>
Mode:GRE/IP, Destination 192.168.1.1, Source 192.168.1.2  
 
IP transport: output interface GigabitEthernet 0/0/0 next hop 192.168.1.1  
<div style="margin-left:1cm;margin-right:1cm;">ptype: ipv4 [ipv4 dispatcher: punt]</div>
Application ID 1: unspecified  
 
Linestate – current up  
<div style="margin-left:1cm;margin-right:1cm;">ptype: ipv6 [ipv6 dispatcher: from if Tu0]</div>
Internal linestate – current up, evaluated up  
 
Tunnel Source Flags: Local  
<div style="margin-left:1cm;margin-right:1cm;">ptype: mpls [mpls dispatcher: drop]</div>
Transport IPv4 Header DF bit cleared  
 
OCE: IP tunnel decap  
<div style="margin-left:1cm;margin-right:1cm;">ptype: otv [mpls dispatcher: drop]</div>
Provider: interface Tu0, prot 47  
 
Performs protocol check [47]  
<div style="margin-left:1cm;margin-right:1cm;">ptype: generic [mpls dispatcher: drop]</div>
Protocol Handler: GRE: opt 0x0  
 
ptype: ipv4 [ipv4 dispatcher: punt]  
<div style="margin-left:1cm;margin-right:1cm;">There are 0 tunnels running over the EON IP protocol</div>
ptype: ipv6 [ipv6 dispatcher: from if Tu0]  
 
ptype: mpls [mpls dispatcher: drop]  
<div style="margin-left:1cm;margin-right:1cm;">There are 0 tunnels running over the IPinIP protocol</div>
ptype: otv [mpls dispatcher: drop]  
 
ptype: generic [mpls dispatcher: drop]  
<div style="margin-left:1cm;margin-right:1cm;">There are 0 tunnels running over the NOSIP protocol</div>
There are 0 tunnels running over the EON IP protocol  
 
There are 0 tunnels running over the IPinIP protocol  
<div style="margin-left:1cm;margin-right:1cm;">There are 0 tunnels running over the IPv6inIP protocol</div>
There are 0 tunnels running over the NOSIP protocol  
 
There are 0 tunnels running over the IPv6inIP protocol  
<div style="margin-left:1cm;margin-right:1cm;">There are 0 tunnels running over the RBSCP/IP protocol</div>
There are 0 tunnels running over the RBSCP/IP protocol  
 
<div style="margin-left:1cm;margin-right:1cm;">Router 2# '''show tunnel interface'''</div>
 
<div style="margin-left:1cm;margin-right:1cm;">Tunnel0</div>
 
<div style="margin-left:1cm;margin-right:1cm;">Mode:GRE/IP, Destination 192.168.1.1, Source 192.168.1.2</div>
 
<div style="margin-left:1cm;margin-right:1cm;">IP transport: output interface GigabitEthernet 0/0/0 next hop 192.168.1.1</div>
 
<div style="margin-left:1cm;margin-right:1cm;">Application ID 1: unspecified</div>
 
<div style="margin-left:1cm;margin-right:1cm;">Linestate – current up</div>
 
<div style="margin-left:1cm;margin-right:1cm;">Internal linestate – current up, evaluated up</div>
 
<div style="margin-left:1cm;margin-right:1cm;">Tunnel Source Flags: Local</div>
 
<div style="margin-left:1cm;margin-right:1cm;">Transport IPv4 Header DF bit cleared</div>
 
<div style="margin-left:1cm;margin-right:1cm;">OCE: IP tunnel decap</div>
 
<div style="margin-left:1cm;margin-right:1cm;">Provider: interface Tu0, prot 47</div>
 
<div style="margin-left:1cm;margin-right:1cm;">Performs protocol check [47]</div>
 
<div style="margin-left:1cm;margin-right:1cm;">Protocol Handler: GRE: opt 0x0</div>
 
<div style="margin-left:1cm;margin-right:1cm;">ptype: ipv4 [ipv4 dispatcher: punt]</div>
 
<div style="margin-left:1cm;margin-right:1cm;">ptype: ipv6 [ipv6 dispatcher: from if Tu0]</div>
 
<div style="margin-left:1cm;margin-right:1cm;">ptype: mpls [mpls dispatcher: drop]</div>
 
<div style="margin-left:1cm;margin-right:1cm;">ptype: otv [mpls dispatcher: drop]</div>
 
<div style="margin-left:1cm;margin-right:1cm;">ptype: generic [mpls dispatcher: drop]</div>
 
<div style="margin-left:1cm;margin-right:1cm;">There are 0 tunnels running over the EON IP protocol</div>
 
<div style="margin-left:1cm;margin-right:1cm;">There are 0 tunnels running over the IPinIP protocol</div>
 
<div style="margin-left:1cm;margin-right:1cm;">There are 0 tunnels running over the NOSIP protocol</div>
 
<div style="margin-left:1cm;margin-right:1cm;">There are 0 tunnels running over the IPv6inIP protocol</div>
 
<div style="margin-left:1cm;margin-right:1cm;">There are 0 tunnels running over the RBSCP/IP protocol</div>
 
[https://ipcisco.com/lesson/manual-ipv6-over-ipv4-tunnel-config/ https://ipcisco.com/lesson/manual-ipv6-over-ipv4-tunnel-config/]
[https://ipcisco.com/lesson/manual-ipv6-over-ipv4-tunnel-config/ https://ipcisco.com/lesson/manual-ipv6-over-ipv4-tunnel-config/]
[https://ipcisco.com/cisco-packet-tracer-configuration-examples/ DOWNLOAD Cisco Packet Tracer Configurations]
[https://ipcisco.com/cisco-packet-tracer-configuration-examples/ DOWNLOAD Cisco Packet Tracer Configurations]
'''Test Your&nbsp; IPv6 Knowledge With [https://ipcisco.com/ipv6-quizes/ IPv6 Questions and Answers]!'''
'''Test Your&nbsp; IPv6 Knowledge With [https://ipcisco.com/ipv6-quizes/ IPv6 Questions and Answers]!'''


[[Kategorie:IPv6/Tunnel]]
[[Kategorie:IPv6/Tunnel]]
[[Kategorie:tmp]]
[[Kategorie:tmp]]

Version vom 27. Dezember 2023, 21:02 Uhr

IPv6 Over IPv4

In dieser Lektion IPv6-Tunnelkonfiguration lernen Sie, wie man IPv6 über IPv4-Tunnel manuell konfiguriert. Wie Sie wissen, brauchen wir für den Übergang von IPv4 zu IPv6 manchmal eine Übergangslösung. Die Konfiguration von IPv4 Tunnel für IPv6 auf Dual-Stack-Routern ist ebenfalls eine vorübergehende Lösung während des IPv6 Übergangs.

Für unser IPv6 over IPv4 Tunnel-Konfigurationsbeispiel werden wir die untenstehende einfache Topologie verwenden. Wie Sie in dieser Topologie sehen können, gibt es zwei Seiten, die IPv6-fähig sind. Wir bauen Manual Tunnel zwischen diesen beiden IPv6-Seiten. Auf diese Weise stellen wir die Kommunikation zwischen den beiden Standorten sicher.

Wie bereits erwähnt, ist dies eine vorübergehende Lösung für ein IPv6-fähiges Netzwerk. Mit anderen Worten, dies ist nicht die endgültige Architektur für ein IPv6-Netz. Aber auf dem Weg zu einer solchen Architektur können wir den Manuellen IPv6-über-IPv4-Tunnel verwenden. Neben dieser Technik gibt es auch andere Techniken, die wir für diesen Zweck verwenden können. Diese Techniken sind unten aufgeführt:

  • Manual
  • GRE
  • IPv4- compatible
  • 6to4
  • 6RD
  • ISATAP

Hier werden wir die Manuelle Tunnel Konfiguration vornehme: IPv6 configuration.

Configuration Steps

Creating Tunnel

Der erste Schritt der manuellen IPv6 over IPv4 Tunnel Konfiguration ist die Erstellung des Tunnels. Um dies zu tun, erstellen wir den Tunnel mit der Tunnelnummer mit dem Befehl "interface tunnel tunnel-number". Unsere Tunnelnummer ist 10 für diese Konfiguration.

Router 1# configure terminal
Router 1(config)# interface tunnel 10

Adding IPv6 Address to the Interface

Dann fügen wir eine IPv6-Adresse zu dieser Schnittstelle hinzu. Dies kann manuell oder im IPv6 EUI-64 Format erfolgen. Im Folgenden werden wir die IPv6-Adresse manuell festlegen.

Router 1(config-if)# ipv6 address 2001:111:222:333::1/127

Setting Tunnel Source and Destination Address

Nachdem die IPv6-Adresse des Tunnels festgelegt wurde, werden die Quell- und Ziel-IPv4-Adressen der physikalischen Adresse festgelegt. Wir können hier auch den IPv4-fähigen Schnittstellennamen verwenden. Hier wird die Gigabit-Ethernet-Schnittstelle 0/0/0 des Routers als Quelle und die IPv4-Adresse der Zielschnittstelle als Tunnelzieladresse verwendet.

Das Format des Befehls tunnel source ist unten angegeben:

tunnel source {ip-address | ipv6-address | interface-type interface-number}

Das Format des Tunnelbestimmungsbefehls ist im Folgenden dargestellt:

tunnel destination {host-name | ip-address | ipv6-address}
Router 1(config-if)# tunnel source GigabitEthernet 0/0/0
Router 1(config-if)# tunnel destination 192.168.1.1

Tunnelmodus einstellen

Der letzte Schritt zur manuellen IPv6-über-IPv4-Tunnelkonfiguration ist das Einstellen des Tunnelmodus. Hier können wir auch andere Tunnelmodi einstellen, aber hier konfigurieren wir Manual IPv6 Tunnel. Wir wählen also den Modus 'ipv6ip'. Das Format dieses Befehls ist unten angegeben

tunnel mode {aurp | cayman | dvmrp | eon | gre| gre multipoint | gre ipv6 | ipip [decapsulate-any] | iptalk | ipv6 | mpls | nos
Router 1(config-if)# tunnel mode ipv6ip

Die vollständigen Befehle sehen auf Router 1 wie folgt aus:

Router 1# configure terminal
Router 1(config)# interface tunnel 10
Router 1(config-if)# ipv6 address 2001:111:222:333::1/127
Router 1(config-if)# tunnel source GigabitEthernet 0/0/0
Router 1(config-if)# tunnel destination 192.168.1.1
Router 1(config-if)# tunnel mode ipv6ip
Router 1(config-if)# end
Router 1# write

IPv6 Over IPv4 GRE Tunnel Configuration on Router 2

Jetzt werden wir diese Manuelle IPv6-über-IPv4-Tunnelkonfiguration auf Roouter 2 durchführen.

Router 2# configure terminal
Router 2(config)# interface tunnel 10
Router 2(config-if)# ipv6 address 2001:111:222:333::2/127
Router 2(config-if)# tunnel source GigabitEthernet 0/0/0
Router 2(config-if)# tunnel destination 192.168.1.2
Router 2(config-if)# tunnel mode ipv6ip
Router 2(config-if)# end
Router 2# write

Manual IPv6 Over IPv4 Tunnel Verification

To verify our manual IPv6 over IPv4 tunnel configuration, we will use “show tunnel interface” command. This ommand will give us the detailed information about the tunnel interface.

Router 1# show tunnel interface 
Tunnel0 
Mode:GRE/IP, Destination 192.168.1.2, Source 192.168.1.1 
IP transport: output interface GigabitEthernet 0/0/0 next hop 192.168.1.2 
Application ID 1: unspecified 
Linestate – current up 
Internal linestate – current up, evaluated up 
Tunnel Source Flags: Local 
Transport IPv4 Header DF bit cleared 
OCE: IP tunnel decap 
Provider: interface Tu0, prot 47 
Performs protocol check [47] 
Protocol Handler: GRE: opt 0x0 
ptype: ipv4 [ipv4 dispatcher: punt] 
ptype: ipv6 [ipv6 dispatcher: from if Tu0] 
ptype: mpls [mpls dispatcher: drop] 
ptype: otv [mpls dispatcher: drop] 
ptype: generic [mpls dispatcher: drop] 
There are 0 tunnels running over the EON IP protocol 
There are 0 tunnels running over the IPinIP protocol 
There are 0 tunnels running over the NOSIP protocol 
There are 0 tunnels running over the IPv6inIP protocol 
There are 0 tunnels running over the RBSCP/IP protocol 
Router 2# show tunnel interface 
Tunnel0 
Mode:GRE/IP, Destination 192.168.1.1, Source 192.168.1.2 
IP transport: output interface GigabitEthernet 0/0/0 next hop 192.168.1.1 
Application ID 1: unspecified 
Linestate – current up 
Internal linestate – current up, evaluated up 
Tunnel Source Flags: Local 
Transport IPv4 Header DF bit cleared 
OCE: IP tunnel decap 
Provider: interface Tu0, prot 47 
Performs protocol check [47] 
Protocol Handler: GRE: opt 0x0 
ptype: ipv4 [ipv4 dispatcher: punt] 
ptype: ipv6 [ipv6 dispatcher: from if Tu0] 
ptype: mpls [mpls dispatcher: drop] 
ptype: otv [mpls dispatcher: drop] 
ptype: generic [mpls dispatcher: drop] 
There are 0 tunnels running over the EON IP protocol 
There are 0 tunnels running over the IPinIP protocol 
There are 0 tunnels running over the NOSIP protocol 
There are 0 tunnels running over the IPv6inIP protocol 
There are 0 tunnels running over the RBSCP/IP protocol 

https://ipcisco.com/lesson/manual-ipv6-over-ipv4-tunnel-config/ DOWNLOAD Cisco Packet Tracer Configurations Test Your  IPv6 Knowledge With IPv6 Questions and Answers!