ip ssh source-interface <interface to use>
ip telnet source-interface <interface to use>


R1#telnet 10.9.38.3 22 /source-interface l0
Trying 10.9.38.3, 22 … Open
SSH-2.0-1.36 sshlib: GlobalScape



Notes:
for ping:
ping <ip address> source <ip address / interface to use>

for traceroute using extended traceroute:

R1#traceroute
Protocol [ip]:
Target IP address: 10.10.10.10
Source address: 10.11.11.11
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Type escape sequence to abort.
Tracing the route to 10.10.10.10
VRF info: (vrf in name/id, vrf out name/id)
  1  *  *  *

By Jon

One thought on “Set telnet / SSH source IP address for Cisco router”

Leave a Reply