Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
cisco [2013/09/07 09:45]
zagi
cisco [2015/05/21 15:00]
zagi
Line 288: Line 288:
   ssid TEST1   ssid TEST1
   ssid TEST2    ssid TEST2 
 +  
 +== Cisco bash policer script ==
 +
 +<code bash>
 +#!/bin/bash
 +# tnt.aufbix.org
 +#cir=$(($1*1024*1024))
 +cir=$(($1*1024*1000))
 +nburst=$(($cir*3/16))
 +eburst=$(($nburst*2))
 +echo "policy-map $1M"
 +echo "class class-default"
 +echo "police cir $cir bc $nburst be $eburst conform-action set-dscp-transmit default exceed-action drop  violate-action drop"
 +
 +</code>
 +
cisco.txt ยท Last modified: 2015/05/21 15:01 by zagi
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready