Set the telnet source IP address for a Cisco router

Home -> Networking -> Cisco -> Routers

9224 views

From the computer of: qmchenry (337 recipes)
Created: Jun 18, 2006


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

The default source IP address when telnetting from a Cisco router is that of the interface closest to the destination. Because some access lists may block traffic from the default IP address, or to help test access lists, it may be useful to temporarily or permanently set the telnet source IP address.

To temporarily set the telnet source IP address for a single telnet session, use the /source-interface extension to the telnet command. For example, to telnet to 192.168.1.4 using the source IP address of the interface FastEthernet0

telnet 192.168.1.4 /source-interface FastEthernet0


To set this interface as the source IP address for all telnet sesions, use this command in configuration mode (conf t):

ip source-interface fastethernet0

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Enable and password protect telnet logins to Cisco routers
  Cisco: How to configure NAT [Network Address Translation]
  Configure Cisco router as a basic DHCP server
  Cisco HSRP (like VRRP) - Redundant gateway router configuration
  Configuring a Cisco router as a terminal server
  Assign or configure IP addresses on Cisco routers
  Set the time on a Cisco router manually
  How to (more) safely run debugs on Cisco routers
  Configure Cisco router as an NTP server
  Creating users on a Cisco router

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.