05-Layer 3 - IP Services Command Reference

HomeSupportSwitchesH3C S7500E Switch SeriesReference GuidesCommand ReferencesH3C S7500E Switch Series Command References-Release7178-6W10005-Layer 3 - IP Services Command Reference
13-GRE commands
Title Size Download
13-GRE commands 28.45 KB

GRE commands

keepalive

Use keepalive to enable the GRE keepalive function and set the keepalive interval and the keepalive number.

Use undo keepalive to disable the GRE keepalive function.

Syntax

keepalive [ interval [ times ] ]

undo keepalive

Default

The GRE keepalive function is disabled.

Views

Tunnel interface view

Predefined user roles

network-admin

mdc-admin

Parameters

interval: Specifies the keepalive interval in the range of 1 to 32767 seconds. The default value is 10.

times: Specifies the keepalive number in the range of 1 to 255. The default value is 3.

Usage guidelines

This command enables the tunnel interface to send keepalive packets at the specified interval. If the device receives no response from the peer within the timeout time, it shuts down the local tunnel interface. The device brings the local tunnel interface up if it receives a keepalive acknowledgment packet from the peer. The timeout time is the result of multiplying the keepalive interval by the keepalive number.

The device always acknowledges the keepalive packets it receives whether or not GRE keepalive is enabled.

GRE/IPv6 mode tunnel interfaces do not support this command.

Examples

# Enable GRE keepalive, set the keepalive interval to 20 seconds, and set the keepalive number to 5.

<Sysname> system-view

[Sysname] interface tunnel 2 mode gre

[Sysname-Tunnel2] keepalive 20 5

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网