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:
- At the interfaces hierarchy level, set the family as inet.user@host# set interfaces interface-name unit unit-number family family-name
- Configure the Operation, Administration,
and Maintenance (OAM) protocol:[edit]user@host# edit protocols oam
- Go to the GRE tunnel interface:[edit protocols oam]user@host# edit gre-tunnel interface interface-name
- Configure the keepalive time:[edit protocols oam gre-tunnel interface interface-name]user@host# set keepalive-time seconds
- Configure the hold-time. The
hold time must be at least twice the keepalive time.[edit protocols oam gre-tunnel interface interface-name]user@host# set hold-time hold-time