H3C QoS打标签和限速配置案例

H3C QoS打标签和限速配置案例_第1张图片

H3C QoS打标签和限速配置案例_第2张图片

EF:快速转发
AF:确保转发
CS:给各种协议用的
BE:默认标记(尽力而为)


VSR-88-2 出口路由配置:

[H3C]dis current-configuration

version 7.1.075, ESS 8305

vlan 1

traffic classifier vlan10 operator and
if-match acl 2001

traffic classifier vlan20 operator and
if-match acl 2002

traffic classifier web operator and
if-match acl 3000

traffic behavior vlan10
remark dscp af31 //vlan 10用户打上af31 qos标签

traffic behavior vlan20
remark dscp ef //vlan 20用户打上ef qos标签

traffic behavior web
car cir 1500 //vlan 30用户访问80端口限速给1500

qos policy qos1
classifier vlan10 behavior vlan10
classifier vlan20 behavior vlan20
classifier web behavior web

interface NULL0

interface GigabitEthernet0/0/0
port link-mode route
combo enable copper

interface GigabitEthernet0/0/1
port link-mode route
combo enable copper
ip address 1.1.1.2 255.255.255.252
nat outbound 2000

interface GigabitEthernet0/0/9
port link-mode route
combo enable copper
ip address 2.2.2.1 255.255.255.0
qos apply policy qos1 inbound

interface GigabitEthernet0/0/10
port link-mode route
combo enable copper

line vty 0 63
user-role network-operator

ip route-static 0.0.0.0 0 1.1.1.1
ip route-static 192.168.0.0 16 2.2.2.2

acl basic 2000
rule 5 permit source 192.168.0.0 0.0.255.255

acl basic 2001
rule 5 permit source 192.168.10.0 0.0.0.255

acl basic 2002
rule 5 permit source 192.168.20.0 0.0.0.255

acl advanced 3000
rule 5 permit tcp source 192.168.30.0 0.0.0.255 destination-port eq www

出口路由上查看:
H3C QoS打标签和限速配置案例_第3张图片
出口路由上抓包查看标签:
H3C QoS打标签和限速配置案例_第4张图片
H3C QoS打标签和限速配置案例_第5张图片

你可能感兴趣的:(网络工程,网络)