华为路由器配置策略路由

2021/8/10 23:05:36

本文主要是介绍华为路由器配置策略路由,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

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

 



这篇关于华为路由器配置策略路由的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程