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!
I think what you are looking for is :
This will only display the configuration for port Fa0/1.
When you are in config mode, you can use the
do
keyword to call theshow
command :Try
e.g.
It works similar to the
include
statement, but also lists all the sub-commands.Another useful tool is the pipe command
|
andinclude
, so:would show you all lines in the running-config containing the word interface