A Few Easy Steps: Cisco Switch, Setting up a VLAN

In this session of A Few Easy Steps, we will be creating a new VLAN and its Layer 3 Gateway. In General this will work on any Cisco Switch runs on IOS. However we will have to cover older L2 switches and Routers with Switch Modules (like in Dynamips) in a future post but for now check out this video tutorial if you need help.

Session Prerequisites:

  • You have terminal or console access to your Cisco device

Session Assumptions:

  • We are going to create VLAN 20
  • The IP Gateway Address for VLAN 20 is 192.168.20.1
  • Netmask of IP Gateway for VLAN 20 is 255.255.255.0

Our goals of this session are:

  • Setup L2 VLAN
  • Setup VLAN 20 L3 Interface

Setup L2 VLAN:

conf t
!
VLAN 20
!
name TESTSESSION
!
end
!
copy running-config startup-config

Setup VLAN 20 Interface:

conf t
!
interface VLAN 20 
!
ip address 192.168.20.1 255.255.255.0
!
no shut
!
end
!
copy running-config startup-config

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *