Task
Display IPv6 information about tunnel
interface.
Clear tunnel interface statistics.
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
Switch A
XGE1/1/5
XGE1/1/7
Vlan-int100
10.1.1.1/24
IPv4
Group 1
Configuration procedure
Before the following configurations, 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> system-view
[SwitchA] service-loopback group 1 type tunnel
# Add port Ten-GigabitEthernet1/1/5 to service loopback group 1.
[SwitchA] interface Ten-GigabitEthernet1/1/5
[SwitchA-Ten-GigabitEthernet1/1/5] port service-loopback group 1
[SwitchA-Ten-GigabitEthernet1/1/5] 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
Command
display ipv6 interface [ tunnel
[ number ] ] [ brief ]
reset counters interface [ tunnel
[ number ] ]
XGE1/1/6
Vlan-int101
1.1.1.1/24
Internet
GRE tunnel
Tunnel1
10.1.2.1/24
Service loopback port
XGE1/1/6
Switch B
Vlan-int101
2.2.2.2/24
XGE1/1/5
XGE1/1/7
Vlan-int100
Tunnel1
10.1.3.1/24
10.1.2.2/24
IPv4
Group 2
232
Remarks
For more information about
this command, see Layer
3—IP Services Command
Reference.
For more information about
this command, see Layer
3—IP Services Command
Reference.