Diffserv configuration examples, Diffserv configuration examples -17 – Enterasys Networks Enterasys D2 D2G124-12P User Manual
Page 285
DiffServ Configuration Examples
D-Series CLI Reference 8-17
DiffServ Configuration Examples
Typically, you would use the Diffserv command set to complete configuration tasks in the
following order:
1.
Enable DiffServ.
2.
Create a Class.
3.
Create one or more classification rules within the Class.
4.
Create a Policy.
5.
Add one or more Classes to the Policy.
6.
Add Policing (Conforming/Non‐conforming, Drop/Forward, Rate Limit, Precedence/DSCP
Rewrite) actions or just Marking (Precedence/DSCP Rewrite) actions to the Policy.
7.
Assign the Policy to one or more ports.
The following examples show how to proceed through these tasks to create DiffServ policies.
This example creates two separate policies:
a.
policyef — rate‐limits ingressed traffic on port fe.1.1 to a maximum of 100Mb/s, and on
the same traffi,c also rewrites the six DSCP bits to a decimal value of 46 for Express
Forwarding on layer 3.
b. policyaf31 — rate‐limits ingressed traffic on port fe.1.2 to a maximum of 100Mb/s, and on
the same traffic, also rewrites the six DSCP bits to a decimal value of 26 for Flash
forwarding on layer 3.
D2(rw)->set diffserv adminmode enable
D2(rw)->set diffserv class create all classevery
D2(rw)->set diffserv class match every classevery
D2(rw)->set diffserv policy create policyef in
D2(rw)->set diffserv policy class add policyef classevery
D2(rw)->set diffserv policy police style simple policyef classevery 100000 128
D2(rw)->set diffserv policy police action conform markdscp policyef classevery ef
D2(rw)->set diffserv policy create policyaf31 in
D2(rw)->set diffserv policy class add policyaf31 classevery
D2(rw)->set diffserv policy police style simple policyaf31 classevery 100000 128
D2(rw)->set diffserv policy police action conform markdscp policyaf31 classevery
af31
D2(rw)->set diffserv service add in fe.1.1 policyef
D2(rw)->set diffserv service add in fe.1.2 policyaf31
This example creates one policy which identifies VOIP traffic (DSCP value 46 or 32) on ports ge.1.1
through ge.1.10, and drops all other traffic.
D2(rw)->set diffserv adminmode enable
D2(rw)->set diffserv class create all classVOIP
D2(rw)->set diffserv class match ipdscp classVOIP ef
D2(rw)->set diffserv class match ipdscp classVOIP cs4
D2(rw)-> set diffserv policy create policyQOS in
D2(rw)-> set diffserv policy class add policyQOS classVOIP
D2(rw)->set diffserv policy police style simple policyQOS classVOIP 1000000 128
D2(rw)->set diffserv policy police action nonconform drop policyQOS classVOIP
D2(rw)-> set diffserv service add in ge.1.1-10 policyQOS