D-Link UNIFIED WIRED & WIRELESS ACCESS SYSTEM DWS-3000 User Manual
Page 119
CLI Example
119
18 Differentiated Services
2. Create a DiffServ class of type “all” for each of the departments, and name them. Define
the match criteria -- Source IP address -- for the new classes.
class-map match-all finance_dept
match srcip 172.16.10.0 255.255.255.0
exit
class-map match-all marketing_dept
match srcip 172.16.20.0 255.255.255.0
exit
class-map match-all test_dept
match srcip 172.16.30.0 255.255.255.0
exit
class-map match-all development_dept
match srcip 172.16.40.0 255.255.255.0
exit
3. Create a DiffServ policy for inbound traffic named 'internet_access', adding the previously
created department classes as instances within this policy.
This policy uses the assign-queue attribute to put each department's traffic on a different
egress queue. This is how the DiffServ inbound policy connects to the CoS queue settings
established below.
policy-map internet_access in
class finance_dept
assign-queue 1
exit
class marketing_dept
assign-queue 2
exit
class test_dept
assign-queue 3
exit
class development_dept
assign-queue 4
exit
exit
4. Attach the defined policy to interfaces 0/1 through 0/4 in the inbound direction
interface 0/1
service-policy in internet_access
exit
interface 0/2
service-policy in internet_access
exit
interface 0/3
service-policy in internet_access
exit
interface 0/4
service-policy in internet_access
exit
5. Set the CoS queue configuration for the (presumed) egress interface 0/5 such that each of
queues 1, 2, 3 and 4 get a minimum guaranteed bandwidth of 25%. All queues for this
interface use weighted round robin scheduling by default. The DiffServ inbound policy
designates that these queues are to be used for the departmental traffic through the assign-