01-25-2024 04:35 PM
Hi~
It turns out the customer keeps plugging their ip-phone into the DATA switch and is suffering from a LOOP.
Is there anything like flexlink out there?
Solved! Go to Solution.
01-28-2024 11:13 AM
Setup ELRP on the ports. Works flawlessly.
Alternatively, you could run a detection routine that detects a phone that's plugged in and configures the port using a universal port profile.
Below is a simplified version I took from an old Avaya doc and modified. There
create upm profile voip_company_generic
#********************************
# Last Updated: Jan 20, 2018
# Brent Addis - <brent.addis@fastcom.co.nz>
# Based on Avaya phone script with alterations
#********************************
# @META_DATA_START
# @FileDescription "This is a template for configuring network parameters for VoIP
#phones support LLDP but without 802.1x authentication. The module is triggered
#through the detection of an LLDP packet on the port.
#The following network side
#configuration is done: enable SNMP traps, QOS assignment, adjust POE reservation
#values based on device requirements, add the voiceVlan to the port as tagged."
# @Description "Voice VLAN name"
set var voicevlan voice
# @Description "Send trap when LLDP event happens (true or false)"
set var sendTraps false
# @Description "Set QoS Profile (true or false)"
set var setQuality true
# @META_DATA_END
#
if (!$match($EVENT.NAME,DEVICE-DETECT)) then
create log entry Starting_LLDP_Generic_Module_Config
# VoiceVLAN configuration
configure vlan $voicevlan add port $EVENT.USER_PORT tagged
#SNMP Trap
if (!$match($sendTraps,true)) then
create log entry Config_SNMP_Traps
enable snmp traps lldp ports $EVENT.USER_PORT
enable snmp traps lldp-med ports $EVENT.USER_PORT
else
disable snmp traps lldp ports $EVENT.USER_PORT
disable snmp traps lldp-med ports $EVENT.USER_PORT
endif
#Link Layer Discovery Protocol-Media Endpoint Discover
create log entry Config_LLDP
configure lldp port $EVENT.USER_PORT advertise vendor-specific med capabilities
configure lldp port $EVENT.USER_PORT advertise vendor-specific dot1 vlan-name vlan $voicevlan
configure lldp port $EVENT.USER_PORT advertise vendor-specific med policy application Voice vlan $voicevlan dscp 46
configure lldp port $EVENT.USER_PORT advertise vendor-specific med power-via-mdi
#Configure POE settings per device requirements
create log entry Config_POE
configure inline-power operator-limit $EVENT.DEVICE_POWER ports $EVENT.USER_PORT
#QoS Profile
if (!$match($setQuality,true)) then
create log entry Config_QOS
configure port $EVENT.USER_PORT qosprofile qp7
#create log entry Config_Isolation
#configure ports $EVENT.USER_PORT isolation on
create log entry Change_Port_Display
configure ports $EVENT.USER_PORT display-string "$EVENT.DEVICE"
endif
endif
if (!$match($EVENT.NAME,DEVICE-UNDETECT) && $match($EVENT.DEVICE_IP,0.0.0.0)) then
create log entry Starting_LLDP_Generic_UNATUH_Module_Config
if (!$match($sendTraps,true)) then
create log entry UNConfig_SNMP_Traps
disable snmp traps lldp ports $EVENT.USER_PORT
disable snmp traps lldp-med ports $EVENT.USER_PORT
endif
create log entry UNConfig_LLDP
unconfig lldp port $EVENT.USER_PORT
if (!$match($setQuality,true)) then
create log entry UNConfig_QOS
unconfig qosprofile ports $EVENT.USER_PORT
endif
unconfig inline-power operator-limit ports $EVENT.USER_PORT
endif
if (!$match($EVENT.NAME,DEVICE-UNDETECT) && !$match($EVENT.DEVICE_IP,0.0.0.0)) then
create log entry DoNothing_0.0.0.0
create log entry $EVENT.TIME
endif
create log entry End_LLDP_Generic_Module_Config
01-31-2024 11:21 AM
Awesome. It's very easy to use!
Let me know if you need a hand.
01-30-2024 08:44 PM
Thank you for your reply!.
I'll use ELRP.
01-28-2024 11:13 AM
Setup ELRP on the ports. Works flawlessly.
Alternatively, you could run a detection routine that detects a phone that's plugged in and configures the port using a universal port profile.
Below is a simplified version I took from an old Avaya doc and modified. There
create upm profile voip_company_generic
#********************************
# Last Updated: Jan 20, 2018
# Brent Addis - <brent.addis@fastcom.co.nz>
# Based on Avaya phone script with alterations
#********************************
# @META_DATA_START
# @FileDescription "This is a template for configuring network parameters for VoIP
#phones support LLDP but without 802.1x authentication. The module is triggered
#through the detection of an LLDP packet on the port.
#The following network side
#configuration is done: enable SNMP traps, QOS assignment, adjust POE reservation
#values based on device requirements, add the voiceVlan to the port as tagged."
# @Description "Voice VLAN name"
set var voicevlan voice
# @Description "Send trap when LLDP event happens (true or false)"
set var sendTraps false
# @Description "Set QoS Profile (true or false)"
set var setQuality true
# @META_DATA_END
#
if (!$match($EVENT.NAME,DEVICE-DETECT)) then
create log entry Starting_LLDP_Generic_Module_Config
# VoiceVLAN configuration
configure vlan $voicevlan add port $EVENT.USER_PORT tagged
#SNMP Trap
if (!$match($sendTraps,true)) then
create log entry Config_SNMP_Traps
enable snmp traps lldp ports $EVENT.USER_PORT
enable snmp traps lldp-med ports $EVENT.USER_PORT
else
disable snmp traps lldp ports $EVENT.USER_PORT
disable snmp traps lldp-med ports $EVENT.USER_PORT
endif
#Link Layer Discovery Protocol-Media Endpoint Discover
create log entry Config_LLDP
configure lldp port $EVENT.USER_PORT advertise vendor-specific med capabilities
configure lldp port $EVENT.USER_PORT advertise vendor-specific dot1 vlan-name vlan $voicevlan
configure lldp port $EVENT.USER_PORT advertise vendor-specific med policy application Voice vlan $voicevlan dscp 46
configure lldp port $EVENT.USER_PORT advertise vendor-specific med power-via-mdi
#Configure POE settings per device requirements
create log entry Config_POE
configure inline-power operator-limit $EVENT.DEVICE_POWER ports $EVENT.USER_PORT
#QoS Profile
if (!$match($setQuality,true)) then
create log entry Config_QOS
configure port $EVENT.USER_PORT qosprofile qp7
#create log entry Config_Isolation
#configure ports $EVENT.USER_PORT isolation on
create log entry Change_Port_Display
configure ports $EVENT.USER_PORT display-string "$EVENT.DEVICE"
endif
endif
if (!$match($EVENT.NAME,DEVICE-UNDETECT) && $match($EVENT.DEVICE_IP,0.0.0.0)) then
create log entry Starting_LLDP_Generic_UNATUH_Module_Config
if (!$match($sendTraps,true)) then
create log entry UNConfig_SNMP_Traps
disable snmp traps lldp ports $EVENT.USER_PORT
disable snmp traps lldp-med ports $EVENT.USER_PORT
endif
create log entry UNConfig_LLDP
unconfig lldp port $EVENT.USER_PORT
if (!$match($setQuality,true)) then
create log entry UNConfig_QOS
unconfig qosprofile ports $EVENT.USER_PORT
endif
unconfig inline-power operator-limit ports $EVENT.USER_PORT
endif
if (!$match($EVENT.NAME,DEVICE-UNDETECT) && !$match($EVENT.DEVICE_IP,0.0.0.0)) then
create log entry DoNothing_0.0.0.0
create log entry $EVENT.TIME
endif
create log entry End_LLDP_Generic_Module_Config