How to make IOS complete command in CLI

Answered Question
Oct 28th, 2009

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?

I have this problem too.
0 votes
Correct Answer by Edison Ortiz about 7 years 2 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

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

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

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

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

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

Actions

This Discussion