R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

306
Task Command
Display information about tunnel interfaces.
display interface [ tunnel [ number ] ] [ brief [ description |
down ] ]
Display IPv6 information about tunnel interfaces.
display ipv6 interface [ tunnel [ number ] ] [ brief ]
Clear tunnel interface statistics. reset counters interface [ tunnel [ number ] ]
GRE configuration examples
GRE over IPv4 tunnel configuration example
Network requirements
Group 1 and Group 2 are two private IPv4 networks. The two networks both use private network
addresses and belong to the same VPN. Establish a GRE tunnel between Router A and Router B to
interconnect the two private IPv4 networks Group 1 and Group 2.
Figure 126 Network diagram
Configuration procedure
Make sure Router A and Router B can reach each other.
1. Configure Router A:
# Configure IP addresses for interfaces. (Details not shown.)
# Create a tunnel interface Tunnel 0, and specify the tunnel mode as GRE over IPv4.
<RouterA> system-view
[RouterA] interface tunnel 0 mode gre
# Configure an IP address for the tunnel interface.
[RouterA-Tunnel0] ip address 10.1.2.1 255.255.255.0
# Configure the source address of the tunnel interface as the IP address of GigabitEthernet 2/1/2
on Router A.
[RouterA-Tunnel0] source 1.1.1.1
# Configure the destination address of the tunnel interface as the IP address of GigabitEthernet
2/1/2 on Router B.
[RouterA-Tunnel0] destination 2.2.2.2
[RouterA-Tunnel0] quit
# Configure a static route from Router A through the tunnel interface to Group 2.
[RouterA] ip route-static 10.1.3.0 255.255.255.0 tunnel 0
2. Configure Router B:
# Configure IP addresses for interfaces. (Details not shown.)