cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
766
Views
0
Helpful
1
Replies

Adding a vlan

hornbeck
Level 1
Level 1

Hello,

We have a 4506 router/switch that we have been running 4 vlans on. I wanted to add anothe vlan, vlan 5 and configure two ports for this vlan. I created the vlan 5 and set these two ports for vlan5 but when I do a sh vlan command, their is no vlan 5 and nobody on vlan 5 gets the dhcp address range 192.168.128.0 255.255.224.0, it cannot find the dhcp server.

Any help or advice with a document or syntax useage is greatly welcome.

TIA,

Gary

1 Reply 1

gpulos
Level 8
Level 8

how did you create the vlan?

do you have a 'VTP Server' switch running and you created it there?

do you have multiple switches and created it on a VTP Client?

if your switch is configured as a 'VTP Client', you will not be able to create vlans on it. you must create vlans on a VTP Server or VTP Transparent configured switch.

the configuration commands depend on the OS running; either CatOS or IOS:

CatOS - (must be run on VTP Server or VTP Transparent configured switch only)

switch>(enable) set vlan 5 name NEWVLAN

switch>(enable) set vlan 5 2/3-4

these commands create the vlan 5 named NEWVLAN and then adds the ports 2/3 & 2/4 to vlan 5

IOS - (must be run on VTP Server or VTP Transparent configured switch only)

(there are two ways to configure vlans; globalConfigMode or vlanDatabaseMode)

globalConfigurationMode -

switch(config)# vlan 5

switch(config-vlan)# end

switch# show vlan id 5

or

switch# show vlan

vlanDatabaseMode -

switch(config)# vlan database

switch(config-vlan)# vlan 5

switch(config-vlan)end

switch# show vlan 5

switch(config)# interface 3/1-2

switch(config-if)# switchmode access vlan 5

switch(config)# end

the above commands create a vlan with ID 5 and add the two ports, 3/1 & 3/2 to vlan 5.

be sure to check your VTP configuration on the switch you are attempting to create the new vlan on.

please see the following links for more info on 4500 vlan configuration:

IOS -

http://www.cisco.com/en/US/products/hw/switches/ps4324/products_configuration_guide_chapter09186a00804d78fa.html#wp1020887

CatOS -

http://www.cisco.com/en/US/products/hw/switches/ps4324/products_configuration_guide_chapter09186a008007d8ff.html

NOTE: you'll need to configure interVLAN routing if your DHCP server does not exist on vlan 5 or you need vlan 5 to communicate with other vlans.