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

271
[RouterA] interface tunnel 0
# Configure an IPv4 address for the tunnel interface Tunnel 0.
[RouterA-Tunnel0] ip address 10.1.2.1 255.255.255.0
# Configure the tunnel encapsulation mode.
[RouterA-Tunnel0] tunnel-protocol gre ipv6
# Configure the source address of the tunnel interface Tunnel 0 as the IP address of interface Serial
2/2/0.
[RouterA-Tunnel0] source 2002::1:1
# Configure the destination address of the tunnel interface Tunnel 0 as the IP address of interface
Serial 2/2/1 on Router B).
[RouterA-Tunnel0] destination 2002::2:1
[RouterA-Tunnel0] quit
# Configure a static route from Router A through the tunnel interface Tunnel 0 to Group 2.
[RouterA] ip route-static 10.1.3.0 255.255.255.0 tunnel 0
2. Configure Router B:
<RouterB> system-view
# Enable IPv6.
[RouterB] ipv6
# Configure an IPv4 address for interface GigabitEthernet 3/0/1.
[RouterB] interface gigabitethernet 3/0/1
[RouterB-GigabitEthernet3/0/1] ip address 10.1.3.1 255.255.255.0
[RouterB-GigabitEthernet3/0/1] quit
# Configure an IPv6 address for interface Serial 2/2/1, the physical interface of the tunnel).
[RouterB] interface serial 2/2/1
[RouterB-Serial2/2/1] ipv6 address 2002::2:1 64
[RouterB-Serial2/2/1] quit
# Create a tunnel interface Tunnel 0.
[RouterB] interface tunnel 0
# Configure an IPv4 address for interface Tunnel 0.
[RouterB-Tunnel0] ip address 10.1.2.2 255.255.255.0
# Configure the tunnel encapsulation mode.
[RouterB-Tunnel0] tunnel-protocol gre ipv6
# Configure the source address of the tunnel interface Tunnel 0 as the IP address of the interface
Serial 2/2/1.
[RouterB-Tunnel0] source 2002::2:1
# Configure the destination address of the tunnel interface Tunnel 0 as the IP address of the
interface Serial 2/2/0 on Router A.
[RouterB-Tunnel0] destination 2002::1:1
[RouterB-Tunnel0] quit
# Configure a static route from Router B through the tunnel interface Tunnel 0 to Group 1.
[RouterB] ip route-static 10.1.1.0 255.255.255.0 tunnel 0
Verifying the configuration.
# Display the tunnel interface status on Router A and Router B, respectively.
[RouterA] display interface Tunnel 0