Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I work with Fortigate gear a lot and in the CLI it's possible to navigate to a node (say config system global then type in show and it will show me the configuration from that block.

In IOS I can't figure out how to do this, I know I can exit conf term mode and use show run but the configs can be very long.

Is it possible while in say:

router#conf t
router(config)#interf f0/1

To type a command that will show me only the config section like this:

interface FastEthernet0/1
 no ip address
 speed auto
 pppoe enable group global
 pppoe-client dial-pool-number 1

Thanks for any advice!

share|improve this question

2 Answers 2

up vote 4 down vote accepted

I think what you are looking for is :

router# show running-config interface FastEthernet0/1

This will only display the configuration for port Fa0/1.

When you are in config mode, you can use the do keyword to call the show command :

router(config)# do show running-config interface FastEthernet0/1
share|improve this answer
Since he is in configuration mode you'll need to add "do" in front of the "show running-conf" command –  Mike Pennington Feb 5 at 14:11
@Mike Pennington I've just edited my answer with this just a few second before i see your comment ;) –  krisFR Feb 5 at 14:12
Apologies I'm responding from my phone so I don't get notifications about edits –  Mike Pennington Feb 5 at 14:14
That's the ticket! Cheers bud :) –  Myles Gray Feb 5 at 14:56

Another useful tool is the pipe command | and include, so:

router# show running-config | include interface

would show you all lines in the running-config containing the word interface

share|improve this answer
| begin is also a useful feature in some cases : show running-config | begin interface ;) –  krisFR Feb 5 at 16:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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