4-16
Hardware Installation Guide for  Cisco 4000 Series Integrated Services Routers
OL-32185-02
Chapter 4      Configure Initial Router Settings on Cisco 4000 Series ISRs
  Perform Initial Configuration on Cisco 4000 Series ISRs
Configure Virtual Terminal Lines for Remote Console Access
Virtual terminal (vty) lines are used to allow remote access to the router. This section shows you how to 
configure the virtual terminal lines with a password, so that only authorized users can remotely access 
the router.
By default, the router has five virtual terminal lines. However, you can create additional virtual terminal 
lines. See the Cisco IOS XE Dial Technologies Configuration Guide at 
http://www.cisco.com/en/US/docs/ios/dial/configuration/guide/2_xe/dia_2_xe_book.html.
Line passwords and password encryption is described in the Cisco IOS XE Security Configuration 
Guide: Secure Connectivity document available at the following URL: 
http://www.cisco.com/en/US/docs/ios/ios_xe/sec_secure_connectivity/configuration/guide/2_xe/sec_se
cure_connectivity_xe_book.html. See the Security with Passwords, Privilege Levels, and Login 
Usernames for CLI Sessions on Networking Devices section. If you want to secure the virtual terminal 
lines (vty) with an access list, see the Access Control Lists: Overview and Guidelines.
SUMMARY STEPS
1. enable
2. configure terminal
3. line vty line-number [ending-line-number] 
4. password password 
5. login 
6. end 
7. show running-config 
8. From another network device, attempt to open a Telnet session to the router. 
DETAILED STEPS
Command or Action Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode. Enter your password if 
prompted.
Step 2
configure terminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
line vty line-number [ending-line-number] 
Example:
Router(config)# line vty 0 4
Starts the line configuration command collection mode for 
the virtual terminal lines (vty) for remote console access.
• Make sure that you configure all vty lines on your 
router.
Note To verify the number of vty lines on your router, use 
the line vty ? command.