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?

  • It will be the line you entered to configure. Normally, you would configure all the VTY lines the same at the same time with the line vty 0 15 command because you really have no idea to which line you will be connected. The other two are line con 0, and possibly line aux 0 if you have a router, but you enter that before configuring the line so you already know which line you are configuring.
    – Ron Maupin
    Jun 29 at 11:38

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.

  • OK but for almost anything there is a show command. Like pwd in Unix to show the current working directory.
    – Gergely
    Jun 30 at 7:10
  • There's no "show" commands in IOS configuration mode.
    – Ricky
    Jul 2 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.