Convert L2 QoS to L3 QoS Rev 1.0


#########################################################################################################
# Convert L2 QoS to L3 QoS Rev 1.0 #
#########################################################################################################
# Author: Rick Frey #
# email: support@rickfreyconsulting.com #
# Username in MikroTik Forum is rickfrey #
#########################################################################################################
# License #
# This script has been created for use by the general public and may be used freely. This script may #
# not be sold! #
#########################################################################################################
# Features #
# -Converts the QoS value from the L2 header of a frame to the L3 ToS/ DSCP value in the packet #
#########################################################################################################

######################################################################################################################
ip firewall mangle
add action=change-dscp chain=prerouting comment=”Transfer L2 QoS (Priority) value of 7 to L3 QoS (TOS/DSCP) value of 7″ new-dscp=7 passthrough=yes priority=7
add action=change-dscp chain=prerouting comment=”Transfer L2 QoS (Priority) value of 6 to L3 QoS (TOS/DSCP) value of 6″ new-dscp=6 passthrough=yes priority=6
add action=change-dscp chain=prerouting comment=”Transfer L2 QoS (Priority) value of 5 to L3 QoS (TOS/DSCP) value of 5″ new-dscp=5 passthrough=yes priority=5
add action=change-dscp chain=prerouting comment=”Transfer L2 QoS (Priority) value of 4 to L3 QoS (TOS/DSCP) value of 4″ new-dscp=4 passthrough=yes priority=4
add action=change-dscp chain=prerouting comment=”Transfer L2 QoS (Priority) value of 3 to L3 QoS (TOS/DSCP) value of 3″ new-dscp=3 passthrough=yes priority=3
add action=change-dscp chain=prerouting comment=”Transfer L2 QoS (Priority) value of 2 to L3 QoS (TOS/DSCP) value of 2″ new-dscp=2 passthrough=yes priority=2
add action=change-dscp chain=prerouting comment=”Transfer L2 QoS (Priority) value of 1 to L3 QoS (TOS/DSCP) value of 1″ new-dscp=1 passthrough=yes priority=1
add action=change-dscp chain=prerouting comment=”Transfer L2 QoS (Priority) value of 0 to L3 QoS (TOS/DSCP) value of 0″ new-dscp=0 passthrough=yes priority=0
/

Convert L2 QoS to L3 QoS Rev 1.0

Leave a comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.