27.10.2013 Views

2.5.2 - Force10 Networks

2.5.2 - Force10 Networks

2.5.2 - Force10 Networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The following example shows the use of the policy-map command:<br />

policy-map pm-1 in<br />

class cl-map-1<br />

assign-queue 3<br />

exit<br />

class cl-map-2<br />

mark ip-precedence 1<br />

exit<br />

Figure 138 policy-map Command Example<br />

In the above example, we have created a policy-map with the name of “pm-1”. This policy-map is meant to<br />

affect inbound traffic. Traffic that is part of the class cl-map-1 (created in the previous example) is affected.<br />

Traffic that falls into this class will be assigned to queue 3. Traffic that is a match for class cl-map-2 will<br />

have ip-precedence marked as 1.<br />

Applying Policies<br />

Policy maps may be applied globally, to all interfaces, or on a per-interface basis. This is accomplished<br />

with the service-policy in policyname command. The in keyword indicates that the policy is specific to<br />

inbound traffic, because SFTOS supports only the inbound (ingress) direction. The policyname parameter<br />

is the name of an existing DiffServ policy (shown defined, above). Note that this command causes a<br />

service to create a reference to the policy.<br />

Note: This command effectively enables DiffServ on an interface (in a particular direction).<br />

The command can be used in the Interface Config mode to attach a policy to a specific interface.<br />

Alternatively, the command can be used in the Global Config mode to attach this policy to all system<br />

interfaces.<br />

There is no separate interface administrative mode command for DiffServ.<br />

Note: This command shall fail if any attributes within the policy definition exceed the<br />

capabilities of the interface. Once a policy is successfully attached to an interface, any attempt<br />

to change the policy definition such that it would result in a violation of said interface<br />

capabilities shall cause the policy change attempt to fail.<br />

Example (global):<br />

<strong>Force10</strong> #config<br />

<strong>Force10</strong> (Config)#service-policy in pm-1<br />

<strong>Force10</strong> (Config)#<br />

Figure 139 service-policy Global Command Example<br />

SFTOS Configuration Guide, Version <strong>2.5.2</strong>.0 191

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!