What is the difference between the two commands?

  Show run vlan # = blank output
  show run int vlan # = vlan configuration


  show vlans
    No virutal LANs configured

  show vlan
    A bunch of output displaying interfaces and their respective vlans.

What is the difference between the two?

  • What information are you interested in obtaining? – ewwhite Aug 20 '12 at 18:35
  • 1
    The difference is, one shows L2 information, the other shows L3 RVI's associated with those same L2 logical configurations. – SpacemanSpiff Aug 20 '12 at 19:24

The "show run int" shows the portion of the configuration in NVRAM that defines the actual interface. The second command (sh vlan) actually shows the live state of the VLAN's (nb - sh vlan id xxx for a single VLAN ID, if platform supports it) as actively kept in switch's database. One command shows the actual configuration, the other a portion of the running state.


The first is the result of part 'vlan XXX' and the second concerns 'interface vlan XXX'. The first is the definition of vlans and the second the definition of interface Vlan (with IP address). On my switches, the first is always empty as the VLANs are not defined in the running-config but in the vlan database. The seconds concerns the interface Vlan with the IP address, etc.

In my case show vlans doesn't exists.

You could see the vlans created in vlan database / show

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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