Display configuration of a single interface

Displaying configuration of a single interface can be a time-consuming task if your router has extremely long configuration (for example, high-end device with hundreds of interfaces, route-maps, access-lists etc.). In this case, the interface keyword of the show running-config command becomes extremely useful.For example, the show running-config interface serial 0/0.1 command displays only configuration of the specified interface (without building the whole running configuration)

POP#show running-config interface serial 0/0.1
Building configuration...

Current configuration : 154 bytes
!
interface Serial0/0.1 point-to-point
description *** Link to Core-1 ***
ip address 172.16.1.6 255.255.255.252
frame-relay interface-dlci 101
end
Note: the printout is taken from the Configuring BGP Route Reflectors remote lab.

1 comment:

  1. Got any tricks to for example display running config for all vlan interfaces?
    Something like "sh ru int vlan *" ?

    ReplyDelete

You don't have to log in to post a comment, but please do provide your real name/URL. Anonymous comments might get deleted.

Ivan Pepelnjak, CCIE#1354, is the chief technology advisor for NIL Data Communications. He has been designing and implementing large-scale data communications networks as well as teaching and writing books about advanced technologies since 1990. See his full profile, contact him or follow @ioshints on Twitter.