Avatar of Trevor_C
Trevor_C
 asked on

assigning ports to vlan2 on cisco 4500 switch

Hi
I need help to add my range of GigabitEthernet 2/2 - 48 ports to vlan2, on a cisco cat 4500 switch, can someone help.

thanks
CiscoSwitches / HubsNetworkingNetworking Hardware-Other

Avatar of undefined
Last Comment
Trevor_C

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
bamsi

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Predrag Jovic

Since you had previously need for this
I need vlan 1 ip address: 192.168.1.13 255.255.255.0
and vlan 2 (voip) 192.168.2.50 255.255.255.0
as Bamsi already gave
# interface range GigabitEthernet 2/2 - 48
 switchport mode access
 switchport voice vlan 2
 switchport access vlan 1  <-- although technically this one is not needed in your case (this is what need to be done if you need some VLAN other than VLAN1 to be present on the same port as voice VLAN)

This should forward traffic for phones and PCs in VLAN 1, but Cisco switch by default don't trust device's priority markings. And you should set portfast on those ports (sometimes phones can't get IP from DHCP server if STP is turned on port).
So you should configure switch to trust devices.
That can be achieved with adding commands under interfaces
# spanning-tree portfast bpduguard
# auto qos voip {cisco-phone | trust}
Trevor_C

ASKER
Thank you for this it is appreciated.
Your help has saved me hundreds of hours of internet surfing.
fblack61