Link to home
Start Free TrialLog in
Avatar of Trevor_C

asked on

assigning ports to vlan2 on cisco 4500 switch

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

Avatar of bamsi
Flag of Philippines image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Since you had previously need for this
I need vlan 1 ip address:
and vlan 2 (voip)
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}
Avatar of Trevor_C


Thank you for this it is appreciated.