Contents
- Implementing Physical and Virtual Terminals on the Cisco IOS XR Software
- Prerequisites for Implementing Physical and Virtual Terminals
- Information About Implementing Physical and Virtual Terminals
- Line Templates
- Line Template Configuration Mode
- Line Template Guidelines
- Terminal Identification
- vty Pools
- How to Implement Physical and Virtual Terminals on Cisco IOS XR Software
- Modifying Templates
- Creating and Modifying vty Pools
- Monitoring Terminals and Terminal Sessions
- Configuration Examples for Implementing Physical and Virtual Terminals
- Additional References
Implementing Physical and Virtual Terminals on the Cisco IOS XR Software
Line templates define standard attribute settings for incoming and outgoing transport over physical and virtual terminal lines (vtys). Vty pools are used to apply template settings to ranges of vtys.
Note
Before creating or modifying the vty pools, enable the telnet server using the telnet server command in global configuration mode. See Cisco IOS XR IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series Router and Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router for more information.
This module describes the new and revised tasks you need to implement physical and virtual terminals on your Cisco IOS XR network.
For more information about physical and virtual terminals on the Cisco IOS XR software and complete descriptions of the terminal services commands listed in this module, see Related Documents. To locate documentation for other commands that might appear in the course of running a configuration task, search online in Cisco IOS XR Commands Master List for the Cisco XR 12000 Series Router.
Table 1 Feature History for Implementing Physical and Virtual Templates on Cisco IOS XR Software Release
Modification
Release 3.2
This feature was introduced.
Release 3.3.0
No modification.
Release 3.4.0
No modification.
Release 3.5.0
No modification.
Release 3.6.0
No modification.
Release 3.7.0
No modification.
Release 3.8.0
The keyword fm in the vty-pool command was changed to eem .
Release 3.9.0
No modification.
This module contains the following topics:
- Prerequisites for Implementing Physical and Virtual Terminals
- Information About Implementing Physical and Virtual Terminals
- How to Implement Physical and Virtual Terminals on Cisco IOS XR Software
- Configuration Examples for Implementing Physical and Virtual Terminals
- Additional References
Information About Implementing Physical and Virtual Terminals
- Line Templates
- Line Template Configuration Mode
- Line Template Guidelines
- Terminal Identification
- vty Pools
Line Template Configuration Mode
Changes to line template attributes are made in line template configuration mode. To enter line template configuration mode, issue the line command from global configuration mode, specifying the template to be modified. The line templates that are available to be configured with the line command can be displayed using the online help feature ( ? ):
RP/0/0/CPU0:router(config)# line ? console console template default default template template user defined template
After you specify a template with the line command, the router will enter line template configuration mode where you can set the terminal attributes that will apply to specified line template. This example shows how to specify the console template and to enter line template configuration mode for the console template:
RP/0/0/CPU0:router(config)# line console RP/0/0/CPU0:router(config-line)#From line template configuration mode, the following terminal attribute setting commands can be configured:
RP/0/0/CPU0:router(config-line)# ? absolute-timeout Set absolute timeout for line disconnection. access-class Filter connections based on an IP access list accounting Accounting parameters authorization Authorization parameters commit Commit the configuration changes to running databits Set the nimber of databits. default Set a command to its defaults describe Describe a command without taking real actions disconnect-character Define the disconnect character do Run an exec command escape-character Change the current line template's escape character exec-timeout Set EXEC timeout exit Exit from this submode flowcontrol Configure flow control. length Set number of lines on a screen. login Line login configuration no Negate a command or set its defaults parity Set the parity used. password Specify the password for the user secret Provide a secure one way encrypted password session-limit Set the number of outgoing connections session-timeout Set interval for closing connection when there is no input traffic show Show contents of configuration speed Set the serial port inbound/outbound speed. stopbits Set the stopbits used. telnet Telnet protocol-specific configuration timeout Timeouts for the line transport Define transport protocols for line users Users characteristics width Set width of the display terminal.
Line Template Guidelines
The following guidelines apply to modifying the console template and to configuring a user-defined template:
- Modify the templates for the physical terminal lines on the router (the console port) from line template configuration mode. Use the line console command from global configuration mode to enter line template configuration mode for the console template.
Modify the template for virtual lines by configuring a user-defined template with the line template-name command, configuring the terminal attributes for the user-defined template from line template configuration, and applying the template to a range of virtual terminal lines using the vty pool command.
Attributes not defined in the console template, or any virtual template, are taken from the default template.
The default settings for the default template are described for all commands in line template configuration mode in the Terminal Services Commands on the Cisco IOS XR Software module in Cisco IOS XR System Management Command Reference for the Cisco XR 12000 Series Router.
Note
Before creating or modifying the vty pools, enable the telnet server using the telnet server command in global configuration mode. See Cisco IOS XR IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series Router and Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router for more information.
Terminal Identification
The physical terminal lines for the console port is identified by its location, expressed in the format of rack/slot/module , on the active or standby route processor (RP) where the respective console port resides. For virtual terminals, physical location is not applicable; the Cisco IOS XR software assigns a vty identifier to vtys according to the order in which the vty connection has been established.
vty Pools
Each virtual line is a member of a pool of connections using a common line template configuration. Multiple vty pools may exist, each containing a defined number of vtys as configured in the vty pool. The Cisco IOS XR software supports the following vty pools by default:
Default vty pool—The default vty pool consists of five vtys (vtys 0 through 4) that each reference the default line template.
Default fault manager pool—The default fault manager pool consists of six vtys (vtys 100 through 105) that each reference the default line template.
In addition to the default vty pool and default fault manager pool, you can also configure a user-defined vty pool that can reference the default template or a user-defined template.
When configuring vty pools, follow these guidelines:
- The vty range for the default vty pool must start at vty 0 and must contain a minimum of five vtys.
- The vty range from 0 through 99 can reference the default vty pool.
- The vty range from 5 through 99 can reference a user-defined vty pool.
- The vty range from 100 is reserved for the fault manager vty pool.
- The vty range for fault manager vty pools must start at vty 100 and must contain a minimum of six vtys.
- A vty can be a member of only one vty pool. A vty pool configuration will fail if the vty pool includes a vty that is already in another pool.
- If you attempt to remove an active vty from the active vty pool when configuring a vty pool, the configuration for that vty pool will fail.
Modifying Templates
SUMMARY STEPSThis task explains how to modify the terminal attributes for the console and default line templates. The terminal attributes that you set will modify the template settings for the specified template.
3. Configure the terminal attribute settings for the specified template using the commands in line template configuration mode.
4. Use one of the following commands:
DETAILED STEPSCreating and Modifying vty Pools
SUMMARY STEPSThis task explains how to create and modify vty pools.
You can omit 3 to 5 if you are configuring the default line template to reference a vty pool.
2. telnet {ipv4 | ipv6} server max-servers limit
3. line template template-name
4. Configure the terminal attribute settings for the specified line template using the commands in line template configuration mode.
6. vty-pool {default | pool-name | eem} first-vty last-vty [line-template {default | template-name}]
7. Use one of the following commands:
DETAILED STEPSMonitoring Terminals and Terminal Sessions
SUMMARY STEPSThis task explains how to monitor terminals and terminal sessions using the show EXEC commands available for physical and terminal lines.
Note
The commands can be entered in any order.
1. (Optional) show line [aux location node-id | console location node-id | vty number]
DETAILED STEPS
Command or Action Purpose Step 1 show line [aux location node-id | console location node-id | vty number]
Example:RP/0/0/CPU0:router# show line
(Optional) Displays the terminal parameters of terminal lines.
Specifying the show line aux location node-id EXEC command displays the terminal parameters of the auxiliary line.
Specifying the show line console location node-id EXEC command displays the terminal parameters of the console.
Specifying the show line vty number EXEC command displays the terminal parameters for the specified vty.
Step 2 show terminal
Example:RP/0/0/CPU0:router# show terminal
(Optional) Displays the terminal attribute settings for the current terminal line.
Step 3 show users
Example:RP/0/0/CPU0:router# show users
(Optional) Displays information about the active lines on the router.
Configuration Examples for Implementing Physical and Virtual Terminals
Modifying the Console Template: Example
This configuration example shows how to modify the terminal attribute settings for the console line template:
line console exec-timeout 0 0 escape-character 0x5a session-limit 10 disconnect-character 0x59 session-timeout 100 transport input telnet transport output telnetIn this configuration example, the following terminal attributes are applied to the console line template:
- The EXEC time out for terminal sessions is set to 0 minutes, 0 seconds. Setting the EXEC timeout to 0 minutes and 0 seconds disables the EXEC timeout function; thus, the EXEC session for the terminal session will never time out.
- The escape character is set to the 0x5a hexadecimal value (the 0x5a hexadecimal value translates into the “Z” character).
- The session limit for outgoing terminal sessions is set to 10 connections.
- The disconnect character is set to 0x59 hexadecimal value (the 0x59 hexidecimal character translates into the “Y” character).
- The session time out for outgoing terminal sessions is set to 100 minutes (1 hour and 40 minutes).
- The allowed transport protocol for incoming terminal sessions is Telnet.
- The allowed transport protocol for outgoing terminal sessions is Telnet.
To verify that the terminal attributes for the console line template have been applied to the console, use the show line command:
RP/0/0/CPU0:router# show line console location 0/0/CPU0 Tty Speed Modem Uses Noise Overruns Acc I/O * con0/0/CPU0 9600 - - - 0/0 -/- Line con0_0_CPU0, Location "Unknown", Type "Unknown" Length: 24 lines, Width: 80 columns Baud rate (TX/RX) is 9600, 1 parity, 2 stopbits, 8 databits Template: console Config: Allowed transports are telnet.
Modifying the Default Template: Example
This configuration example shows how to override the terminal settings for the default line template:
line default exec-timeout 0 0 width 512 length 512In this example, the following terminal attributes override the default line template default terminal attribute settings:
- The EXEC timeout for terminal sessions is set to 0 minutes and 0 seconds. Setting the EXEC timeout to 0 minutes and 0 seconds disables the EXEC timeout function; thus, the EXEC session for the terminal session will never time out (the default EXEC timeout for the default line template is 10 minutes).
- The width of the terminal screen for the terminals referencing the default template is set to 512 characters (the default width for the default line template is 80 characters).
- The length, the number of lines that will display at one time on the terminal referencing the default template, is set to 512 lines (the default length for the default line template is 24 lines).
Configuring a User-Defined Template to Reference the Default vty Pool: Example
This configuration example shows how to configure a user-defined line template (named test in this example) for vtys and to configure the line template test to reference the default vty pool:
line template test exec-timeout 100 0 width 100 length 100 exit vty-pool default 0 4 line-template testConfiguring a User-Defined Template to Reference a User-Defined vty Pool: Example
This configuration example shows how to configure a user-defined line template (named test2 in this example) for vtys and to configure the line template test to reference a user-defined vty pool (named pool1 in this example):
line template test2 exec-timeout 0 0 session-limit 10 session-timeout 100 transport input all transport output all exit vty-pool pool1 5 50 line-template test2Configuring a User-Defined Template to Reference the Fault Manager vty Pool: Example
This configuration example shows how to configure a user-defined line template (named test3 in this example) for vtys and to configure the line template test to reference the fault manager vty pool:
line template test3 width 110 length 100 session-timeout 100 exit vty-pool eem 100 106 line-template test3Additional References
The following sections provide references related to implementing physical and virtual terminals on Cisco IOS XR software.
Related Documents
Related Topic
Document Title
Cisco IOS XR terminal services commands
Terminal Services Commands on the Cisco IOS XR Software module of Cisco IOS XR System Management Command Reference for the Cisco XR 12000 Series Router
Cisco IOS XR command master index
Cisco IOS XR Commands Master List for the Cisco XR 12000 Series Router
Information about getting started with Cisco IOS XR software
Cisco IOS XR Getting Started Guide for the Cisco XR 12000 Series Router
Information about user groups and task IDs
Configuring AAA Services on the Cisco IOS XR Software module of Cisco IOS XR System Security Configuration Guide for the Cisco XR 12000 Series Router
MIBs
MIBs
MIBs Link
— To locate and download MIBs using Cisco IOS XR software, use the Cisco MIB Locator found at the following URL and choose a platform under the Cisco Access Products menu: http://cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml