Gre configuration examples, Gre over ipv4 tunnel configuration example, Network requirements – H3C Technologies H3C S5560 Series Switches User Manual
Page 254: Configuration procedure

239
Task Command
Remarks
Display IPv6 information about tunnel
interface.
display ipv6 interface [ tunnel
[ number ] ] [ brief ]
For more information about
this command, see Layer
3—IP Services Command
Reference.
Clear tunnel interface statistics.
reset counters interface [ tunnel
[ number ] ]
For more information about
this command, see Layer
3—IP Services Command
Reference.
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. Configure a GRE tunnel between Switch A and Switch B so the
two private IPv4 networks can communicate with each other.
Figure 95 Network diagram
Configuration procedure
Before performing the following configuration, configure an IP address for each interface, and make sure
Switch A and Switch B can reach each other.
1.
Configure Switch A:
# Create service loopback group 1, and configure the service type as tunnel.
[SwitchA] service-loopback group 1 type tunnel
# Add port GigabitEthernet1/0/3 to service loopback group 1.
[SwitchA] interface GigabitEthernet1/0/3
[SwitchA-GigabitEthernet1/0/3] port service-loopback group 1
[SwitchA-GigabitEthernet1/0/3] quit
# Create a tunnel interface Tunnel 1, and specify the tunnel mode as GRE over IPv4.
[SwitchA] interface tunnel 1 mode gre
# Configure an IP address for the tunnel interface.
[SwitchA-Tunnel1] ip address 10.1.2.1 255.255.255.0