其他分享
首页 > 其他分享> > 华为路由器配置策略路由

华为路由器配置策略路由

作者:互联网

1.创建规则

[Switch] acl 3001
[Switch-acl-adv-3001] rule permit ip source 192.168.10.0 0.0.0.255
[Switch-acl-adv-3001] quit
[Switch] acl 3002
[Switch-acl-adv-3002] rule permit ip source 192.168.20.0 0.0.0.255
[Switch-acl-adv-3002] quit

2.配置流分类

[Switch] traffic classifier c1
[Switch-classifier-c1] if-match acl 3001
[Switch-classifier-c1] quit
[Switch] traffic classifier c2
[Switch-classifier-c2] if-match acl 3002
[Switch-classifier-c2] quit

3.配置流行为

[Switch] traffic behavior b1
[Switch-behavior-b1] redirect ip-nexthop 10.1.10.1
[Switch-behavior-b1] quit
[Switch] traffic behavior b2
[Switch-behavior-b2] redirect ip-nexthop 10.1.20.1
[Switch-behavior-b2] quit

4.配置流策略

[Switch] traffic policy p1
[Switch-trafficpolicy-p1] classifier c1 behavior b1
[Switch-trafficpolicy-p1] classifier c2 behavior b2
[Switch-trafficpolicy-p1] quit

5.在入端口应用

[Switch] interface gigabitethernet 6/1/10
[Switch-GigabitEthernet6/1/10] traffic-policy p1 inbound
[Switch-GigabitEthernet6/1/10] return

 

标签:quit,Switch,acl,华为,traffic,behavior,classifier,路由,路由器
来源: https://www.cnblogs.com/pandadog/p/15126186.html