[j-nsp] Setting CoS bits on ingress frames

Alexander Arseniev arseniev at btinternet.com
Wed Jun 17 11:04:14 EDT 2015


Hello,

On 17/06/2015 15:45, Victor Sudakov wrote:
> Would you care to give a simple example? 
Of course. Please try the below and see if it works for You:

class-of-service {
     forwarding-classes {
         queue 0 be;
         queue 1 ef;
         queue 2 af;
         queue 3 nc;
         queue 4 be1;
         queue 5 ef1;
         queue 6 af1;
         queue 7 nc1;
     }
     interfaces {
         ge-0/0/0 { ### ingress untagged interface for Internet traffic
             unit 0 {
                 forwarding-class be1;
             }
         }
         ge-1/0/0 { ### egress tagged interface for Internet traffic
             unit 0 {
                 rewrite-rules {
                     ieee-802.1 test1;
                 }
             }
         }
     }
     rewrite-rules {
         ieee-802.1 test1 {
             forwarding-class be1 {
                 loss-priority low code-point 001;
                 loss-priority high code-point 001;
             }}}}

HTH
Thanks
Alex


More information about the juniper-nsp mailing list