H3C MSR1000[2600][3600] Routers Configuration Examples All-in-One-R9141-6W100

HomeSupportConfigure & DeployConfiguration ExamplesH3C MSR1000[2600][3600] Routers Configuration Examples All-in-One-R9141-6W100
Table of Contents
Related Documents
21-Combined ISATAP Tunnel and 6to4 Tunnel Configuration Examples

 

H3C Routers

Combined ISATAP Tunnel and 6to4 Tunnel

Configuration Examples

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2024 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.



Introduction

The following information provides examples for configuring an ISATAP tunnel and a 6to4 tunnel in combination.

Prerequisites

The following information applies to Comware 9-based routers. Procedures and information in the examples might be slightly different depending on the software or hardware version of the routers.

The configuration examples were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

The following information is provided based on the assumption that you have basic knowledge of ISATAP tunneling and 6to4 tunneling.

Example: Configuring an ISATAP tunnel and 6to4 tunnel in combination

Network configuration

As shown in Figure 1, IPv6 is deployed in the headquarters and its branches, and they are connected through an IPv4 network.

·     Configure a 6to4 tunnel to allow the 6to4 networks of the headquarters and the branches to communicate with each other over the IPv4 network.

·     Configure an ISATAP tunnel between Device A and the dual-stack host on the IPv4 network, so the host can access the 6to4 networks of the headquarters.

Figure 1 Network diagram

 

Table 1 Interface and address assignment

Device

Interface

IP address

Device

Interface

IP address

Device A

GE0/0/1

2.1.1.1/24

Device B

GE0/0/1

3.1.1.1/24

 

GE0/0/2      

2002:0201:0101:1::1/64

 

GE0/0/2      

2002:0301:0101:1::1/64

 

GE0/0/3

2002:0201:0101:2::1/64

 

GE0/0/3

2002:0301:0101:2::1/64

 

Tunnel 1

3001::1/64

 

Tunnel 1

3001::2/64

 

Tunnel 2

2001::5EFE:0201:0101/64

 

 

 

 

Analysis

·     A 6to4 address is in 2002:IPv4 address::/64 format where the IPv4 address is the destination IP address of the IPv4 packets after 6to4 tunnel encapsulation.

·     The IPv6 prefix of the ISATAP host can be requested from the ISATAP router (Device A). The IPv4 address is used as the interface ID in Prefix:0:5EFE:IPv4-destination-address format. This IPv4 address can be used as the destination address of the ISATAP tunnel.

·     To ensure that hosts in the same network use the same address prefix, disable RA suppression on Device A and Device B, so that the hosts can acquire information such as the address prefix from the RA messages advertised by Device A and Device B.

Software versions used

This configuration example was created and verified on R9141P16 of the MSR2630E-X1 device.

Procedures

Before you perform the following configuration, make sure the gateway devices have IPv4 connectivity to each other.

1.     Configure Device A:

# Assign an IP address to interface GigabitEthernet 0/0/1.

<DeviceA> system-view

[DeviceA] interface gigabitethernet 0/0/1

[DeviceA-GigabitEthernet0/0/1] ip address 2.1.1.1 24

[DeviceA-GigabitEthernet0/0/1] quit

# Assign IP addresses to other interfaces on Device A in the same way. (Details not shown.)

# Create 6to4 tunnel interface Tunnel 1.

[DeviceA] interface tunnel 1 mode ipv6-ipv4 6to4

# Assign an IPv6 address to interface Tunnel 1.

[DeviceA-Tunnel1] ipv6 address 3001::1/64

# Configure the source interface of Tunnel 1 as GigabitEthernet 0/0/1. (The IP address of the source interface will be used as the source IP address of the IPv4 packets after encapsulation.)

[DeviceA-Tunnel1] source gigabitethernet 0/0/1

[DeviceA-Tunnel1] quit

# Configure a static route destined for 2002:0301:0101::/48 with the next hop as Tunnel 1.

[DeviceA] ipv6 route-static 2002:0301:0101:: 48 tunnel 1

# Create ISATAP tunnel interface Tunnel 2.

[DeviceA] interface tunnel 2 mode ipv6-ipv4 isatap

# Assign an IPv6 address to interface Tunnel 2.

[DeviceA-Tunnel2] ipv6 address 2001::5EFE:0201:0101 64

# Configure the source interface of Tunnel 2 as GigabitEthernet 0/0/1. (The IP address of the source interface will be used as the source IP address of the IPv4 packets after encapsulation.)

[DeviceA-Tunnel2] source gigabitethernet 0/0/1

[DeviceA-Tunnel2] quit

# Configure a static route destined for 2001::/16 with the next hop as Tunnel 2.

[DeviceA] ipv6 route-static 2001:: 16 tunnel 2

# Disable RA suppression on Device A, so that the hosts can acquire information such as the address prefix from the RA messages advertised by Device A.

[DeviceA] interface Tunnel 2

[DeviceA-Tunnel2] undo ipv6 nd ra halt

[DeviceA-Tunnel2] quit

[DeviceA] interface gigabitethernet 0/0/2

[DeviceA-GigabitEthernet0/0/2] undo ipv6 nd ra halt

[DeviceA-GigabitEthernet0/0/2] quit

[DeviceA] interface gigabitethernet 0/0/3

[DeviceA-GigabitEthernet0/0/3] undo ipv6 nd ra halt

[DeviceA-GigabitEthernet0/0/3] quit

2.     Configure Device B:

# Assign an IP address to interface GigabitEthernet 0/0/1.

<DeviceB> system-view

[DeviceB] interface gigabitethernet 0/0/1

[DeviceB-GigabitEthernet0/0/1] ip address 3.1.1.1 24

[DeviceB-GigabitEthernet0/0/1] quit

# Assign IP addresses to other interfaces on Device B in the same way. (Details not shown.)

# Create 6to4 tunnel interface Tunnel 1.

[DeviceB] interface tunnel 1 mode ipv6-ipv4 6to4

# Assign an IPv6 address to interface Tunnel 1.

[DeviceB-Tunnel1] ipv6 address 3001::2/64

# Configure the source interface of the tunnel as GigabitEthernet 0/0/1. (The IP address of the source interface will be used as the source IP address of the IPv4 packets after encapsulation.)

[DeviceB-Tunnel1] source gigabitethernet 0/0/1

[DeviceB-Tunnel1] quit

# Configure a static route destined for 2002:0201:0101::/48 with the next hop as Tunnel1.

[DeviceB] ipv6 route-static 2002:0201:0101:: 48 tunnel 1

# Disable RA suppression on Device B, so that the hosts can acquire information such as the address prefix from the RA messages advertised by Device B.

[DeviceB] interface gigabitethernet 0/0/2

[DeviceB-GigabitEthernet0/0/2] undo ipv6 nd ra halt

[DeviceB-GigabitEthernet0/0/2] quit

[DeviceB] interface gigabitethernet 0/0/3

[DeviceB-GigabitEthernet0/0/3] undo ipv6 nd ra halt

[DeviceB-GigabitEthernet0/0/3] quit

3.     Configure the ISATAP host:

Configurations on the ISATAP host vary by operating system. The following configuration is performed on Windows XP.

# Install IPv6.

C:\>ipv6 install

# Specify an IPv4 address for the ISATAP router.

C:\>netsh interface ipv6 isatap set router 2.1.1.1

# Display information about the ISATAP interface.

C:\>ipv6 if 2

Interface 2: Automatic Tunneling Pseudo-Interface

  Guid {48FCE3FC-EC30-E50E-F1A7-71172AEEE3AE}

  does not use Neighbor Discovery

  uses Router Discovery

  routing preference 1

  EUI-64 embedded IPv4 address: 1.1.1.2

  router link-layer address: 2.1.1.1

    preferred global 2001::5efe:1.1.1.2, life 29d23h59m46s/6d23h59m46s (public)

    preferred link-local fe80::5efe:1.1.1.2, life infinite

  link MTU 1500 (true link MTU 65515)

  current hop limit 255

  reachable time 42500ms (base 30000ms)

  retransmission interval 1000ms

  DAD transmits 0

  default site prefix length 48

The host has obtained the prefix 2001::/64 and has automatically generated the global unicast address 2001::5efe:1.1.1.2. The message "uses Router Discovery" indicates that the router discovery feature is enabled on the host.

# Display information about IPv6 routes on the host.

C:\>ipv6 rt

2001::/64 -> 2 pref 1if+8=9 life 29d23h59m43s (autoconf)

::/0 -> 2/fe80::5efe:1.1.1.1 pref 1if+256=257 life 29m43s (autoconf)

Verifying the configuration

# Verify that Host A and Host B can ping each other.

D:\>ping6 -s 2002:0201:0101:1::2 2002:0301:0101:1::2

 

Pinging 2002:0301:0101:1::2

from 2002:0201:0101:1::2 with 32 bytes of data:

 

Reply from 2002:0301:0101:1::2: bytes=32 time=13ms

Reply from 2002:0301:0101:1::2: bytes=32 time=1ms

Reply from 2002:0301:0101:1::2: bytes=32 time=1ms

Reply from 2002:0301:0101:1::2: bytes=32 time<1ms

 

Ping statistics for 2002:0301:0101:1::2:

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

Approximate round trip times in milli-seconds:

    Minimum = 0ms, Maximum = 13ms, Average = 3ms

# Verify that the ISATAP host can ping the IPv6 address of Host A.

C:\Documents and Settings\Administrator>pingv6 2002:0201:0101:1::2

 

Pinging 2002:0201:0101:1::2 with 32 bytes of data:

 

Reply from 2002:0201:0101:1::2: time=33ms

Reply from 2002:0201:0101:1::2: time=32ms

Reply from 2002:0201:0101:1::2: time=32ms

Reply from 2002:0201:0101:1::2: time=33ms

 

Ping statistics for 2002:0201:0101:1::2:

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

Approximate round trip times in milli-seconds:

 Minimum = 32ms, Maximum = 33ms, Average = 32ms

Configuration files

·     Device A

#

interface GigabitEthernet0/0/1

 ip address 2.1.1.1 255.255.255.0

#

interface GigabitEthernet0/0/2

 ipv6 address 2002:201:101:1::1/64

 undo ipv6 nd ra halt

#

interface GigabitEthernet0/0/3

 ipv6 address 2002:201:101:2::1/64

 undo ipv6 nd ra halt

#

interface Tunnel1 mode ipv6-ipv4 6to4

 source GigabitEthernet0/0/1

 ipv6 address 3001::1/64

#

interface Tunnel2 mode ipv6-ipv4 isatap

 source GigabitEthernet0/0/1

 ipv6 address 2001::5EFE:201:101/64

 undo ipv6 nd ra halt

#

 ipv6 route-static 2001:: 16 Tunnel2

 ipv6 route-static 2002:301:101:: 48 Tunnel1

#                               

·     Device B

#

interface GigabitEthernet0/0/1

 ip address 3.1.1.1 255.255.255.0

#

interface GigabitEthernet0/0/2

 ipv6 address 2002:301:101:1::1/64

 undo ipv6 nd ra halt

#

interface GigabitEthernet0/0/3

 ipv6 address 2002:301:101:2::1/64

 undo ipv6 nd ra halt

#

interface Tunnel1 mode ipv6-ipv4 6to4

 source GigabitEthernet0/0/1

 ipv6 address 3001::2/64

#

 ipv6 route-static 2002:201:101:: 48 Tunnel1

#

Related documentation

·     IP Tunneling and Security VPN Configuration Guide in H3C MSR1000[2600][3600] Routers Configuration Guides(V9)

·     IP Tunneling and Security VPN Command Reference in H3C MSR1000[2600][3600] Routers Command References(V9)

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网