How to make IOS complete command in CLI

Answered Question
Oct 28th, 2009
User Badges:

Hi,

In Juniper OS if I do "ip ro" then I press <tab>, the command automatically the complete command appears as "ip route". How can I do that in Cisco IOS?

Correct Answer by Edison Ortiz about 7 years 6 months ago

It's the same in Cisco IOS.


The problem with 'ip ro' and tab is that there are multiple options.


Rack1R1(config)#ip ro?

route routing


So how the router will know which to choose on a tab?


Now, if you type


Rack1R1(config)#ip routi

Rack1R1(config)#ip routing


The second line was completed with the tab as there is only one option for 'ip routi'.


Regards


Edison

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Edison Ortiz Wed, 10/28/2009 - 09:18
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

It's the same in Cisco IOS.


The problem with 'ip ro' and tab is that there are multiple options.


Rack1R1(config)#ip ro?

route routing


So how the router will know which to choose on a tab?


Now, if you type


Rack1R1(config)#ip routi

Rack1R1(config)#ip routing


The second line was completed with the tab as there is only one option for 'ip routi'.


Regards


Edison

Reza Sharifi Wed, 10/28/2009 - 09:37
User Badges:
  • Super Bronze, 10000 points or more
  • Cisco Designated VIP,

    2017 LAN

Marlon,


You mean space bar or the tab key?

In JUNOS, when you type sh and press the space bar key, it will complete the command for you. Now, you can do the same thing with the tab key, but why would you want do that when space bar can easily do for you.


As for Cisco IOS, the space bar does NOT complete the command and if you want to completed the command you have to use the tab key


HTH

Reza


news2010a Wed, 10/28/2009 - 11:14
User Badges:

Sorry. I meant JunOS.


I recalled I tried in the Cisco IOS before and that did not work - probably the IOS version was old and it did not offer that feature.


Thanks folks!



iyde Wed, 10/28/2009 - 15:04
User Badges:
  • Silver, 250 points or more

Hi Marlon.


Either it has been an ambiguous command as described by Edison, or it would have been a veeeeeeeeeery old IOS :-)


HTH, Ingolf

Leo Laohoo Wed, 10/28/2009 - 16:13
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

Enterasys also completes a command with the use of the spacebar.

Actions

This Discussion