On a M320 and T-series platform, configure rewrite tables and apply them in various ways to achieve the following results:
- [edit class-of-service]
- rewrite-rules {
-
- exp exp-inet-table {
-
- forwarding-class best-effort {
- loss-priority low code-point 000;
- loss-priority high code-point 001;
- }
-
- forwarding-class assured-forwarding {
- loss-priority low code-point 010;
- loss-priority high code-point 011;
- }
-
- forwarding-class expedited-forwarding {
- loss-priority low code-point 111;
- loss-priority high code-point 110;
- }
-
- forwarding-class network-control {
- loss-priority low code-point 100;
- loss-priority high code-point 101;
- }
- }
-
- exp rule1 {
- ...
- }
-
- inet-precedence rule2 {
- ...
- }
- }
- exp rule_non_vpn {
- ...
- }
-
- interfaces {
-
- so-3/1/0 {
-
- unit 0 {
-
- rewrite-rules {
- exp rule1;
- inet-precedence rule2;
- exp exp-inet-table protocol mpls-inet-both; # For all VPN
traffic.
- exp rule_non_vpn protocol mpls-inet-both-non-vpn; # For
all non-VPN
# traffic.
- }
- }
- }
-
- so-3/1/1 {
-
- unit 0 {
-
- rewrite-rules {
- exp exp-inet-table protocol [mpls mpls-inet-both];
- }
- }
- }
- }