- Table of Contents
-
- H3C MSR1000[2600][3600] Routers Configuration Examples All-in-One-R9141-6W100
- 00-Preface
- 01-Local 802.1X Authentication Configuration Examples
- 02-RADIUS-Based 802.1X Authentication Configuration Examples
- 03-AAA Configuration Examples
- 04-ACL Configuration Examples
- 05-MPLS over ADVPN Configuration Examples
- 06-ARP Attack Protection Configuration Examples
- 07-BFD Configuration Examples
- 08-Basic BGP Configuration Examples
- 09-BGP Route Attribute-Based Route Selection Configuration Examples
- 10-EAA Monitor Policy Configuration Examples
- 11-GRE with OSPF Configuration Examples
- 12-HoVPN Configuration Examples
- 13-IGMP Snooping Configuration Examples
- 14-IGMP Configuration Examples
- 15-IPsec Configuration Examples
- 16-IPsec Digital Certificate Authentication Configuration Examples
- 17-IPv6 IS-IS Configuration Examples
- 18-IPv6 over IPv4 GRE Tunnel Configuration Examples
- 19-IPv6 over IPv4 Manual Tunnel with OSPFv3 Configuration Examples
- 20-IS-IS Configuration Examples
- 21-Combined ISATAP Tunnel and 6to4 Tunnel Configuration Examples
- 22-L2TP over IPsec Configuration Examples
- 23-Multi-Instance L2TP Configuration Examples
- 24-L2TP Multidomain Access Configuration Examples
- 25-MPLS L3VPN Configuration Examples
- 26-MPLS OAM Configuration Examples
- 27-MPLS TE Configuration Examples
- 28-Basic MPLS Configuration Examples
- 29-NAT DNS Mapping Configuration Examples
- 30-NetStream Configuration Examples
- 31-NQA Configuration Examples
- 32-NTP Configuration Examples
- 33-OSPFv3 Configuration Examples
- 34-OSPF Configuration Examples
- 35-OSPF Multi-Process Configuration Examples
- 36-OSPF Multi-Instance Configuration Examples
- 37-Portal Configuration Examples
- 38-PPP Configuration Examples
- 39-RBAC Configuration Examples
- 40-RMON Configuration Examples
- 41-IPv4 NetStream Sampling Configuration Examples
- 42-SNMP Configuration Examples
- 43-SRv6 Configuration Examples
- 44-SSH Configuration Examples
- 45-Tcl Commands Configuration Examples
- 46-VLAN Configuration Examples
- 47-VRRP Configuration Examples
- 48-VXLAN over IPsec Configuration Examples
- 49-WLAN AC Configuration Examples
- 50-Small and Medium-Sized Store Configuration Examples
- 51-Cloudnet VPN Configuration Examples
- 52-Ethernet Link Aggregation Configuration Examples
- 53-Ethernet OAM Configuration Examples
- 54-Outbound Bidirectional NAT Configuration Examples
- 55-NAT Hairpin in C-S Mode Configuration Examples
- 56-Load Sharing NAT Server Configuration Examples
- 57-BIDIR-PIM Configuration Examples
- 58-Control Plane-Based QoS Policy Configuration Examples
- 59-Scheduling a Task Configuration Examples
- 60-Client-Initiated L2TP Tunnel Configuration Examples
- 61-LAC-Auto-Initiated L2TP Tunnel Configuration Examples
- 62-Authorized ARP Configuration Examples
- 63-GTS Configuration Examples
- 64-Traffic Policing Configuration Examples
- 65-Traffic Accounting Configuration Examples
- 66-Mobile Communication Modem Management Configuration Examples
- 67-Port Isolation Configuration Examples
- 68-PBR Configuration Examples
- 69-TFTP Client Software Upgrade Configuration Examples
- 70-FTP Client Software Upgrade Configuration Examples
- 71-FTP Server Software Upgrade Configuration Examples
- 72-Routing Policy Configuration Examples
- 73-Software Upgrade from the BootWare Menu Configuration Examples
- 74-Mirroring Configuration Examples
- Related Documents
-
Title | Size | Download |
---|---|---|
19-IPv6 over IPv4 Manual Tunnel with OSPFv3 Configuration Examples | 95.89 KB |
|
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.
Table 1 Interface and address assignment
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
# 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
[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
# 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.
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)