3

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>en
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
 full-duplex
 pppoe enable group global
 pppoe-client dial-pool-number 1

Thanks for any advice!

Myles Gray
  • 659
  • 4
  • 12
  • 33

3 Answers3

6

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
krisFR
  • 13,280
  • 4
  • 36
  • 42
2

Try

show running-config | section ?

e.g.

show running-config | section router bgp

It works similar to the include statement, but also lists all the sub-commands.

Tom
  • 75
  • 1
  • 6
1

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

Deesbek
  • 210
  • 3
  • 12
  • 2
    `| begin` is also a useful feature in some cases : `show running-config | begin interface` ;) – krisFR Feb 05 '14 at 16:05