MQC on subinterface

来源:互联网 发布:java水果管理系统 编辑:程序博客网 时间:2024/05/16 01:02

出处: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 
 

原创粉丝点击