MQC on subinterface

本文介绍了在网络设备上配置流量策略的方法,包括使用策略映射来控制ICMP和VoIP流量的具体设置,以及如何对不同类型的流量进行整形和优先级划分。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

出处:bu.cublog.cn

hostname r1

class-map match-all VOIP
match protocol rtp
class-map match-all ICMP
match access-group 101

policy-map police_ICMP
class ICMP
police cir 16000
policy-map 128KVOIP
class VOIP
priority 128
policy-map shape
class class-default
shape average 3000000
service-policy 128KVOIP

interface Ethernet0/0
no ip address
!
interface Ethernet0/0.1
encapsulation dot1Q 1 native
ip address 10.1.1.1 255.255.255.0
service-policy output police_ICMP
!
interface Ethernet0/0.2
encapsulation dot1Q 2
ip address 10.1.2.1 255.255.255.0
service-policy output shape

access-list 101 permit icmp any any
------------------------------------------------------------
r1#sh policy-map int e0/0.1
Ethernet0/0.1

Service-policy output: police_ICMP

Class-map: ICMP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group 101
police:
cir 16000 bps, bc 1500 bytes
conformed 0 packets, 0 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps

Class-map: class-default (match-any)
4 packets, 1504 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
---------------------------------------------------------------

r1#sh policy-map int e0/0.2
Ethernet0/0.2

Service-policy output: shape

Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
Traffic Shaping
Target/Average Byte Sustain Excess Interval Increment
Rate Limit bits/int bits/int (ms) (bytes)
3000000/3000000 18750 75000 75000 25 9375

Adapt Queue Packets Bytes Packets Bytes Shaping
Active Depth Delayed Delayed Active
- 0 0 0 0 0 no

Service-policy : 128KVOIP

Class-map: VOIP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol rtp
Queueing
Strict Priority
Output Queue: Conversation 136
Bandwidth 128 (kbps) Burst 3200 (Bytes)
(pkts matched/bytes matched) 0/0
(total drops/bytes drops) 0/0

Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any 
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值