
2、QoS流行为配置
! g: l0 }9 O4 I8 ^; j 2.1、创建一个流行为并进入流行为视图,或进入已存在的流行为视图。% r( U/ |9 h6 B M5 m
[Huawei]traffic behavior ?
% l' T& [4 g5 E+ S; V STRING<1-31> Name ofbehavior. j4 E) N/ T" w9 s3 Z
) V. A% I5 r F( N [Huawei]traffic behavior 1
|8 x' M2 P8 _% l9 |0 X [Huawei-behavior-1]
" [) U) ?3 T0 p1 a- F: q( j5 Q 0 _: d. h$ m1 C8 g/ _6 @5 u
2.2设置QoS流行为动作,只要各动作不冲突,都可以在同一流行为中配置。
, [# w9 J: V% C1 d/ q [Huawei-behavior-1]?
t9 c9 H. @+ j9 b behavior view commands:
& o* o! c! N$ y car Car operation
# d. T, v2 y: \/ E) V' E configuration Configurationinterlock
5 V1 d6 N3 p% `1 I/ \, w deny Specify filter denyparameters, k; N, k- M& j; U! `3 O) d
display Display current system information$ Q* l5 g6 N# V/ r) m" |' k
mac-address MAC address
. H# c2 i* Z6 D5 ? mirroring Mirror port's datato observe port
, H' J9 z/ i1 Q( ? mtrace Trace route tomulticast source
9 Q- w+ \ [# ]4 H3 T/ l1 s8 R$ y permit Specify filterpermit parameters
, m! R/ @# B9 i+ B( X ping Send echo messages0 a2 D4 a8 F2 \; j
quit Exit from currentcommand view7 R: u0 ?1 U/ K. K) G3 X9 f- z
redirect Specify redirectfeature
. b6 g! R1 ^+ T2 o1 r4 X0 C remark Remark QoS valuesof the packet8 [/ R# n! f% g0 _# s y# ~6 g0 X( y
reset Reset operation
: Y3 C! a7 _1 P! O5 K8 z0 L return Exit to user view
/ ^: q7 O- N5 J6 h: H0 ? screen-width Set screen width
2 B* J- O0 Q( T, G set Set- M" I3 e2 ]4 `( F" n
stack Stack% i6 t7 U# _8 R3 p2 D
statistic Statistic9 R0 A, j% [3 C: O6 Z, W8 ]
test-aaa Accounts test
$ v* W5 p. {$ `: @' T trace Trace route(switch) to host on Data Link Layer" m+ v' \- @1 `' n
tracert Trace route to host
, s& W* f5 Y3 L- y5 U undo Cancel currentsetting
1 d$ q5 E* I8 e3 u6 L) K& n) o& C" Y
2 y7 U" t2 Q7 \' B: @: d 2.2.1、设置QoS流行为报文过滤动作, r' n1 H& _! m- o5 J8 D3 B6 a; Y) ]: a
[Huawei-behavior-1]deny
: O1 b& W6 Y/ {4 v 或6 l' F$ F C: ]" w0 M& H( f
[Huawei-behavior-1]permit6 f e/ ^* R# G! u: U
% H& E" O. _4 l! Q: w8 l+ l
# 同一流行为下,流动作deny和其他流动作互斥(流量统计、流镜像除外)。) Z" E, ]$ F j( D9 x, ~
4 O! a& j) i" [- G$ T
2.2.2、QoS流行为中重标记优先级配置
/ J: w9 K/ F4 P0 @0 N7 y- W; _ [Huawei-behavior-1]remark ?& b# V( x9 ]4 `+ A, }6 u: g' F
8021p Remark vlan802.1p
, _, D* Q2 ?* }. K5 X- y' J( w cvlan-id Remark customerid
) j, M' \0 X$ D+ k destination-mac Remarkdestination mac address
" F7 u; C' [: ^' A4 Z dscp Remark DSCP(DiffServ CodePoint)
+ f: y- F! f. S ip-precedence Remark IPprecedence7 Y& j! ]) P c' Z
local-precedence Remark localprecedence and drop level of packets
' {; ~& U% c% X& T vlan-id Remark vlan id
# T8 O [5 X4 D2 G# `$ e& E! y " I+ W$ z8 x: ]$ c* f' V
[Huawei-behavior-1]remark 8021p ?
6 B- I/ i* Q: `4 E INTEGER<0-7> VLAN 802.1pvalue5 G1 t' ?9 ]3 Q$ y
inner-8021p Inner vlan 802.1p; o& B" H1 r E/ W2 J: w( V
<cr>
( M8 u! e$ l# s( v" p: V; v& k ; H8 A o) n8 U6 A
[Huawei-behavior-1]remark dscp ?# x$ t# `+ o% [0 `0 X0 H% a
INTEGER<0-63> DSCP(DiffServ CodePoint) value
$ p/ y% R0 v4 T" u% g% W af11 AF11 DSCP (001010)
/ e+ E( @/ E! f& s& Q' i5 Y af12 AF12 DSCP (001100)/ T J" `( m- ]
af13 AF13 DSCP (001110)
& r6 f7 d' v: @ ?( I, F1 \% k+ } af21 AF21 DSCP (010010)
4 X* R6 @+ }+ e& ]; { af22 AF22 DSCP (010100)/ B. j) |+ s% s J0 s3 a/ u) E
af23 AF23 DSCP (010110)
8 e% `9 P% h$ L' ?; r8 v; C5 @ af31 AF31 DSCP (011010)
& U* ~! L% G" w$ H" v. R( o af32 AF32 DSCP (011100)
9 r; [3 r9 g, L& D3 X* r af33 AF33 DSCP (011110)
[2 W8 q" t1 E" R: Y af41 AF41 DSCP (100010)
; P0 `/ d1 W0 P `5 m. T af42 AF42 DSCP (100100)* A4 q/ J$ o/ u/ R+ u) ^
af43 AF43 DSCP (100110)
/ N& _+ Q5 P$ N. K. r7 S cs1 CS1 (IP Precedence1) DSCP (001000)
j8 b+ U( C# C) C cs2 CS2 (IP Precedence2) DSCP (010000) \# I* ^! u e9 S: b
cs3 CS3 (IP Precedence3) DSCP (011000)
0 c4 `$ B$ W/ S! H. d) l cs4 CS4 (IP Precedence4) DSCP (100000)5 J/ F! ^1 x' k/ o$ l
cs5 CS5 (IP Precedence5) DSCP (101000)
8 z+ c! j2 H+ {8 H4 P- S cs6 CS6 (IP Precedence6) DSCP (110000)% t& s! U4 p& v: z; ]
cs7 CS7 (IP Precedence7) DSCP (111000); W' I; i5 D8 l8 D$ V. V3 k" l
default Default DSCP(000000)& Q3 g# I3 A3 B7 j) |. H+ j
ef EF DSCP (101110), p. P! ?! g$ [, p# y
3 m% ]6 |. O% |7 z/ }! r. @ [Huawei-behavior-1]remark local-precedence?* S0 f+ w$ b9 N% y
INTEGER<0-7> Localprecedence value( u2 f! _5 t8 L& C. w) ]6 i/ r
af1 Assured Forwarding 1(1)/ B/ `6 W$ G* I
af2 Assured Forwarding 2(2)$ n6 O5 j; P4 {) T A$ ]6 j
af3 Assured Forwarding 3(3)3 Z! m8 H& h- K, J; H) b/ ~
af4 Assured Forwarding 4 (4)
; r% o$ \' p! S, V+ @ be Best Effort (0)" U& Q/ s0 B2 e! y0 |- ^4 }! q
cs6 Class Selector 6 (6)" @8 E' f% o5 T O9 G
cs7 Class Selector 7 (7)
5 F b9 {) y7 Z* H- o* v ef Expedited Forwarding(5)
6 h1 \3 O F: n. m d
$ ]1 ]# k% F/ K7 f4 s5 l . O! a8 \& ?# d
# 包含remark 8021p inner-8021p,remark local-precedence,remarkip-precedence和remark destination-mac的策略只能应用在入方向。/ ?0 p- q- l- }' G* E S
包含remark 8021p动作的流策略应用在接口出方向时,出接口VLAN必须工作在tag方式。
% u# u4 \7 f" s 不能在同一个流行为中同时配置remark 8021p和remark local-precedence。% t L) y9 |: y; U- a$ z0 V0 u
在同一流行为中,remark destination-mac命令不能和redirectip-nexthop、redirect ip-multihop命令同时配置。
. o" ] y N, u. x( \1 v
" R% k1 ` H7 ~7 Q& z1 [4 e# K* K 2.2.3、QoS流行为重定向配置* A, m4 s6 r7 d8 j1 J/ p
[Huawei-behavior-1]redirect ?- F6 ~2 G& V$ M/ O h7 F
cpu Redirect packets tocpu of io board& M( [( `3 b0 z% z; w$ d- x8 A
interface Redirect packets tointerface
$ N! ]1 F- q& N& R ip-multihop Redirect packets toECMP(Equal Cost Multi-Path )
7 j& J; B/ H% |0 H2 n ip-nexthop Specify the nexthopof the flow* [4 \+ H( @6 X' @+ o
4 ?" b% n- h# y; Y# t, q$ G/ n0 b
# 包含redirect interface和redirect cpu的策略只能应用在入方向。包含流行为redirect multi-trunk的策略只对IP类型的报文生效。* b0 T; M, [& r, b
; N9 _" q+ w: O2 T8 |
2.2.4、QoS流行为中流量监管配置
( b! G" p9 t, b: M- O5 w$ |, u [Huawei-behavior-1]car ?7 z; T' r1 o1 U" v. m
STRING<1-31> Car profilename* c/ G6 K' B7 [1 r3 Z; s/ Z. ?
aggregation Aggregation car6 \: p& v( T1 y( ` S! e6 M
cir Committedinformation rate
4 R0 d5 ^( w0 {( ^) U , Q" H$ b* g) g d
[Huawei-behavior-1]car aggregation cir ?
* [$ u; Y' J1 \ INTEGER<8-10000000>2 I3 @7 C* X( J, ~, u
, D$ [1 j: ?4 C/ L5 K4 y [Huawei-behavior-1]car cir 100 ?
2 e* U. \1 g# [' \& G9 a3 X+ \4 M cbs Committed burst size
/ k5 e( b' O4 d, y% F green Specify behavior conductedwhen rate no higher than CIR; Y5 X" T7 a: N0 P1 ?5 a. t" e
pir Peak information rate5 j c: K- p# k: C5 m
red Specify behavior conductedwhen rate higher than PIR) t, F2 g7 R8 P
yellow Specify behavior conductedwhen rate higher than CIR, no higher than PIR
C, u5 D) S" D" | <cr>
$ V' E* W, E# ?# h" Y ! D3 G5 h {# |/ q/ v: o2 p
# 包含流行为car share的策略只能应用在入方向。
, ~0 S- r- X7 U 3 N( E# b% h- k: p- G. K
2.2.5、QoS流行为中层次化流量监管配置
1 Q1 K) m D9 l3 {6 m& y* l0 k [Huawei-behavior-1]car ?- z' i1 M' y$ A6 ?! C
STRING<1-31> Car profilename
5 r1 j# X7 m3 S7 S aggregation Aggregation car
! `" ?4 Y! H4 }" C: u3 n% d cir Committed information rate
, b- r m1 D4 Z8 Q' t3 @2 ^ 5 `" E( u- h# t$ p
[Huawei-behavior-1]car 2 ?: u' V# {$ Y2 C) Q% f! k8 T
share Share car flag& N! b2 W, d1 | f+ ?' Z
" G- n, Y K8 S, d3 V/ Y 包含car share的策略只能应用在入方向。& f- M) H% l$ ~# c- v( p! A
" c0 G6 Q2 h* G 2.2.6、QoS流行为中流镜像配置% `# V/ d) [& A
[Huawei-behavior-1]mirroring toobserve-port ?; Q" a" D2 j0 R1 m7 B# A* ?
INTEGER<1-2> The number ofobserve-port5 @" N2 d7 A, c5 Z U
5 N( N4 q, _( Z9 M( ? 不支持出方向流镜像
7 O1 E4 A- X4 \ , G/ s4 }+ u) [5 x" M/ }
2.2.7、QoS流行为中禁止URPF检查配置
, C$ [. O3 Y) {. o; R+ X8 e [Huawei-behavior-1]ip urpf disable7 W( s1 D4 P' v0 G" I+ B
. o$ k: H3 z8 [% T! J' j
2.2.8、QoS流行为中策略路由(重定向)配置
6 f1 F) o& I3 k1 C. e [Huawei-behavior-1]redirect ?$ V$ n2 R3 e: W# ?4 L9 a. k; ?- t
cpu Redirect packets tocpu of io board
. M2 a& Y+ D& K3 W interface Redirect packets tointerface
3 m( C# c9 s8 |) U& { ip-multihop Redirect packets toECMP(Equal Cost Multi-Path )9 k- e& J& n2 M8 J8 ^* @9 W
ip-nexthop Specify the nexthopof the flow
. ~: V% K. L8 g& T1 T: P6 L
) G+ Y, Q. Y) X; u [Huawei-behavior-1]redirect ip-nexthop ?) l* }* S6 x6 |( n2 U
X.X.X.X Specify the ip nexthopaddress of the flow
, O1 C4 K) O7 h1 Z2 J3 r0 V
7 |- j9 M% R5 q0 p+ U [Huawei-behavior-1]redirect ip-nexthop1.1.1.1 ?- R6 \ n- F8 C1 C/ g8 ^3 Y
X.X.X.X Specify the ip nexthopaddress of the flow8 J+ x5 T F7 E! S5 V
forced Forced to redirect ipnexthop z: Q+ S. ]: Y4 F1 G& T1 F
<cr> " @, j0 {( n* H+ ]. F. i! [/ {% L
6 m9 O: O. X3 M( p/ ~; J* ?& G! X
3 a0 P1 i1 M% i" V/ x8 U
[Huawei-behavior-1]redirect ip-multihop ?
! E }$ e/ a" A1 f* G0 }% ~ nexthop Specify the nexthop ofthe flow: f* V5 j6 r F, f. d
% {# w, F, q8 T# i$ c
[Huawei-behavior-1]redirect ip-multihopnexthop ?5 z6 B/ [! `6 K/ ` P9 R j2 Z2 u
X.X.X.X Specify the ip nexthopaddress of the flow" A# ^+ u s+ Z# V1 {. C- i" m. z
7 [4 D' }. W) N [Huawei-behavior-1]redirect ip-multihopnexthop 2.2.2.2 ?
7 p r3 G9 y: ~7 U6 B. p nexthop Specify the nexthop ofthe flow# E2 |+ W! |1 _/ {6 K3 P- U
- C# U9 }' o" x2 Z; l6 C
[Huawei-behavior-1]redirect ip-multihopnexthop 2.2.2.2 n ' M' x) g v \! J- K
[Huawei-behavior-1]redirect ip-multihopnexthop 2.2.2.2 nexthop ?
; X' S2 \# F3 ^1 q X.X.X.X Specify the ip nexthopaddress of the flow' F8 R, x8 T) T! G$ ]
5 d$ O) ?5 g5 [6 |3 M/ Z
[Huawei-behavior-1]redirect ip-multihopnexthop 2.2.2.2 nexthop 3.3.3.3 ?' W. Y- C# |! N
nexthop Specify the nexthop ofthe flow
8 N' y% ^6 B9 w5 G <cr>3 `+ p& C- y3 F" q! L, L+ W
. {5 B! G0 |5 ?' c, j! l* r% `7 E" T
# 不能在同一流行为中既配置策略路由又配置remark destination-mac。包含策略路由的策略只能应用在入方向。包含策略路由的策略只对IP类型的报文生效。% Z% i+ b; O3 B
" X8 r1 H, z/ E9 a( r% V
2.2.9、QoS流行为中禁止MAC地址学习配置# D" y$ j& u! T% @7 U( V! l( c2 m7 |
[Huawei-behavior-1]mac-address learningdisable
; }, `! Z4 _* m" G- j- l . s4 d6 w3 q3 W7 D; k
2.2.10、QoS流行为中VLAN mapping配置
?: V; T6 i* {8 e: m* Z, Z [Huawei-behavior-1]remark vlan-id ?
) x' Q0 c2 B! i! G* R INTEGER<1-4094> Vlan idvalue6 ]3 ?9 I: M& q p4 f* S) }3 h
7 s5 Q7 \" M9 ? C& R! x" Q1 j& [
[Huawei-behavior-1]remark cvlan-id ?
7 J$ [1 y, v) E INTEGER<1-4094> Inner VLANID of QinQ packets
1 u, z C2 i6 n+ ^
, v+ J- V0 R% Q: z+ u5 M # 当流分类匹配if-match outbound-interface interface-typeinterface-number时,设备不支持配置流行为为VLAN MAPPING。
) n5 ^* m9 q5 [( m* o * u; ^1 `7 t2 z" B% M. l+ ]3 l
2.2.11、QoS流行为中灵活QinQ配置
( Q7 N! d) w8 V' K/ F [Huawei-behavior-1]nest top-most vlan-id ?
, p7 Q: |( N X6 ~: [5 R8 k& Z INTEGER<1-4094> Vlan idvalue# N# D8 ?0 x+ n G/ M# ~ w N( p+ l/ S
% R3 Q6 [$ u# R+ b0 P* H
2.2.12、QoS流行为中流量统计配置
6 h/ o5 B0 y) y' W1 z9 ^ [Huawei-behavior-1]statistic enable |
|