R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

248
Step Command Remarks
6. Configure a destination
address for the tunnel
interface.
destination ip-address
By default, no destination address is
configured for the tunnel.
Configuration example
Network requirements
As shown in Figure 104, the two subnets Group 1 and Group 2 use private IPv4 addresses. Configure an
IPv4 over IPv4 tunnel between Router A and Router B to make the two subnets reachable to each other.
Figure 104 Network diagram
Configuration procedure
Make sure Router A and Router B can reach each other through IPv4.
Configure Router A:
# Specify an IPv4 address for GigabitEthernet 2/0/1.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/0/1
[RouterA-GigabitEthernet2/0/1] ip address 10.1.1.1 255.255.255.0
[RouterA-GigabitEthernet2/0/1] quit
# Specify an IPv4 address for GigabitEthernet 2/0/2, the physical interface of the tunnel.
[RouterA] interface gigabitethernet 2/0/2
[RouterA-GigabitEthernet2/0/2] ip address 2.1.1.1 255.255.255.0
[RouterA-GigabitEthernet2/0/2] quit
# Create interface Tunnel 1.
[RouterA] interface tunnel 1
# Specify an IPv4 address for interface Tunnel 1.
[RouterA-Tunnel1] ip address 10.1.2.1 255.255.255.0
# Configure the tunnel encapsulation mode as IPv4 over IPv4.
[RouterA-Tunnel1] tunnel-protocol ipv4-ipv4
# Specify the IP address of GigabitEthernet 2/0/2 as the source address for interface Tunnel 1.