Configuration prerequisites, Configuration procedure – H3C Technologies H3C S12500 Series Switches User Manual
Page 190
![background image](https://www.manualsdir.com/files/812677/content/doc190.png)
177
319B
Configuration prerequisites
Configure an IP address for the interface (such as a VLAN interface, a GigabitEthernet interface, or a
Loopback interface) to be used as the source interface of the tunnel interface.
320B
Configuration procedure
To configure a GRE over IPv4 tunnel:
Step Command
Remarks
1.
Enter system view.
system-view N/A
2.
Create a GRE over IPv4
tunnel interface and
enter its view.
interface tunnel interface-number mode
gre
By default, the device has no tunnel
interface.
You must configure the same tunnel
mode on both ends of a tunnel.
Otherwise, packet delivery may
fail.
3.
Configure an IPv4 or
IPv6 address for the
tunnel interface.
For information about how to assign an
IPv4 address to an interface, see
"Configuring IP addressing."
For information about how to assign an
IPv6 address to an interface, see
"Configuring IPv6 basics."
By default, no IPv4 or IPv6 address
is configured for a tunnel interface.
When the passenger protocol is
IPv4, configure an IPv4 address for
the tunnel interface. When the
passenger protocol is IPv6,
configure an IPv6 address for the
tunnel interface.
4.
Configure a source
address or source
interface for the tunnel
interface.
source { ip-address | interface-type
interface-number }
By default, no source address or
interface is configured for a tunnel
interface.
If you configure a source address
for a tunnel interface, the tunnel
interface uses the source address
as the source address of the
encapsulated packets.
If you configure a source interface
for a tunnel interface, the tunnel
interface uses the primary IP
address of the source interface as
the source address of the
encapsulated packets.
5.
Configure a destination
address for the tunnel
interface.
destination ip-address
By default, no destination address
is configured for a tunnel interface.
The destination address is the
address of the physical interface
that the tunnel remote end uses to
receive packets from the GRE
tunnel.
The tunnel local end uses this
address as the destination address
of the encapsulated packets.
- H3C SR8800 H3C SR6600-X H3C SR6600 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C S6800 Series Switches H3C S3100V2 Series Switches H3C S12500-X Series Switches H3C S9800 Series Switches