CISCO IOS in a Nutshell (2024)

Virtual terminals are logicalconnections from the network to the router; these are typically telnet or rlogin connections. When a usertelnets to a router from the network, as in Figure 4-2, the router starts an EXEC process to handlethis connection.

CISCO IOS in a Nutshell (1)

Figure4-2.VTY connections

Although no physical link is associated with a virtual terminal, VTYsare configured just like normal TTY lines. VTYs are enabled once theyare configured. If you do not configure any VTYs, then logicalconnections, such as telnet, cannot be made to your router from thenetwork. Here is a VTY configuration example:

Router(config)#line vty 1Router(config-line)#exec-timeout 0 30 Set the timeout to 30 minutesRouter(config-line)#password letmeinhere Set one password for telnet accessRouter(config-line)#transport input telnet Allow only telnet accessRouter(config-line)#access-class 10 in Apply access list 10 to this lineRouter(config-line)#exitRouter(config)#access-list 10 permit host 10.10.1.2

This example shows a semi-secure configuration for a VTY terminal. Weset a timeout for 30 minutes and apply only one password. We then usethe transport input command todefine the protocols that are allowed to use this line; in this case,we are allowing only telnet access. Theaccess-class command applies an access list to thisinterface. We won’t explain access lists here; in this examplewe use a simple access list to permit access from the host at address10.10.1.2.

Tip

You should configure all your VTYs in the same manner, because thereis no way to predict which VTY a user is going to receive when hetelnets into the device.

CISCO IOS in a Nutshell (2024)
Top Articles
Latest Posts
Article information

Author: Msgr. Refugio Daniel

Last Updated:

Views: 6573

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Msgr. Refugio Daniel

Birthday: 1999-09-15

Address: 8416 Beatty Center, Derekfort, VA 72092-0500

Phone: +6838967160603

Job: Mining Executive

Hobby: Woodworking, Knitting, Fishing, Coffee roasting, Kayaking, Horseback riding, Kite flying

Introduction: My name is Msgr. Refugio Daniel, I am a fine, precious, encouraging, calm, glamorous, vivacious, friendly person who loves writing and wants to share my knowledge and understanding with you.