rewrite-rule—Configure a rewrite rule to overwrite the DSCP field of a packet's outer IP header, or apply a rewrite rule on an interface (on vEdge routers only). A rewrite rule is applied to packets being transmitted out the interface.
You can apply rewrite rules to both unicast and multicast traffic.
vManage Feature Template
For vEdge routers only:
Configuration ► Policies ► Localized Policy
Configuration ► Templates ► VPN Interface Cellular (for vEdge cellular wireless routers only)
Configuration ► Templates ► VPN Interface Ethernet
Configuration ► Templates ► VPN Interface GRE
Configuration ► Templates ► VPN Interface PPP
Configuration ► Templates ► VPN Interface PPP Ethernet
Create a Rewrite Rule
policy rewrite-rule rule-name class class-name loss-priority dscp dscp-value
- Forwarding Class, Loss Priority, and DSCP Value
- class class-name loss-priority dscp dscp-value
Name of a forwarding class. For each forwarding class, define a packet loss priority (PLP; either high or low) and a DSCP value (from 0 through 63).
- Rewrite Rule Name
Name of the QoS map. It can be a text string from 1 through 32 characters long. When you apply a rewrite rule to an interface, the name must match that which you specified when you created the rule with the policy rewrite-rule configuration command.
Create a rewrite rule, and apply it to an interface:
vEdge(config)# show config rewrite-rule transport class af1 low dscp 3 class af1 high dscp 4 class af2 low dscp 5 class af2 high dscp 6 class af3 low dscp 7 class af3 high dscp 8 class be low dscp 1 class be high dscp 2 ! ! vpn 0 interface ge0/0 ip-address 10.1.15.15/24 tunnel-interface no shutdown rewrite-rule transport ! !
Command introduced in Viptela Software Release 14.1.
In Release 16.3, add support for multicast traffic.