cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
603
Views
0
Helpful
5
Replies

vlan problem

eng_adel273
Level 1
Level 1

 

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

5 Replies 5

cheeseburger
Level 1
Level 1

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.

why the  switchport voice vlan 200  is not executed.

 

 

 

Are you using a Cisco phone and Cisco switch? Do you have CDP enabled on the Cisco switch? These are necessary to use this. Also, I believe that older switches don't support this, I would assume that if you can enter the command it would though. Please confirm you're using a Cisco phone and CDP is enabled.


using grandstream , please help me

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.