好的。谢谢
qos apply policy x inbound/outbound 这条命令的。inbound(入方向)和 outbound(出方向)都是支持的。但在实际部署中,对流量进行重标记(Remark)、限速或过滤等操作,通常建议在 inbound 方向进行配置,效果更为直观和稳定。1# 1. 定义流分类(例如匹配特定 VLAN 或 ACL)
2traffic classifier CLASS1 operator and
3 if-match vlan-id 100
4
5# 2. 定义流行为(例如重标记优先级或进行流量监管)
6traffic behavior BEHAVIOR1
7 remark 8021p 5
8 # 或者配置限速等其他动作
9
10# 3. 定义 QoS 策略并将分类与行为绑定
11qos policy POLICY1
12 classifier CLASS1 behavior BEHAVIOR1
13
14# 4. 进入二层聚合口,应用 QoS 策略
15interface Bridge-Aggregation 10
16 port link-type trunk
17 port trunk permit vlan 100
18 # 在聚合口下调用策略(入方向和出方向均支持)
19 qos apply policy POLICY1 inbound
interface Bridge-Aggregation 1
qos apply policy P1 inbound
qos apply policy P1 outbound
mirroring-group 1 local
mirroring-group 1 mirroring-port Bridge-Aggregation 1 both // 聚合口做源
mirroring-group 1 monitor-port GigabitEthernet 1/0/24 // 观察口
mirroring-group 1 local
mirroring-group 1 mirroring-vlan 10 both // 镜像整个VLAN
mirroring-group 1 monitor-port GigabitEthernet 1/0/24
# 1. 定义流分类
traffic classifier C1
if-match vlan-id 10
# 2. 定义流行为(镜像到观察口)
traffic behavior B1
mirror-to interface GigabitEthernet 1/0/24
# 3. 绑定策略
qos policy P1
classifier C1 behavior B1
# 4. 在聚合口应用(真机可行)
interface Bridge-Aggregation 1
qos apply policy P1 inbound
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
好的。谢谢