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
19-IPv6 over IPv4 Manual Tunnel with OSPFv3 Configuration Examples

 

H3C Routers

IPv6 over IPv4 Manual Tunnel with OSPFv3

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 IPv6 manual tunnel with OSPFv3 configuration examples.

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 IPv6 over IPv4 manual tunneling and OSPFv3.

Example: Configuring an IPv6 over IPv4 manual tunnel with OSPFv3

Network configuration

As shown in Figure 1, IPv6 is deployed in the headquarters (HQ) and its branches and they are connected through an IPv4 network. Device A, Device B, and Device C are gateways of the HQ, Branch 1, and Branch 2, respectively. Configure an IPv6 over IPv4 manual tunnel between the HQ and each branch B so the IPv6 networks of the HQ and branch can reach each other over the IPv4 network. Configure OSPFv3 so that the gateway devices can have routes to reach the destination IPv6 addresses through the tunnels, and the branches can communicate with each other through the HQ.

Figure 1 Network diagram

Table 1 Interface and address assignment

Device

Interface

IP address

Device

Interface

IP address

Device A

GE1/0/1

20.1.1.1/24

Device B

GE1/0/1

30.1.1.1/24

 

GE1/0/2

2001::1/64

 

GE1/0/2

5001::1/64

 

Tunnel1

3001::1/64

 

Tunnel1

3001::2/64

 

Tunnel2

4001::1/64

 

 

 

Device C

GE1/0/1

40.1.1.1/24

 

 

 

 

GE1/0/2

6001::1/64

 

 

 

 

Tunnel2

4001::2/64

 

 

 

 

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.

Configuring IPv6 over IPv4 manual tunnels

1.     Configure Device A:

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

<DeviceA> system-view

[DeviceA] interface gigabitethernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] ip address 20.1.1.1 24

[DeviceA-GigabitEthernet1/0/1] quit

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

# Create IPv6 over IPv4 manual tunnel interface Tunnel 1.

[DeviceA] interface tunnel 1 mode ipv6-ipv4

# Assign an IPv6 address to interface Tunnel 1.

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

# Configure the source interface of Tunnel 1 as GigabitEthernet 1/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 1/0/1

# Configure the destination IP address of Tunnel 1. (The specified IP address will be used as the destination IP address of the IPv4 packets after encapsulation.)

[DeviceA-Tunnel1] destination 30.1.1.1

[DeviceA-Tunnel1] quit

# Create IPv6 over IPv4 manual tunnel interface Tunnel 2.

[DeviceA] interface tunnel 2 mode ipv6-ipv4

# Assign an IPv6 address to interface Tunnel 2.

[DeviceA-Tunnel2] ipv6 address 4001::1/64

# Configure the source interface of Tunnel 2 as GigabitEthernet 1/0/1.

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

Configure the destination address of the Tunnel 2.

[DeviceA-Tunnel2] destination 40.1.1.1

[DeviceA-Tunnel2] quit

2.     Configure Device B:

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

<DeviceB> system-view

[DeviceB] interface gigabitethernet 1/0/1

[DeviceB-GigabitEthernet1/0/1] ip address 30.1.1.1 24

[DeviceB-GigabitEthernet1/0/1] quit

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

# Create IPv6 over IPv4 manual tunnel interface Tunnel 1.

[DeviceB] interface tunnel 1 mode ipv6-ipv4

# Assign an IPv6 address to interface Tunnel 1.

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

# Configure the source interface of Tunnel 1 as GigabitEthernet 1/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 1/0/1

# Configure the destination IP address of Tunnel 1. (The specified IP address will be used as the destination IP address of the IPv4 packets after encapsulation.)

[DeviceB-Tunnel1] destination 20.1.1.1

[DeviceB-Tunnel1] quit

3.     Configure Device C:

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

<DeviceC> system-view

[DeviceC] interface gigabitethernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] ip address 40.1.1.1 24

[DeviceC-GigabitEthernet1/0/1] quit

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

# Create IPv6 over IPv4 manual tunnel interface Tunnel 2.

[DeviceC] interface tunnel 2 mode ipv6-ipv4

# Assign an IPv6 address to interface Tunnel 2.

[DeviceC-Tunnel2] ipv6 address 4001::2/64

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

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

# Configure the destination IP address of Tunnel 2. (The specified IP address will be used as the destination IP address of the IPv4 packets after encapsulation.)

[DeviceC-Tunnel2] destination 20.1.1.1

[DeviceC-Tunnel2] quit

Configuring OSPFv3

1.     Configure Device A:

# Configure the router ID of Device A as 1.1.1.1.

[DeviceA] ospfv3 1

[DeviceA-ospfv3-1] router-id 1.1.1.1

[DeviceA-ospfv3-1] quit

# Enable OSPFv3 on Tunnel 1.

[DeviceA] interface Tunnel 1

[DeviceA-Tunnel1] ospfv3 1 area 0

[DeviceA-Tunnel1] quit

# Enable OSPFv3 on Tunnel 2.

[DeviceA] interface Tunnel 2

[DeviceA-Tunnel2] ospfv3 1 area 0

[DeviceA-Tunnel2] quit

# Enable OSPFv3 on GigabitEthernet 1/0/2.

[DeviceA] interface gigabitethernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] ospfv3 1 area 0

[DeviceA-GigabitEthernet1/0/2] quit

2.     Configure Device B:

Configure the router ID of Device B as 2.2.2.2.

[DeviceB] ospfv3 1

[DeviceB-ospfv3-1] router-id 2.2.2.2

[DeviceB-ospfv3-1] quit

# Enable OSPFv3 on Tunnel 1.

[DeviceB] interface Tunnel 1

[DeviceB-Tunnel1] ospfv3 1 area 0

[DeviceB-Tunnel1] quit

# Enable OSPFv3 on GigabitEthernet 1/0/2.

[DeviceB] interface gigabitethernet 1/0/2

[DeviceB-GigabitEthernet1/0/2] ospfv3 1 area 0

[DeviceB-GigabitEthernet1/0/2] quit

3.     Configure Device C:

Configure the router ID of Device C as 3.3.3.3.

[DeviceC] ospfv3 1

[DeviceC-ospfv3-1] router-id 3.3.3.3

[DeviceC-ospfv3-1] quit

# Enable OSPFv3 on Tunnel 2.

[DeviceC] interface Tunnel 2

[DeviceC-Tunnel2] ospfv3 1 area 0

[DeviceC-Tunnel2] quit

# Enable OSPFv3 on GigabitEthernet 1/0/2.

[DeviceC] interface gigabitethernet 1/0/2

[DeviceC-GigabitEthernet1/0/2] ospfv3 1 area 0

[DeviceC-GigabitEthernet1/0/2] quit

Verifying the configuration

# Verify that PC 2 can successfully ping PC 1.

D:\>ping6 -s 5001::3 2001::3

 

Pinging 2001::3

from 5001::3 with 32 bytes of data:

 

Reply from 2001::3: bytes=32 time=13ms

Reply from 2001::3: bytes=32 time=1ms

Reply from 2001::3: bytes=32 time=1ms

Reply from 2001::3: bytes=32 time<1ms

 

Ping statistics for 2001::3:

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

Approximate round trip times in milli-seconds:

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

# Verify that PC 2 can successfully ping PC 3.

D:\>ping6 -s 5001::3 6001::3

 

Pinging 6001::3

from 6001::3 with 32 bytes of data:

 

Reply from 6001::3: bytes=32 time=13ms

Reply from 6001::3: bytes=32 time=1ms

Reply from 6001::3: bytes=32 time=1ms

Reply from 6001::3: bytes=32 time<1ms

 

Ping statistics for 6001::3:

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

Approximate round trip times in milli-seconds:

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

Configuration files

Device A

#

ospfv3 1

 router-id 1.1.1.1

 area 0.0.0.0

#

interface GigabitEthernet1/0/1

 ip address 20.1.1.1 255.255.255.0

#

interface GigabitEthernet1/0/2

 ospfv3 1 area 0.0.0.0

 ipv6 address 2001::1/64

#

interface Tunnel1 mode ipv6-ipv4

 ospfv3 1 area 0.0.0.0

 source GigabitEthernet1/0/1

 destination 30.1.1.1

 ipv6 address 3001::1/64

#

interface Tunnel2 mode ipv6-ipv4

 ospfv3 1 area 0.0.0.0

 source GigabitEthernet1/0/1

 destination 40.1.1.1

 ipv6 address 4001::1/64

#

Device B

#

ospfv3 1

 router-id 2.2.2.2

 area 0.0.0.0

#

interface GigabitEthernet1/0/1

 ip address 30.1.1.1 255.255.255.0

#

interface GigabitEthernet1/0/2

 ospfv3 1 area 0.0.0.0

 ipv6 address 5001::1/64

#

interface Tunnel1 mode ipv6-ipv4

 ospfv3 1 area 0.0.0.0

 source GigabitEthernet1/0/1

 destination 20.1.1.1

 ipv6 address 3001::2/64

#

Device C

#

ospfv3 1

 router-id 3.3.3.3

 area 0.0.0.0

#

interface GigabitEthernet1/0/1

 ip address 40.1.1.1 255.255.255.0

#

interface GigabitEthernet1/0/2

 ospfv3 1 area 0.0.0.0

 ipv6 address 6001::1/64

#

interface Tunnel2 mode ipv6-ipv4

 ospfv3 1 area 0.0.0.0

 source GigabitEthernet1/0/1

 destination 20.1.1.1

 ipv6 address 4001::2/64

#

Related documentation

·     Layer 3—IP Routing Configuration Guide in H3C MSR1000[2600][3600] Routers Configuration Guides(V9)

·     Layer 3—IP Routing Command Reference in H3C MSR1000[2600][3600] Routers Configuration Guides(V9)

·     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 Configuration Guides(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
新华三官网