华为交换机隔离vlan流量
来源:原创
时间:2024-05-29
作者:脚本小站
分类:网络
两种方法如下:
ACL方法:
support.huawei.com/hedex/hdx.do?docid=EDOC1100364141&id=ZH-CN_TASK_0177110670
MQC方法:
support.huawei.com/hedex/hdx.do?docid=EDOC1100126532&id=ZH-CN_TASK_0177102510
示例:
# 设定规则 [S1] acl 3000 [S1-acl-adv-3000] rule deny ip destination 192.168.199.0 0.0.0.255 [S1-acl-adv-3000] quit # 流量分类 [S1] traffic classifier c_custom [S1-classifier-c_custom] if-match acl 3000 [S1-classifier-c_custom] quit # 流量行为 [S1] traffic behavior b1 [S1-behavior-b1] permit [S1-behavior-b1] quit # 流量分类绑定流量行为 [S1] traffic policy p_custom [S1-trafficpolicy-p_custom] classifier c_custom behavior b1 [S1-trafficpolicy-p_custom] quit # 应用流量策略到vlan102 [S1] vlan 102 [S1-vlan102] traffic-policy p_custom inbound [S1-vlan102] quit