Hello Milan
First of all, the best practice is to have a different voice VLAN and a different data VLAN. This way you can ensure that security features are in place that will not allow someone on the VLAN to eavesdrop on conversations, as well as being able to apply QoS features on the VLAN tag of the Voice VLAN such that proper priorities are being set.
Now having said that, it is possible to configure the switch as you have it in your post, even if it is not recommended. If the phone is not registering, then the problem is probably not the voice VLAN. For phone registration problems, take a look at the following:
- Make sure the DHCP server is reachable from that VLAN
- Make sure Option 150 on the DHCP server is configured and provides the correct TFTP server
- Make sure the TFTP server is reachable from the voice VLAN.
I hope this has been helpful!
Laz