实验过程:
" J8 w, [% N, i! P+ \ 第一步:在R1 进行流量整形 L" e6 e0 v+ A8 H5 g
R1(config)#map-class frame-relay CIR" }+ N' f7 ~& m; w* Y* ?; i
R1(config-map-class)#frame-relay traffic-rate 19200# E) m' ~- R( r1 |$ s% M
R1(config-map-class)#exit
% i7 u9 [" y9 j* k% w. F( p+ q; s R1(config)#int s3/0
* f6 t: V# Q/ W4 V0 V$ r2 n R1(config-if)#frame-relay traffic-shaping' \" t+ ^5 h. a1 Z4 m
R1(config-if)#int s3/0.1
, C: V5 O1 c' u) W R1(config-subif)#frame-relay class CIR* Q+ k( U- ?6 S1 v4 l8 m6 Y
R1(config-subif)#int s3/0.2
1 [4 k7 c* [& R7 Z3 ~7 L+ V, m R1(config-subif)#frame-relay class CIR& |0 U; p( ], V$ s: E1 k& ]5 M) v$ K
第二步:在R2上进行流量整形。
" D4 {: }% I5 l4 q. E% j R2(config)#map-class frame-relay CIR D7 h% P7 W" N3 v" ^/ F$ t, c2 O
R2(config-map-class)#frame-relay traffic-rate 19200
6 ~1 V, l1 ?# M( } R2(config-map-class)#exit- q; G0 Z5 H3 J, Q2 j: p" n
R2(config)#int s3/07 \& |6 a4 Y$ s. s
R2(config-if)#frame-relay class CIR& i: J% A- U% Y! y F* G5 F
第三步:查看更为详细的流量整流的统计结果/ P5 ^8 {6 V t8 N" x
R1#show frame pvc 102
$ q. V* _: p P" `/ E5 f PVC Statistics for interface Serial3/0 (Frame Relay DTE)- d9 t- H; ^) j, U
DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = INACTIVE, INTERFACE = Serial3/0.1
0 b/ j" n. t1 \% |8 e- Z input pkts 0 output pkts 0 in bytes 0
~: b* S) n8 S: z; j. H3 T* a out bytes 0 dropped pkts 0 in pkts dropped 0) }; i, G9 \5 k% N& V) {8 {$ o( t' y
out pkts dropped 0 out bytes dropped 0
' ]; K5 p/ O4 A% L S% w in FECN pkts 0 in BECN pkts 0 out FECN pkts 06 p/ x4 ^5 r* n
out BECN pkts 0 in DE pkts 0 out DE pkts 0
- W9 c$ f( \. R+ T" t$ `6 I! Z out bcast pkts 0 out bcast bytes 08 x2 d) N M% d* @" H4 d
5 minute input rate 0 bits/sec, 0 packets/sec
% I$ R+ N+ C* s/ p. ]( m; u 5 minute output rate 0 bits/sec, 0 packets/sec
2 H5 R2 x: a3 C2 E3 @( G y pvc create time 00:50:40, last time pvc status changed 00:50:403 Q& F3 v# q' C' g3 X0 p
cir 19200 bc 19200 be 0 byte limit 300 interval 1252 `- Y. A1 |$ H
mincir 9600 byte increment 300 Adaptive Shaping none
% P" m z9 g, p pkts 0 bytes 0 pkts delayed 0 bytes delayed 0
* t1 C+ T! v+ N; b1 b8 D shaping inactive
$ G5 M2 \6 [* e) ~6 @. O traffic shaping drops 0* T0 ~ i7 ~( s3 G" v
Queueing strategy: fifo
9 j% r: _1 \. ?2 X* L Output queue 0/40, 0 drop, 0 dequeued
2 ^+ `" T% e# ^- u5 Q3 y, v6 C R2#show frame pvc 201; p& e- |. a& A. ]' X( @/ L( ~
PVC Statistics for interface Serial3/0 (Frame Relay DTE)
z8 J5 Q9 i/ d5 K DLCI = 201, DLCI USAGE = LOCAL, PVC STATUS = DELETED, INTERFACE = Serial3/0
6 a3 B$ A6 _& v+ e' ~& `0 J3 B. } input pkts 0 output pkts 0 in bytes 0
0 O l; e$ J* |8 W% p) ]9 q out bytes 0 dropped pkts 0 in pkts dropped 0
: q! Y, C$ j( P% Z out pkts dropped 0 out bytes dropped 0
4 y% \2 t( Y$ h- n in FECN pkts 0 in BECN pkts 0 out FECN pkts 0; r% O/ x' Z; ~6 n" z
out BECN pkts 0 in DE pkts 0 out DE pkts 0; m2 A4 t U7 n+ p$ u9 ]0 I9 z; l; L
out bcast pkts 0 out bcast bytes 06 g" `" ^/ ?% i k6 Q6 I
5 minute input rate 0 bits/sec, 0 packets/sec" s# Z t. f* s! y# }; B
5 minute output rate 0 bits/sec, 0 packets/sec8 U" k5 _; ^# E1 H0 t4 z: G- ?
pvc create time 00:49:50, last time pvc status changed 00:49:37 |