|
|
(24 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) |
Zeile 1: |
Zeile 1: |
| == IPv6 Over IPv4 ==
| | #WEITERLEITUNG [[6over4]] |
| In this '''IPv6 Tunnelling Configuration''' lesson, you will learn how to configure '''IPv6 over IPv4 Tunnel '''manually. As you know, for transition from [https://ipcisco.com/lesson/ip-addressing-ipv4/ IPv4] to IPv6, sometimes we need a temporary solution. Configuring '''IPv4 Tunnel for IPv6''' on dual-stack routers is also a temporary solution during [https://ipcisco.com/lesson/ipv6-address/ IPv6] transition.
| | [[Kategorie:Glossar]] |
| | |
| For our '''IPv6 over IPv4 Tunnel''' configuration example, we will use the below simple topology. As you can see in this topology, there are two sides that are [https://ipcisco.com/lesson/ipv6-address/ IPv6 capable]. We build '''Manual''' '''Tunnel''' between these two IPv6 sites. By doing this, we provide these two sites’ communication.
| |
| | |
| As I mentioned before, this is a temporary solution towards an '''IPv6 capable''' network. In other words, this is not the final architecture for IPv6 network. But, towards such an architecture, we can use '''Manual IPv6 over IPv4 Tunnel'''. Beside this technique, there are also other techniques that we can use for this purpose. These techniques are given below:
| |
| * '''Manual'''
| |
| * '''GRE'''
| |
| * '''IPv4- compatible'''
| |
| * '''6to4'''
| |
| * '''6RD'''
| |
| * '''ISATAP'''
| |
| | |
| Here, we will do '''Manual Tunnel''' '''Configuration''' for this [https://ipcisco.com/lesson/ipv6-configuration-on-cisco-packet-tracer/ IPv6 configuration].
| |
| | |
| == Manual IPv6 Over IPv4 Tunnel Configuration Steps ==
| |
| === Creating Tunnel ===
| |
| The first step of configuring '''manual''' '''IPv6 over IPv4 Tunnel''' is creating the tunnel. To do this, we will create the tunnel with the tunnel number with “'''interface tunnel tunnel-number'''” command. Our tunnel number is '''10''' for this configuration.
| |
| Router 1# '''configure terminal'''
| |
| Router 1(config)# '''interface tunnel 10'''
| |
| | |
| === Adding IPv6 Address to the Interface ===
| |
| Then, we will add '''IPv6 address''' to this interface. We can do this manually or with '''IPv6 EUI-64 format'''. Below, we will set IPv6 address manually.
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1(config-if)# '''ipv6 address 2001:111:222:333::1/127'''</div>
| |
| | |
| === Setting Tunnel Source and Destination Address ===
| |
| After setting IPv6 address of the tunnel, we will set source and destination IPv4 addresses of the physical address. We can also use '''IPv4 enabled interface name''' here. Here, we will use Gigabit Ethernet 0/0/0 interface of the router as source and the IPv4 address of the destination interface as tunnel destination address.
| |
| | |
| The format of tunnel source command is given below:
| |
| | |
| '''tunnel source {ip-address | ipv6-address | interface-type interface-number}'''
| |
| | |
| The format of tunnel destination command is gven below:
| |
| | |
| '''tunnel destination {host-name | ip-address | ipv6-address}'''
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1(config-if)# '''tunnel source GigabitEthernet 0/0/0'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1(config-if)# '''tunnel destination 192.168.1.1'''</div>
| |
| | |
| === Setting Tunnel Mode ===
| |
| The last step to configure '''manual''' '''IPv6 Over IPv4 tunnel configuration''' is, setting the tunnel mode. Here, we can set other tunnel modes also but here, we are configuring '''Manual IPv6 Tunnel'''. So, we will select “'''ipv6ip'''” mode.
| |
| | |
| The format of this command is given below:
| |
| | |
| tunnel mode {aurp | cayman | dvmrp | eon | gre| gre multipoint | gre ipv6 | ipip [decapsulate-any] | iptalk | ipv6 | mpls | nos
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1(config-if)# '''tunnel mode ipv6ip'''</div>
| |
| | |
| The complete commands will be like below on '''Router 1''':
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1# '''configure terminal'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1(config)# '''interface tunnel 10'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1(config-if)# '''ipv6 address 2001:111:222:333::1/127'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1(config-if)# '''tunnel source GigabitEthernet 0/0/0'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1(config-if)# '''tunnel destination 192.168.1.1'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1(config-if)# '''tunnel mode ipv6ip'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1(config-if)# '''end'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1# '''write'''</div>
| |
| | |
| === IPv6 Over IPv4 GRE Tunnel Configuration on Router 2 ===
| |
| Now we will do this '''Manual''' '''IPv6 over IPv4 Tunnel Configuration''' on Roouter 2.
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 2# '''configure terminal'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 2(config)# '''interface tunnel 10'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 2(config-if)# '''ipv6 address 2001:111:222:333::2/127'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 2(config-if)# '''tunnel source GigabitEthernet 0/0/0'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 2(config-if)# '''tunnel destination 192.168.1.2'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 2(config-if)# '''tunnel mode ipv6ip'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 2(config-if)# '''end'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 2# '''write'''</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;"> </div>
| |
| | |
| === 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.
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">Router 1# '''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.2, Source 192.168.1.1</div>
| |
| | |
| <div style="margin-left:1cm;margin-right:1cm;">IP transport: output interface GigabitEthernet 0/0/0 next hop 192.168.1.2</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>
| |
| | |
| <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/cisco-packet-tracer-configuration-examples/ DOWNLOAD Cisco Packet Tracer Configurations]
| |
| | |
| | |
| '''Test Your IPv6 Knowledge With [https://ipcisco.com/ipv6-quizes/ IPv6 Questions and Answers]!'''
| |
| | |
| [[Kategorie:IPv6/Tunnel]]
| |
| [[Kategorie:tmp]] | |