cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
728
Views
0
Helpful
4
Replies

How to query which line I am configuring in a Cisco router?

The Cisco router prompt shows only that I am configuring a line: config-line.

How can I make IOS to print exactly which line I am configuring?

4 Replies 4

Hello
Im not so sure i understand what you mean can you please elaborate a little?


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @00u14bc8uyV7ZKlwx5d7 ,

 

>>

The Cisco router prompt shows only that I am configuring a line: config-line.

How can I make IOS to print exactly which line I am configuring?

 

This is not possible IOS tells the hierarchy level where you are exactly like

Router(config-interface)#

tells you are configuring an interface but not what interface you are configuring.

To know what you are configuring you need to look at the command in global config that made the router to enter (config-line) mode:

 

Example1:

Router(config )# line vty 0 4

Router(config-line)# ! commands here will configure the line vty 0 to 4

 

Example 2:

Router(config )# line vty 5 15

Router(config-line)# ! commands here will configure the line vty 5 to 15

 actually switches defaults to have also this range of line vty

On the other hand:

if you just want to know in which line vty you are using to access the device you can use

show users

notice the line vty you are using will have a * character near it on the left.

Hope to help

Giuseppe

 

 

 

 

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

If you are coming from junos and are thinking of the cli configuration-breadcrumbs and the ability to issue the show command when in configuration mode to display your position in the hierarchy, sadly IOS doesn't have such nice features!

 

cheers,

Seb.

Bahirakira
Level 1
Level 1

IOS does not show anything more than you're already seeing. You are expected to remember which line(s) you selected. Why would you be sitting in line configuration mode any longer than necessary to enter the desired line configuration commands? You can't end up in line config mode without specifying the line(s), so it really doesn't need to be in the prompt -- it'll be in you CLI history, and very likely still on your terminal screen. sipotek

Review Cisco Networking for a $25 gift card