Cisco: show run vlan # vs show run int vlan #

ciscoiosnetworkingvlan

What is the difference between the two commands?

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

Likewise:

  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?

Best Answer

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.

Related Topic