Gre Configuration Examples; Configuring An Ipv4 Over Ipv4 Gre Tunnel - HPE FlexNetwork 10500 Series Configuration Manual

Layer 3-ip services
Table of Contents

Advertisement

Task
Display IPv6 information
about tunnel interface.
Clear tunnel interface
statistics.

GRE configuration examples

Configuring an IPv4 over IPv4 GRE tunnel

Network requirements
As shown in
use private network addresses and belong to the same VPN. Establish a GRE tunnel between
Switch A and Switch B to interconnect the two private IPv4 networks Group 1 and Group 2.
Figure 106 Network diagram
Switch A
GE1/0/3
GE1/0/1
Vlan-int100
10.1.1.1/24
IPv4
Group 1
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> system-view
[SwitchA] service-loopback group 1 type tunnel
# Add port GigabitEthernet 1/0/3 to service loopback group 1.
[SwitchA] interface gigabitethernet 1/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/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
# Configure the source address of tunnel interface as the IP address of VLAN-interface 101 on
Switch A.
Command
display ipv6 interface [ tunnel
[ number ] ] [ brief ]
reset counters interface [ tunnel
[ number ] ]
Figure
106, Group 1 and Group 2 are two private IPv4 networks. The two networks both
GE1/0/2
Vlan-int101
1.1.1.1/24
Internet
GRE tunnel
Tunnel1
10.1.2.1/24
Service loopback
interface
GE1/0/2
Switch B
Vlan-int101
2.2.2.2/24
GE1/0/3
GE1/0/1
Vlan-int100
Tunnel1
10.1.3.1/24
10.1.2.2/24
IPv4
Group 2
277
Remarks
For more information about this
command, see Layer 3—IP
Services Command Reference.
Support for the display ipv6
interface tunnel command
depends on the device model.
For more information about this
command, see Layer 3—IP
Services Command Reference.

Advertisement

Table of Contents
loading

Table of Contents