22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

q<strong>os</strong>-group Q<strong>os</strong>-group<br />

demolab-vsm1(config-cmap-q<strong>os</strong>)<br />

In Example 10-25, the classification policy matches against IP precedence 0, <strong>and</strong> the<br />

counters on the virtual interface increment as matches are made.<br />

Example 10-25. Classification Using IP Precedence on Nexus 1000V<br />

Click here to view code image<br />

demolab-vsm1# config<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

demolab-vsm1(config)# class-map type q<strong>os</strong> match-any cmmarking<br />

demolab-vsm1(config-cmap-q<strong>os</strong>)# match precedence 0<br />

demolab-vsm1(config-cmap-q<strong>os</strong>)# exit<br />

demolab-vsm1(config)# policy-map type q<strong>os</strong> pm-marking<br />

demolab-vsm1(config-pmap-q<strong>os</strong>)# class cm-marking<br />

demolab-vsm1(config-port-prof)# service-policy type q<strong>os</strong><br />

input pm-marking<br />

demolab-vsm1(config-port-prof)# end<br />

demolab-vsm1# show policy-map int vethernet 2<br />

Global statistics status :<br />

enabled<br />

Vethernet2<br />

Service-policy (q<strong>os</strong>) input:<br />

policy statistics status:<br />

pm-marking<br />

enabled<br />

Class-map (q<strong>os</strong>): cm-marking (match-any)<br />

142 packets<br />

Match: precedence 0<br />

142 packets<br />

demolab-vsm1#<br />

In addition, using the MQC marking policies can be made where traffic is matched <strong>and</strong> then<br />

marked with specific values. Marking can be implemented on the following fields: DSCP,<br />

IP Precedence, CoS, QoS group, Discard Class, or ingress <strong>and</strong> egress ports. Example 10-26<br />

builds on the classification policy <strong>and</strong> marks the IP Precedence 0 traffic to IP Precedence 1.<br />

Example 10-26. Marking IP Precedence in Nexus 1000V

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

Saved successfully!

Ooh no, something went wrong!