Reset Search
 

 

Article

How To Configure EOS and EXOS Switch to Rewrite ToS

« Go Back

Information

 
TitleHow To Configure EOS and EXOS Switch to Rewrite ToS
Objective
  • Below are sample configs that show how to configure the switches to  rewrite  the ToS to a value of CS2. 
  • Rewriting the ToS allows routers to redirect the traffic based on the ToS value to a network resource such as a NAC.
  • CS2 was chosen because it is commonly used for NAC integration.
Environment
  • 7100-Series
  • BlackDiamond
  • K-Series
  • NAC
  • S-Series
  • Summit
Procedure
EXOS Switch example config:
#
# Module policy configuration.
#
enable policy
configure policy profile 1 name "ToS Role" pvid-status "enable" pvid 4095
configure policy rule 1 tcpdestportIP 80 mask 16 forward cos 8
create qosprofile "QP2"
create qosprofile "QP3"
create qosprofile "QP4"
create qosprofile "QP5"
create qosprofile "QP6"
create qosprofile "QP7"
configure qosscheduler strict-priority ports "Default (TXQ.0)"
configure qosprofile QP1 maxbuffer 100 weight 1 ports "Default (TXQ.0)"
configure qosprofile QP2 maxbuffer 100 weight 1
configure qosprofile QP2 maxbuffer 100 weight 1 ports "Default (TXQ.0)"
configure qosprofile QP3 maxbuffer 100 weight 1
configure qosprofile QP3 maxbuffer 100 weight 1 ports "Default (TXQ.0)"
configure qosprofile QP4 maxbuffer 100 weight 1
configure qosprofile QP4 maxbuffer 100 weight 1 ports "Default (TXQ.0)"
configure qosprofile QP5 maxbuffer 100 weight 1
configure qosprofile QP5 maxbuffer 100 weight 1 ports "Default (TXQ.0)"
configure qosprofile QP6 maxbuffer 100 weight 1
configure qosprofile QP6 maxbuffer 100 weight 1 ports "Default (TXQ.0)"
configure qosprofile QP7 maxbuffer 100 weight 1
configure qosprofile QP7 maxbuffer 100 weight 1 ports "Default (TXQ.0)"
configure qosprofile QP8 maxbuffer 100 weight 1 ports "Default (TXQ.0)"
configure dot1p type 0 qosprofile QP1 ingress-meter ingmeter0
configure dot1p type 1 qosprofile QP2 ingress-meter ingmeter1
configure dot1p type 2 qosprofile QP3 ingress-meter ingmeter2
configure dot1p type 3 qosprofile QP4 ingress-meter ingmeter3
configure dot1p type 4 qosprofile QP5 ingress-meter ingmeter4
configure dot1p type 5 qosprofile QP6 ingress-meter ingmeter5
configure dot1p type 6 qosprofile QP7 ingress-meter ingmeter6
configure dot1p type 7 qosprofile QP8 ingress-meter ingmeter7
configure cos-index 8 qosprofile QP4 replace-tos 64

EOS Switch example config:
# cos reference
set cos reference txq 0.0 9 queue 9
set cos reference txq 0.0 10 queue 10
set cos reference txq 0.0 11 queue 10
set cos reference txq 0.0 12 queue 10
set cos reference txq 0.0 13 queue 10
set cos reference txq 0.0 14 queue 10
!
# cos settings
set cos settings 0 irl-reference 0
set cos settings 1 txq-reference 1 irl-reference 1
set cos settings 2 txq-reference 2 irl-reference 2
set cos settings 3 txq-reference 3 irl-reference 3
set cos settings 4 txq-reference 4 irl-reference 4
set cos settings 5 txq-reference 5 irl-reference 5
set cos settings 6 txq-reference 6 irl-reference 6
set cos settings 7 txq-reference 7 irl-reference 7
set cos settings 8 priority 3 tos-value 64.255 txq-reference 3
!
# cos state
set cos state enable
!
#
# policy
set policy profile 1 name "ToS Role" pvid-status enable pvid 4095
set policy rule admin-profile port host.0.1 mask 16 port-string host.0.1 admin-pid 66
set policy rule admin-profile port lag.0.1 mask 16 port-string lag.0.1 admin-pid 66
set policy rule admin-profile port lag.0.2 mask 16 port-string lag.0.2 admin-pid 66
set policy rule admin-profile port tbp.0.14 mask 16 port-string tbp.0.14 admin-pid 66
set policy rule admin-profile port tbp.0.15 mask 16 port-string tbp.0.15 admin-pid 66
set policy rule admin-profile port tbp.0.16 mask 16 port-string tbp.0.16 admin-pid 66
set policy rule admin-profile port ge.1.1 mask 16 port-string ge.1.1 admin-pid 66
set policy rule admin-profile port ge.1.2 mask 16 port-string ge.1.2 admin-pid 66
set policy rule admin-profile port ge.1.3 mask 16 port-string ge.1.3 admin-pid 66
set policy rule admin-profile port ge.1.4 mask 16 port-string ge.1.4 admin-pid 66
set policy rule admin-profile port ge.1.5 mask 16 port-string ge.1.5 admin-pid 66

set policy rule 1 tcpdestportIP 80 mask 16 forward cos 8

 
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255