R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)

255
[RouterA] ipv6
# Configure an IPv4 address for interface Ethernet 1/1.
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] ip address 10.1.1.1 255.255.255.0
[RouterA-Ethernet1/1] quit
# Configure an IPv6 address for interface Serial 2/0, the physical interface of the tunnel.
[RouterA] interface serial 2/0
[RouterA-Serial2/0] ipv6 address 2002::1:1 64
[RouterA-Serial2/0] quit
# Create a tunnel interface named Tunnel0.
[RouterA] interface tunnel 0
# Configure an IPv4 address for the tunnel interface Tunnel0.
[RouterA-Tunnel0] ip address 10.1.2.1 255.255.255.0
# Configure the tunnel encapsulation mode as GRE over IPv6.
[RouterA-Tunnel0] tunnel-protocol gre ipv6
# Configure the source address of the tunnel interface Tunnel0 as the IP address of interface Serial
2/0.
[RouterA-Tunnel0] source 2002::1:1
# Configure the destination address of the tunnel interface Tunnel0 as the IP address of interface
Serial 2/1 on Router B).
[RouterA-Tunnel0] destination 2001::2:1
[RouterA-Tunnel0] quit
# Configure a static route from Router A through the tunnel interface Tunnel0 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 Ethernet 1/1.
[RouterB] interface ethernet 1/1
[RouterB-Ethernet1/1] ip address 10.1.3.1 255.255.255.0
[RouterB-Ethernet1/1] quit
# Configure an IPv6 address for interface Serial 2/1, the physical interface of the tunnel).
[RouterB] interface serial 2/1
[RouterB-Serial2/1] ipv6 address 2001::2:1 64
[RouterB-Serial2/1] quit
# Create a tunnel interface named Tunnel0.
[RouterB] interface tunnel 0
# Configure an IPv4 address for interface Tunnel0.
[RouterB-Tunnel0] ip address 10.1.2.2 255.255.255.0
# Configure the tunnel encapsulation mode as GRE over IPv6.
[RouterB-Tunnel0] tunnel-protocol gre ipv6
# Configure the source address of the tunnel interface Tunnel0 as the IP address of the interface
Serial 2/1.
[RouterB-Tunnel0] source 2001::2:1