隧道接口上的 IOS QOS 服务策略透传

Mik*_*eyB 10 qos ios

我在一个网络上有一些 SIP 电话,它们通过 IPIP 隧道到达服务器。

我已经设置了 QOS 规则来监视适当的 VOIP 流量,如下所示:

class-map match-any class-voice
  description Voice
  match  dscp af11
  match  dscp cs4 
  match  dscp cs3 
!
policy-map qos-out
  class class-voice
   priority 100
!
interface Tunnel1
 description Tunnel to VOIP Server
 ip address 10.10.0.2 255.255.255.252
 tunnel source FastEthernet0/1
 tunnel destination 172.16.100.100
 tunnel mode ipip
!
interface FastEthernet0/1
 description Internet
 bandwidth 1000
 ip address dhcp
 service-policy output qos-out
Run Code Online (Sandbox Code Playgroud)

我的问题是类映射没有匹配,因为我无法将策略分配给 Tunnel1,只能分配 FastEthernet0/1。

肯定有什么东西可以使这项工作......我该怎么办?

Ven*_*min 1

我非常怀疑优先级队列是否可以以这种方式应用于隧道接口。QoS功能适用于实际竞争带宽的对象——物理接口。

如果您的隧道仅用于 SIP 或其他高优先级流量,您可以将其整体匹配并添加到您的类映射中,如下所示:

ip access-list extended sip-tunnel
 permit ipinip any host 172.16.100.100
!
class-map match-any class-voice
  description Voice
  match  dscp af11
  match  dscp cs4 
  match  dscp cs3
  match  access-group name sip-tunnel
!
Run Code Online (Sandbox Code Playgroud)

UPD:在某些情况下,原始数据包中的 DSCP 字段会被复制到隧道标头。您可以针对您的特定情况(Cisco + IOS + ipinip)选中此选项。如果成功,您不需要最后一次匹配,初始配置应该可以正常工作。