Home > ccie resources > Setting the Source Address for Telnet

Setting the Source Address for Telnet

To configure a single common IP source address for all outbound Telnet session, use the following configuration command:

Router1#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router1(config)#ip telnet source-interface loopback0
Router1(config)#end
Router1#

You can also set the IP source address for individual outbound Telnet sessions on the command line:

Router1#telnet 172.25.1.5 /source-interface loopback0

By default, the router uses the IP address of the closest interface to the destination as the source address when it makes an outbound Telnet session. Network administrators frequently want to use an address other than the closest to the destination, however. For instance, access-lists or route filters may prevent the default source address from reaching its destination. Selecting a particular source IP address of a Telnet session can also help in troubleshooting network problems.

Cisco provides two methods for setting the source IP address of Telnet sessions, one global and one session specific. The global configuration example forces all Telnet sessions to use the IP address of the configured interface as its source address. However, if the configured interface has no IP address, or is operationally down, then the router will resort to its default behavior of using the closest interface IP address.

The session specific method allows the administrator to select an appropriate IP source address on a per session basis. Again, if the configured interface has no IP address or is operationally down, then the router will resort to its default behavior. Also, note that the individual method of setting the Telnet source address supercedes the global setting.

0 Responses

Comment

Contact Us

86-136-2222-6316
CALL ME NOW

© 2011 CathaySchool, an ANDA Technology Group company, All Rights Reserved Privacy Policy | Refund Policy | Disclaimer | Sitemap | Resources Tags