我正在查看工作中的思科交换机日志,对于它有时有多冗长感到有点困惑。
例如,我们在这里使用自动 QoS,当电话插入时我经常会看到这种情况:
Mar 18 15:22:40: %SWITCH_QOS_TB-5-TRUST_DEVICE_DETECTED: cisco-phone detected on port Fa1/0/9, port's configured trust state is now operational.
Mar 18 15:22:41: %SWITCH_QOS_TB-5-TRUST_DEVICE_DETECTED: cisco-phone detected on port Fa1/0/9, port's configured trust state is now operational.
Mar 18 15:22:42: %SWITCH_QOS_TB-5-TRUST_DEVICE_DETECTED: cisco-phone detected on port Fa1/0/9, port's configured trust state is now operational.
Mar 18 15:22:43: %SWITCH_QOS_TB-5-TRUST_DEVICE_DETECTED: cisco-phone detected on port Fa1/0/9, port's configured trust state is now operational.
Mar 18 15:22:44: %SWITCH_QOS_TB-5-TRUST_DEVICE_DETECTED: cisco-phone detected on port Fa1/0/9, port's configured trust state is now operational.
Mar 18 15:22:45: %SWITCH_QOS_TB-5-TRUST_DEVICE_DETECTED: cisco-phone detected on port Fa1/0/9, port's configured trust state is now operational.
为什么它会发送六次该垃圾邮件?这是在 WS-C3750V2-24-PS-S 交换机上。如果有什么不同的话,一个堆栈中有 5 个此类交换机运行 IOS 12.2(55)SE3。
端口的配置如下:
Current configuration : 655 bytes
!
interface FastEthernet1/0/9
switchport access vlan 10
switchport mode access
switchport voice vlan 710
switchport port-security maximum 3
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
ip arp inspection limit rate 100
load-interval 30
srr-queue bandwidth share 10 10 60 20
priority-queue out
mls qos trust device cisco-phone
mls qos trust cos
auto qos voip cisco-phone
spanning-tree portfast
spanning-tree bpduguard enable
service-policy input AutoQoS-Police-CiscoPhone
ip verify source
ip dhcp snooping limit rate 100
end
答案1
我认为这可能是一个冲突:
auto qos voip cisco-phone
以及其他服务政策:
service-policy input AutoQoS-Police-CiscoPhone
我会尝试删除其中一个,看看会发生什么。在我们的环境中仅运行自动 qos 时没有遇到任何问题。
来自 AutoQoS 文档“确保没有 QoS 策略(服务策略)附加到接口。如果 QoS 策略(服务策略)附加到接口,则无法配置此功能”