Configuring GRE Keepalive Time

You can configure the keepalives on a a GRE tunnel interface by including both the keepalive-time statement and the hold-time statement at the [edit protocols oam gre-tunnel interface interface-name] hierarchy level.

Note: For proper operation of keepalives on a GRE interface, you must also include the family inet statement at the [edit interfaces interface-name unit unit] hierarchy level. If you do not include this statement, the interface is marked as down.

To configure keepalive time for a GRE tunnel interface:

  1. At the [edit interfaces interface-name unit unit-number] hierarchy level, set the family as inet.
    user@host# set interfaces interface-name unit unit-number family family-name
  2. Configure the Operation, Administration, and Maintenance (OAM) protocol:
    [edit]user@host# edit protocols oam
  3. Configure the GRE tunnel interface:
    [edit protocols oam]user@host# edit gre-tunnel interface interface-name
  4. Configure the keepalive time:
    [edit protocols oam gre-tunnel interface interface-name]user@host# set keepalive-time seconds
  5. Configure the hold time, which must be at least twice the keepalive time.
    [edit protocols oam gre-tunnel interface interface-name]user@host# set hold-time seconds

Related Topics