
2、QoS流行为配置
2.1、创建一个流行为并进入流行为视图,或进入已存在的流行为视图。
[Huawei]traffic behavior ?
STRING<1-31> Name of behavior
[Huawei]traffic behavior 1
[Huawei-behavior-1]
2.2设置QoS流行为动作,只要各动作不冲突,都可以在同一流行为中配置。
[Huawei-behavior-1]?
behavior view commands:
car Car operation
configuration Configuration interlock
deny Specify filter deny parameters
display Display current system information
mac-address MAC address
mirroring Mirror port's data to observe port
mtrace Trace route to multicast source
permit Specify filter permit parameters
ping Send echo messages
quit Exit from current command view
redirect Specify redirect feature
remark Remark QoS values of the packet
reset Reset operation
return Exit to user view
screen-width Set screen width
set Set
stack Stack
statistic Statistic
test-aaa Accounts test
trace Trace route (switch) to host on Data Link Layer
tracert Trace route to host
undo Cancel current setting
2.2.1、设置QoS流行为报文过滤动作
[Huawei-behavior-1]deny
或
[Huawei-behavior-1]permit
# 同一流行为下,流动作deny和其他流动作互斥(流量统计、流镜像除外)。
2.2.2、QoS流行为中重标记优先级配置
[Huawei-behavior-1]remark ?
8021p Remark vlan 802.1p
cvlan-id Remark customer id
destination-mac Remark destination mac address
dscp Remark DSCP (DiffServ CodePoint)
ip-precedence Remark IP precedence
local-precedence Remark local precedence and drop level of packets
vlan-id Remark vlan id
[Huawei-behavior-1]remark 8021p ?
INTEGER<0-7> VLAN 802.1p value
inner-8021p Inner vlan 802.1p
<cr>
[Huawei-behavior-1]remark dscp ?
INTEGER<0-63> DSCP (DiffServ CodePoint) value
af11 AF11 DSCP (001010)
af12 AF12 DSCP (001100)
af13 AF13 DSCP (001110)
af21 AF21 DSCP (010010)
af22 AF22 DSCP (010100)
af23 AF23 DSCP (010110)
af31 AF31 DSCP (011010)
af32 AF32 DSCP (011100)
af33 AF33 DSCP (011110)
af41 AF41 DSCP (100010)
af42 AF42 DSCP (100100)
af43 AF43 DSCP (100110)
cs1 CS1 (IP Precedence 1) DSCP (001000)
cs2 CS2 (IP Precedence 2) DSCP (010000)
cs3 CS3 (IP Precedence 3) DSCP (011000)
cs4 CS4 (IP Precedence 4) DSCP (100000)
cs5 CS5 (IP Precedence 5) DSCP (101000)
cs6 CS6 (IP Precedence 6) DSCP (110000)
cs7 CS7 (IP Precedence 7) DSCP (111000)
default Default DSCP (000000)
ef EF DSCP (101110)
[Huawei-behavior-1]remark local-precedence ?
INTEGER<0-7> Local precedence value
af1 Assured Forwarding 1 (1)
af2 Assured Forwarding 2 (2)
af3 Assured Forwarding 3 (3)
af4 Assured Forwarding 4 (4)
be Best Effort (0)
cs6 Class Selector 6 (6)
cs7 Class Selector 7 (7)
ef Expedited Forwarding (5)
# 包含remark 8021p inner-8021p,remark local-precedence,remark ip-precedence和remark destination-mac的策略只能应用在入方向。
包含remark 8021p动作的流策略应用在接口出方向时,出接口VLAN必须工作在tag方式。
不能在同一个流行为中同时配置remark 8021p和remark local-precedence。
在同一流行为中,remark destination-mac命令不能和redirect ip-nexthop、redirect ip-multihop命令同时配置。
2.2.3、QoS流行为重定向配置
[Huawei-behavior-1]redirect ?
cpu Redirect packets to cpu of io board
interface Redirect packets to interface
ip-multihop Redirect packets to ECMP(Equal Cost Multi-Path )
ip-nexthop Specify the nexthop of the flow
# 包含redirect interface和redirect cpu的策略只能应用在入方向。包含流行为redirect multi-trunk的策略只对IP类型的报文生效。
2.2.4、QoS流行为中流量监管配置
[Huawei-behavior-1]car ?
STRING<1-31> Car profile name
aggregation Aggregation car
cir Committed information rate
[Huawei-behavior-1]car aggregation cir ?
INTEGER<8-10000000>
[Huawei-behavior-1]car cir 100 ?
cbs Committed burst size
green Specify behavior conducted when rate no higher than CIR
pir Peak information rate
red Specify behavior conducted when rate higher than PIR
yellow Specify behavior conducted when rate higher than CIR, no higher than PIR
<cr>
# 包含流行为car share的策略只能应用在入方向。
2.2.5、QoS流行为中层次化流量监管配置
[Huawei-behavior-1]car ?
STRING<1-31> Car profile name
aggregation Aggregation car
cir Committed information rate
[Huawei-behavior-1]car 2 ?
share Share car flag
包含car share的策略只能应用在入方向。
2.2.6、QoS流行为中流镜像配置
[Huawei-behavior-1]mirroring to observe-port ?
INTEGER<1-2> The number of observe-port
不支持出方向流镜像
2.2.7、QoS流行为中禁止URPF检查配置
[Huawei-behavior-1]ip urpf disable
2.2.8、QoS流行为中策略路由(重定向)配置
[Huawei-behavior-1]redirect ?
cpu Redirect packets to cpu of io board
interface Redirect packets to interface
ip-multihop Redirect packets to ECMP(Equal Cost Multi-Path )
ip-nexthop Specify the nexthop of the flow
[Huawei-behavior-1]redirect ip-nexthop ?
X.X.X.X Specify the ip nexthop address of the flow
[Huawei-behavior-1]redirect ip-nexthop 1.1.1.1 ?
X.X.X.X Specify the ip nexthop address of the flow
forced Forced to redirect ip nexthop
<cr>
[Huawei-behavior-1]redirect ip-multihop ?
nexthop Specify the nexthop of the flow
[Huawei-behavior-1]redirect ip-multihop nexthop ?
X.X.X.X Specify the ip nexthop address of the flow
[Huawei-behavior-1]redirect ip-multihop nexthop 2.2.2.2 ?
nexthop Specify the nexthop of the flow
[Huawei-behavior-1]redirect ip-multihop nexthop 2.2.2.2 n
[Huawei-behavior-1]redirect ip-multihop nexthop 2.2.2.2 nexthop ?
X.X.X.X Specify the ip nexthop address of the flow
[Huawei-behavior-1]redirect ip-multihop nexthop 2.2.2.2 nexthop 3.3.3.3 ?
nexthop Specify the nexthop of the flow
<cr>
# 不能在同一流行为中既配置策略路由又配置remark destination-mac。包含策略路由的策略只能应用在入方向。包含策略路由的策略只对IP类型的报文生效。
2.2.9、QoS流行为中禁止MAC地址学习配置
[Huawei-behavior-1]mac-address learning disable
2.2.10、QoS流行为中VLAN mapping配置
[Huawei-behavior-1]remark vlan-id ?
INTEGER<1-4094> Vlan id value
[Huawei-behavior-1]remark cvlan-id ?
INTEGER<1-4094> Inner VLAN ID of QinQ packets
# 当流分类匹配if-match outbound-interface interface-typeinterface-number时,设备不支持配置流行为为VLAN MAPPING。
2.2.11、QoS流行为中灵活QinQ配置
[Huawei-behavior-1]nest top-most vlan-id ?
INTEGER<1-4094> Vlan id value
2.2.12、QoS流行为中流量统计配置
[Huawei-behavior-1]statistic enable



本文地址:http://www.023wg.com/QoS/192.html
版权声明:若无注明,本文皆为“Swiers思唯网络博客”原创,转载请保留文章出处。

