11-09-2017 07:15 AM - edited 03-05-2019 09:27 AM
The following command not working , only receive data vlan , voice vlan not working
interface FastEthernet0/1
switchport trunk allowed vlan 200-210
switchport mode trunk
!
interface FastEthernet0/4
switchport access vlan 202
switchport mode access
switchport voice vlan 200
spanning-tree portfast
also i can't type this command
switchport trunk encapsulation dot1q .
Switch#show interfaces f0/1 capabilities
FastEthernet0/1
Model: WS-C2960-24TC-L
Type: 10/100BaseTX
Speed: 10,100,auto
Duplex: half,full,auto
Trunk encap. type: 802.1Q
Trunk mode: on,off,desirable,nonegotiate
Channel: yes
11-09-2017 07:26 AM
Now days, the switchport trunk encapsulation dot1q is not needed. It's default on the devices when you have a trunk. You only have to change it if you want to use ISL.
I don't think you need the "switchport mode access" command. Also, if you're using portfast, I would suggest enabling bpdu guard, just to be safe.
11-09-2017 07:28 AM
why the switchport voice vlan 200 is not executed.
11-09-2017 07:33 AM
11-09-2017 09:40 AM
using grandstream , please help me
11-09-2017 11:53 AM
If you're using Grandstream phones (haven't heard of them) my understanding is this will not work. I believe you'll need to force your phone to tag the traffic and then set up the access ports as now trunk ports. I believe for the Cisco switch to show both ports as an access port for two VLANs, you need to have a Cisco phone and CDP enabled. Then Cisco does its magic with CDP.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide