Specifying the source IP address for outgoing SSH packets

About specifying the source IP address for outgoing SSH packets

After you specify the source IP address for outgoing SSH packets on an Stelnet client, the client uses the specified IP address to communicate with the Stelnet server.

Restrictions and guidelines

As a best practice, specify the IP address of a loopback interface as the source address of outgoing SSH packets for the following purposes:

Procedure

  1. Enter system view.

    system-view

  2. Specify the source address for outgoing SSH packets.

    IPv4:

    ssh client source { interface interface-type interface-number | ip ip-address }

    By default, an IPv4 Stelnet client uses the primary IPv4 address of the output interface in the routing entry as the source address of the outgoing SSH packets.

    IPv6:

    ssh client ipv6 source { interface interface-type interface-number | ipv6 ipv6-address }

    By default, an IPv6 Stelnet client automatically selects a source IPv6 address for outgoing SSH packets in compliance with RFC 3484.