1754
C
103: GRE C
HAPTER
interface tunnel
Syntax
View
Parameter
Description
Related command:
Example
keepalive
Syntax
View
Parameter
Description
C
ONFIGURATION
OMMANDS
interface tunnel number
undo interface tunnel number
System view
number: Number of a tunnel interface, in the range 0 to 1023. The volume of
tunnels is subject to the total number of interfaces and the capacity of memory.
Use the
interface tunnel
interface view.
Use the
undo interface tunnel
By default, there is no tunnel interface on the device.
Executing the interface tunnel command, you enter tunnel interface view if
■
the tunnel interface exists.
A tunnel interface number has only local significance. Therefore, both ends of a
■
tunnel can have the same interface number or different interface numbers.
source, destination, gre key, gre checksum, and tunnel-protocol on page
887.
# Create an interface named Tunnel3 and enter its view.
<Sysname> system-view
[Sysname] interface tunnel 3
[Sysname-Tunnel3]
keepalive [ seconds [ times ] ]
undo keepalive
Tunnel interface view
seconds: Interval between transmitting keepalive packets, in the range 1 to
32,767 seconds. The default value is 10.
times: Maximum number of attempts for transmitting a keepalive packet, in the
range 1 to 255. The default value is 3.
Use the
keepalive
status of the tunnel interfaces and set the keepalive interval and the maximum
number of attempts for transmitting a keepalive packet.
command to create a tunnel interface and enter tunnel
command to remove a tunnel interface.
command to enable the GRE keepalive function to detect the