华为路由器配置策略路由

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

 

上一篇:Apache Traffic Server安装配置


下一篇:华为交换机策略路由配置