0031_Cisco: Voice VLAN & PoE

Voice VLAN is a feature that allows a switch to prioritize and segregate voice traffic from data traffic by assigning it to a dedicated VLAN. This ensures Quality of Service (QoS) for VoIP devices, minimizing latency, jitter, and packet loss. The Voice VLAN is typically used for IP phones, and the switch can automatically recognize and place their traffic into the designated VLAN.

Power over Ethernet (PoE) technology allows network switches to provide electrical power to connected devices through Ethernet cables. This eliminates the need for separate power adapters. PoE is commonly used for IP phones, wireless access points, security cameras, and other devices. Standards like IEEE 802.3af, 802.3at, and 802.3bt define power levels, with up to 100W per port in the latest versions.

 

#Voice VLAN
enable
	configure terminal
		interface g0/0
			switchport mode access
			switchport access vlan 10
			switchport voice vlan 11
#PCs will send traffic untagget as normal
#Switches will use CDP to tell IP Phones to tag phone`s traffic in VLAN 11

	show interface g0/0 switchport

#PoE
#Power policing can be configured to prevent a PD (Powered Device) from taiking too much power.
#Power inline police - configures power policing with the default settings: 
#	-disable the port
#	-send a Syslog message 
#if a PD draws too much power
#Equivalent to: power inline police action err-disable
#The interface will be put in an "err-disable" state and can be re-enabled with shutdown, then no shutdown
		interface <interface>
			power inline police				#if any problem, the interface will shutdown
			power inline police action log	#interface won`t shutdown, you only will get log message
			
	show powewr inline police <interface>
#-------------------------------------------------------------------|	
#	Name		|		Standard	|	Watts	|	Powered Pairs	|
#-------------------------------------------------------------------|
#Cisco			|	Made by Cisco	|	7		|		2			|
#PoE (Type 1)	|		802.3af		|	15		|		2			|
#PoE (Type 2)	|		802.3at		|	30		|		2			|
#UPoE (Type 3)	|		802.3bt		|	60		|		4			|
#UPoE (Type 4)	|		802.3bt		|	100		|		4			|
#-------------------------------------------------------------------|