beautypg.com

Gre configuration examples, Gre over ipv4 tunnel configuration example, Network requirements – H3C Technologies H3C S12500-X Series Switches User Manual

Page 178: Configuration procedure, Ipv6 addresses

background image

167

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.
Support for the display ipv6

interface tunnel command depends
on the device model.

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. Establish a GRE tunnel between Switch A and Switch B to
interconnect the two private IPv4 networks Group 1 and Group 2.

Figure 63 Network diagram

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.

system-view

[SwitchA] service-loopback group 1 type tunnel

# Add port Ten-GigabitEthernet 1/0/3 to service loopback group 1.

[SwitchA] interface Ten-GigabitEthernet 1/0/3

[SwitchA-Ten-GigabitEthernet1/0/3] port service-loopback group 1

[SwitchA-Ten-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.

IPv4

Group 2

IPv4

Group 1

XGE1/0/1

Vlan-int100

10.1.1.1/24

XGE1/0/1
Vlan-int100
10.1.3.1/24

Tunnel1
10.1.2.1/24

XGE1/0/2
Vlan-int101
1.1.1.1/24

XGE1/0/2

Vlan-int101

2.2.2.2/24

Internet

GRE tunnel

Tunnel1

10.1.2.2/24

Switch A

Switch B

Service Loopback port

XGE1/0/3

XGE1/0/3

This manual is related to the following products: