Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring GRE Keepalive Time

    Configuring Keepalive Time and Hold time for a GRE Tunnel Interface

    You can configure the keepalives on a generic routing encapsulation (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 a GRE tunnel interface:

    1. Configure the GRE tunnel interface at [edit interfaces interface-name unit unit-number] hierarchy level, where the interface name is gr-x/y/z, and the family is set as inet.
      user@host# set interfaces interface-name unit unit-number family family-name
    2. Configure the rest of the GRE tunnel interface options as explained in Configuring a GRE Tunnel Interface Between a PE and CE Router or Configuring a GRE Tunnel Interface Between PE Routers based on requirement.

    To configure keepalive time for a GRE tunnel interface:

    1. Configure the Operation, Administration, and Maintenance (OAM) protocol at the [edit protocols] hierarchy level for the GRE tunnel interface.
      [edit]user@host# edit protocols oam
    2. Configure the GRE tunnel interface option for OAM protocol.
      [edit protocols oam]user@host# edit gre-tunnel interface interface-name
    3. Configure the keepalive time from 1 through 50 seconds for the GRE tunnel interface.
      [edit protocols oam gre-tunnel interface interface-name]user@host# set keepalive-time seconds
    4. Configure the hold time from 5 through 250 seconds. Note that the hold time must be at least twice the keepalive time.
      [edit protocols oam gre-tunnel interface interface-name]user@host# set hold-time (OAM) seconds

    Display GRE Keepalive Time Configuration

    Purpose

    Display the configured keepalive time value as 10 and hold time value as 30 on a GRE tunnel interface (for example, gr-1/1/10.1):

    Action

    To display the configured values on the GRE tunnel interface, run the show oam gre-tunnel command at the [edit protocols] hierarchy level:

    [edit protocols]user@host# show oam gre-tunnelinterface gr-1/1/10.1 {keepalive-time 10;hold-time 30;}

    Display Keepalive Time Information on a GRE Tunnel Interface

    Purpose

    Display the current status information of a GRE tunnel interface when keepalive time and hold time parameters are configured on it and when the hold time expires.

    Action

    To verify the current status information on a GRE tunnel interface (for example, gr-3/3/0.3), run the show interfaces gr-3/3/0.3 terse and show interfaces gr-3/3/0.3 extensive operational commands.

    show interfaces gr-3/3/0.3 terse

    user@host> show interfaces gr-3/3/0.3 terse
    Interface               Admin Link Proto    Local                 Remote
    gr-3/3/0.3              up    up   inet     200.1.3.1/24    
                                       mpls  

    show interfaces gr-3/3/0.3 extensive

    user@host> show interfaces gr-3/3/0.3 extensive
    Logical interface gr-3/3/0.3 (Index 73) (SNMP ifIndex 594) (Generation 900)
        Flags: Point-To-Point SNMP-Traps 0x4000 IP-Header 10.1.19.11:10.1.19.12:47:df:64:0000000000000000 Encapsulation: GRE-NULL
        Gre keepalives configured: On, Gre keepalives adjacency state: down
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        Traffic statistics:
         Input  bytes  :             15629992
         Output bytes  :             15912273
         Input  packets:               243813
         Output packets:               179476
        Local statistics:
         Input  bytes  :             15322586
         Output bytes  :             15621359
         Input  packets:               238890
         Output packets:               174767
        Transit statistics:
         Input  bytes  :               307406                    0 bps
         Output bytes  :               290914                    0 bps
         Input  packets:                 4923                    0 pps
         Output packets:                 4709                    0 pps
        Protocol inet, MTU: 1476, Generation: 1564, Route table: 0
          Flags: Sendbcast-pkt-to-re
          Addresses, Flags: Dest-route-down Is-Preferred Is-Primary
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            Destination: 200.1.3/24, Local: 200.1.3.1, Broadcast: 200.1.3.255, Generation: 1366
        Protocol mpls, MTU: 1464, Maximum labels: 3, Generation: 1565, Route table: 0

    When the hold time expires:

    • The GRE tunnel will stay up even though the interface cannot send or receive traffic.
    • The Link status will be Up and the Gre keepalives adjacency state will be Down.

    Meaning

    The current status information of a GRE tunnel interface with keepalive time and hold time parameters is displayed as expected when the hold time expires.

    Published: 2013-08-29