[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring the reconnect-strategy Statement

When disconnected, the router begins to initiate a new outbound SSH connection. To specify how the router reconnects to the server after a connection is dropped, include the reconnect-strategy statement at the [edit system services outbound-ssh client client-id] hierarchy level:

[edit system services outbound-ssh client-id]
reconnect-strategy (sticky | in-order);

The sticky option configures the router to reconnect to the server that it disconnected.

The in-order option configures the router to reconnect to the first configured server. If this server is unavailable, the router tries to connect to the next configured server. This process repeats until a connection is completed.

You can also specify the number of retry attempts and set the amount of time before stopping the reconnection attempts. See Configuring Keepalive Messages.


[Contents] [Prev] [Next] [Index] [Report an Error]