Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide
Error! Reference source not found.Error! Re
f
erence source not found.
3Com Corporation
9-34
Description
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.
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.
Note:
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.
Example
# Set the source interface for the SSH client to ethernet0/0/0.
[Router] ssh2 source-interface ethernet0/0/0
9.3.8 ssh2 source-ip
Syntax
ssh2 source-ip ip-address
undo ssh2 source-ip
View
System view
Parameter
ip-address: Source IP address.
Description
Use the ssh2 source-ip command to specify a source IP address for the packets sent
by the SSH client. This IP address must be a local IP address.
Use the undo ssh2 source-ip command to delete the source IP address specified for
the SSH client. After that, the source IP address of each packet sent by the SSH client
is the IP address of the interface where the packet is sent out.