Defining Cos Rewrite Rules (Cli Procedure) - Juniper JUNOS OS 10.4 - FOR EX REV 1 Manual

For ex series ethernet switches
Table of Contents

Advertisement

Complete Software Guide for Junos

Defining CoS Rewrite Rules (CLI Procedure)

3444
®
OS for EX Series Ethernet Switches, Release 10.4
You configure rewrite rules to alter CoS values in outgoing packets on the outbound
interfaces of an EX Series switch to match the policies of a targeted peer. Policy matching
allows the downstream routing platform or switch in a neighboring network to classify
each packet into the appropriate service group.
To configure a CoS rewrite rule, create the rule by giving it a name and associating it with
a forwarding class, loss priority, and a code point, thus creating a rewrite table. After the
rewrite rule is created, enable it on an interface. You can also apply an existing rewrite
rule on an interface.
NOTE: To replace an existing rewrite rule on the interface with a new rewrite
rule of the same type, first explicitly remove the rewrite rule and then apply
the new rule.
NOTE: Custom rewrite-rule bindings are implemented through filters. And
custom rewrite rules cannot be bound to routed VLAN interfaces (RVIs).
To create rewrite rules and enable them on interfaces:
To create an 802.1p rewrite rule named customup-rw in the rewrite table for all Layer
2 interfaces:
[edit class-of-service rewrite-rules]
user@switch# set ieee-802.1 customup-rw forwarding-class be loss-priority low
code-point 000
user@switch# set ieee-802.1 customup-rw forwarding-class be loss-priority high
code-point 001
user@switch# set ieee-802.1 customup-rw forwarding-class af loss-priority low
code-point 010
user@switch# set ieee-802.1 customup-rw forwarding-class af loss-priority high
code-point 011
user@switch# set ieee-802.1 customup-rw forwarding-class ef loss-priority low
code-point 100
user@switch# set ieee-802.1 customup-rw forwarding-class ef loss-priority high
code-point 101
user@switch# set ieee-802.1 customup-rw forwarding-class nc loss-priority low
code-point 110
user@switch# set ieee-802.1 customup-rw forwarding-class nc loss-priority high
code-point 111
To enable an 802.1p rewrite rule named customup-rw on a Layer 2 interface:
[edit]
user@switch# set class-of-service interfaces ge-0/0/0 unit 0 rewrite-rules ieee-802.1
customup-rw
To enable an 802.1p rewrite rule named customup-rw on all Gigabit Ethernet interfaces
on the switch, use wildcards for the interface name and logical-interface (unit) number:
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os 10.4

Table of Contents