Change a VLAN on a Cisco switch port

Start the configuration at the core.  Refer to the knowledgebase for how to add a vlan to the trunk port for the building. SSH to the switch refer to the password database for IP, username, and password. Trunk port
  • Login
  • Type ‘enable
  • Enter the password
  • Type ‘conf t
  • Type ‘int gig <int number>
  • Type switchport trunk allowed vlan add ‘number
  • exit
  • exit
  • wr
  • copy run start
Switch port
  • Login
  • Type ‘enable
  • Enter the password
  • Type ‘sh run‘ to varify
  • Type ‘conf t
  • Type ‘int gig <int number>
  • Type ‘switchport access vlan ‘number’
  • exit
  • exit
  • wr
  • copy run start
To view switch config type ‘show config’ or ‘sh run’ Examples: int gig 1/26 switchport access vlan 150 exit exit wr That would reconfigure port 26 to vlan 150 and save the configuration to the run file. Example output from sh run or show config interface GigabitEthernet1/26 switchport access vlan 198 switchport mode access To remove:
  • Type ‘enable
  • Enter the password
  • Type ‘conf t
  • Type ‘int gig <int number>
  • Type ‘no switchport access vlan 169