- Table of Contents
-
- 05-Layer 3 - IP Services Command Reference
- 00-Preface
- 01-ARP Commands
- 02-IP Addressing Commands
- 03-DHCP Commands
- 04-DNS Commands
- 05-NAT Commands
- 06-IP Performance Optimization Commands
- 07-Adjacency Table Commands
- 08-UDP Helper Commands
- 09-IPv6 Basics Commands
- 10-DHCPv6 Commands
- 11-IPv6 DNS Commands
- 12-NAT-PT Commands
- 13-Tunneling Commands
- 14-GRE Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
14-GRE Commands | 56.51 KB |
tunnel-protocol gre
Syntax
tunnel-protocol gre
undo tunnel-protocol
View
Tunnel interface view
Default level
2: System level
Parameters
None
Description
Use the tunnel-protocol gre command to set the GRE tunnel mode.
Use the undo tunnel-protocol to restore the default.
By default, the GRE tunnel mode is GRE over IPv4.
Select a tunnel mode according to the network topology and application. Both ends of a tunnel must be configured with the same tunnel mode. Otherwise, packet delivery will fail.
Related commands: interface tunnel.
Examples
# On router Sysname1, set the tunnel mode to GRE for the tunnel between Sysname1 and Sysname2.
<Sysname1> system-view
[Sysname1] interface tunnel 1
[Sysname1-Tunnel1] tunnel-protocol gre
# On router Sysname2, set the tunnel mode to GRE for the tunnel between Sysname1 and Sysname2.
<Sysname2> system-view
[Sysname2] interface tunnel 2
[Sysname2-Tunnel2] tunnel-protocol gre