Skip to content Skip to footer

使用QOS定义路由下一跳

1. 配置 ACL(访问控制列表)在 H3C 设备上,你需要首先创建一个访问控制列表(ACL),以匹配流量条件。

acl number 3001 rule permit tcp destination 172.16.1.2 0 destination-port eq 445 rule permit tcp destination 172.16.1.2 0 destination-port eq 139 rule permit udp destination 172.16.1.2 0 destination-port eq netbios-ssn rule permit udp destination 172.16.1.2 0 destination-port eq 445 rule permit icmp destination 172.16.1.9 0 rule permit tcp destination 172.16.1.9 0 destination-port eq 9090 rule permit udp destination 172.16.1.9 0 destination-port eq 9090

2. 配置流量分类器然后,你需要配置一个流量分类器,以将流量匹配到刚才创建的 ACL。

classifier ipgc1

if-match acl 3001

3. 配置流量行为接下来,创建一个流量行为,并指定重定向到下一个跳跃 IP 地址(例如,172.16.254.1)。

behavior ipgb1

redirect ip-nexthop 172.16.254.1

4. 配置流量策略最后,创建一个流量策略,并将分类器和行为绑定在一起。

traffic-policy ipgp1

classifier ipgc1 behavior ipgb1

5. 应用流量策略将流量策略应用到需要的接口上。

interface GigabitEthernet1/0/1

traffic-policy inbound ipgp1

Copyright © 2088 易化太极武侠游戏活动平台 All Rights Reserved.
友情链接