How to run this script

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
how to run the below


create qosprofile "QP5"
#Start editor to create file#
vi omsubnet.pol

#Enter insert mode#
i

#Copy and Paste the below#
entry QP5subnet {
if {
source-address 10.68.4.96/28
}
 then {
Qosprofile qp5;
replace-dscp;
}
}
#To this line#

#To save#
:wq

#Enable DSCP replacement#
configure access-list omsubnet.pol

#Save#
save
Photo of Khalid Saif

Khalid Saif

  • 70 Points

Posted 2 years ago

  • 0
  • 1
Photo of Taykin Izzet

Taykin Izzet , Employee

  • 3,106 Points 3k badge 2x thumb
Khalid, we do have an article that walks through creating and applying an access-list in further detail:

https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-create-and-apply-an-ACL-in-EXOS

You would have to use your policy instead of the example in the article. Be sure to press escape and i (insert) before pasting otherwise you may miss a line.

The policy will have to be applied to port or VLAN:

configure access-list <POLICY_NAME> [port|vlan] <PORT_NUMBER | VLAN_NAME> [ingress|egress]

You can also verify whether there are any errors in the policy using:

check policy <policy_name>
(Edited)