order of operation

From: Jens Petter Eikeland (jenseike@start.no)
Date: Sat Feb 11 2006 - 12:39:39 GMT-3


I am setting up some shaping for diffrent group of classes...
I have several classes that are shaped to different values. my question is
what would be the more correct method to configure this...
My goal is to give the different access-groups restricted rate to the outbound
link of
my fastethernet... I have some that needs 512 kbps and some that need 1024
kbps
I have problems seeing how this method differs, and how that output queue
would work for
each of the two different methods

my first example I have made a class that matches any, and the statement in
there
is the different access-list match. then I make a policy for 512kbs and one
for 1024 kbs
that I nest at the end in to a nested policy :

ip access-list extended set_to_512kbs-1
 permit ip host 213.162.225.31 any
 permit ip any host 213.162.225.31
ip access-list extended set_to_512kbs-2
 permit ip host 213.162.225.32 any
 permit ip any host 213.162.225.32

ip access-list extended set_to_1024kbs-1
 permit ip host 213.162.224.41 any
 permit ip any host 213.162.224.41
ip access-list extended set_to_1024kbs-2
 permit ip host 213.162.224.42 any
 permit ip any host 213..162.224.43

class-map match-any 512kbs
 match access-group set_to_512kbs-1
 match access-group set_to_512kbs-2
class-map match-any 1024kbs
 match access-group set_to_1024kbs-1
 match access-group set_to_1024kbs-2

class-map match-any 512kbs
 match access-group set_to_512kbs-1
 match access-group set_to_512kbs-2
class-map match-any 1024kbs
 match access-group set_to_1024kbs-1
 match access-group set_to_1024kbs-2

policy-map 512kbs
 class 512kbs
 shape 512000
policy-map 1024kbs
 class 1024kbs
 shape 1024000

policy-map SHAPE_OUT (nested)
 policy-map 512kbs
 policy-map 1024kbs

In my second example I have made a different class for each access-list and
then set the shape command
on the different classes in one policy map

ip access-list extended set_to_512kbs-1
 permit ip host 213.162.225.31 any
 permit ip any host 213.162.225.31
ip access-list extended set_to_512kbs-
 permit ip host 213.162.225.32 any
 permit ip any host 213.162.225.32

ip access-list extended set_to_1024kbs-1
 permit ip host 213.162.224.41 any
 permit ip any host 213.162.224.41
ip access-list extended set_to_1024kbs-2
 permit ip host 213.162.224.42 any
 permit ip any host 213..162.224.43

class-map 512kbs-1
 match access-group set_to_512kbs-1
class-map 512kbs-2
 match access-group set_to_512kbs-2

class-map 1024kbs-1
 match access-group set_to_1024kbs-1
class-map 1024kbs-2
 match access-group set_to_1024kbs-2

policy-map SHAPE_OUT
 class 512kbs-1
    shape 512
 class 512kbs-2
    shape 512
class 1024kbs-1
    shape 1024
class 1024kbs-2
    shape 1024

second, say I had 512, 1024 and 2048 as the different rates, and I have many
more ip-addresses
that need to have this different speeds. I am looing for a better way to
makingthis policies and configuring
this without doing so much config. f eks I could make a policy called GOLD
(2048), one called
SILVER(1024), and one called BRONSE(512).. many ip adresses shoul match to all
of this..
how could I best make the configuration so that it would be easies to manage
for me? All of this is
happening on one interface...how would this be easiest to manage when I need
to put in new access-list
to match as times go (new customers)

sorry for the length of this post, but I hope somwone can help me though...
especially with the first problem..

thanks

jens petter



This archive was generated by hypermail 2.1.4 : Wed Mar 01 2006 - 11:28:17 GMT-3