[cisco] Re: Alegere router cisco - am adaugat si scriptul
"Laurentiu Matei" <[email protected]> Thu, 2 Oct 2003 17:23:36 +0300
| Newsgroups | gmane.org.user-groups.rlug.general,gmane.org.user-groups.rlug.cisco |
|---|---|
| Message-ID | <006701c388f0$c4a21130$9e00a8c0@admin> |
> tc -s -d qdisc ls dev eth0 si 1 > tc -s -d class ls dev eth0 si 1 > tc -s -d filter ls dev eth0 si 1 > > ca din asta personal nu inteleg nimic > sa fiu sincer nic eu nu inteleg. ai rulat scriptul pe care la-m pus pe lista si ai obtinut rezultatul cu pricina? fii mai explicit ...ca altfel intru mai rau in ceata... Laurentiu > > On Thu, 2 Oct 2003 16:00:48 +0300, "Laurentiu Matei" <[email protected]> > said: > > Acesta este scriptul pe care il folosesc impreuna cu HTB: > > Ps: am facut shaping atat pentru traficul care intra cat si pt cel care > > iese > > (cineva spunea ca merge numai pentru ceea ce intra....). Banda > > disponibila > > este 512kbps. > > > > # simple config file > > > > class class_1 { > > > > bandwidth 320; > > > > limit 500; > > > > burst 2; > > > > priority 1; > > > > client client_0_in { > > > > bandwidth 100; > > > > limit 105; > > > > burst 2; > > > > priority 1; > > > > dst { > > > > real IP voip/32; > > > > }; > > > > }; > > > > client client_0_out { > > > > bandwidth 100; > > > > limit 110; > > > > burst 2; > > > > priority 1; > > > > src { > > > > real IP voip/32; > > > > }; > > > > }; > > > > client client_1_in { > > > > bandwidth 42; > > > > limit 136; > > > > burst 2; > > > > priority 2; > > > > dst { > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_1_out { > > > > bandwidth 42; > > > > limit 136; > > > > burst 2; > > > > priority 2; > > > > src { > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_2_in { > > > > bandwidth 40; > > > > limit 96; > > > > burst 2; > > > > priority 3; > > > > dst { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_2_out { > > > > bandwidth 40; > > > > limit 96; > > > > burst 2; > > > > priority 3; > > > > src { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_3_in { > > > > bandwidth 20; > > > > limit 24; > > > > burst 2; > > > > priority 4; > > > > dst { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_3_out { > > > > bandwidth 20; > > > > limit 24; > > > > burst 2; > > > > priority 4; > > > > src { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_4_in { > > > > bandwidth 24; > > > > limit 48; > > > > burst 2; > > > > priority 5; > > > > dst { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_4_out { > > > > bandwidth 24; > > > > limit 48; > > > > burst 2; > > > > priority 5; > > > > src { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_5_in { > > > > bandwidth 20; > > > > limit 24; > > > > burst 2; > > > > priority 6; > > > > dst { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_5_out { > > > > bandwidth 20; > > > > limit 24; > > > > burst 2; > > > > priority 6; > > > > src { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_6_in { > > > > bandwidth 24; > > > > limit 32; > > > > burst 2; > > > > priority 7; > > > > dst { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_6_out { > > > > bandwidth 24; > > > > limit 32; > > > > burst 2; > > > > priority 7; > > > > src { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_7_in { > > > > bandwidth 20; > > > > limit 20; > > > > burst 2; > > > > priority 8; > > > > dst { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_7_out { > > > > bandwidth 20; > > > > limit 20; > > > > burst 2; > > > > priority 8; > > > > src { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_8_in { > > > > bandwidth 10; > > > > limit 10; > > > > burst 2; > > > > priority 9; > > > > dst { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > client client_8_out { > > > > bandwidth 10; > > > > limit 10; > > > > burst 2; > > > > priority 9; > > > > src { > > > > LAN IP/32; > > > > LAN IP/32; > > > > LAN IP/32; > > > > }; > > > > }; > > > > }; > > > > class default { bandwidth 5; }; > > > > > > > > # end of testcfg > > > > > > > > Laurentiu. > > > > > > >