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?
Network Engineering Stack Exchange is a question and answer site for network engineers. It only takes a minute to sign up.
Sign up to join this communityIOS 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.
line vty 0 15
command because you really have no idea to which line you will be connected. The other two areline con 0
, and possiblyline aux 0
if you have a router, but you enter that before configuring the line so you already know which line you are configuring.