Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
In the topology above, I want to create a single VLAN which houses the router and the VoIP phones alone. All other devices should be excluded from this VLAN.
I don’t want to use voice VLAN, just normal VLAN.
What is the configuration?
Since you're not sharing the phone links, simply create a VLAN on all switches, use trunks in between switches and access ports towards the phones and the router.
@Paa The VLAN ID needs to exist on any switch where a phone is present or any switch where phone traffic will pass through it. So, if the phone traffic is on switch 1 but has to pass through switch 2 to get to the router/firewall to get to the internet, you would need to also have the same voice VLAN on switch 2 even though the phones aren’t directly connected to it.
@Paa Correct. Trunks between the switches (to carry multiple VLAN IDs), add the VLAN ID to the VLAN database on each switch as needed. Assign the VLAN to each of the phones. Since you aren’t using the pass-through ports on the phones for the workstations, you don’t need to use switchport voice vlan <id>, just use switchport access vlan <id>. The command switchport voice vlan is for when you need to have separate data and voice traffic on the same switch port, using different VLAN IDs and potentially using QoS. Since you don’t (in your diagram),that’s not necessary.
switchport voice vlan <id>
, just useswitchport access vlan <id>
. The commandswitchport voice vlan
is for when you need to have separate data and voice traffic on the same switch port, using different VLAN IDs and potentially using QoS. Since you don’t (in your diagram),that’s not necessary.