Command Reference Guide

380ssh2 source-interface 3Com Router 5000 Family and Router 6000 Family
Command Reference
ssh2 source-interface
Purpose Use the ssh2 source-interface command to specify a source interface, which
must be an existing local interface, for the SSH client. After that, the IP address of the
specified interface is used as the source IP address in each packet sent by the SSH
client.
Use the undo ssh2 source-interface command to delete the source interface
specified for the SSH client. After that, the source IP address in each packet sent by
the SSH client is that of the outgoing interface where the packet is sent out.
Syntax ssh2 source-interface interface-type interface-number
undo ssh2 source-interface
Parameters interface-type
interface-number
Specifies an interface by its type and number.
Default By default, the source IP address in each packet sent by the SSH client is the IP address
of the interface where the packet is sent out.
Example Set the source interface for the SSH client to ethernet0/0/0.
[Router] ssh2 source-interface ethernet0/0/0
View This command can be used in the following views:
System view
Description You may specify a source IP address for the packets sent by the SSH client with the
ssh2 source-interface command or with the ssh2 source-ip command. If
both commands are configured, the one configured later overrides.