Cisco IOS Create Vlan and configure access ports

d

akonkol
February 16, 2012






conf t
vlan %{vlan_id}%
  name %{vlan_name}%
  exit

interface vlan %{vlan_id}%
 description %{vlan_name}% network
 ip address %{vlan_ip_address}% %{vlan_subnetmask}%
 no shut
 exit

interface range gi1/%{start_if_range}% - %{end_if_range}%
  switchport mode access
  switchport access vlan %{vlan_id}%
  spanning-tree portfast
  end
copy run start