Vyatta to Control Bandwidth

download Vyatta to Control Bandwidth

If you can't read please download the document

description

Example of configuration to establish control in your Bandwidth applied in Vyatta equipment.

Transcript of Vyatta to Control Bandwidth

VYATTA TO CONTROL BANDWIDTH----------------------------------monitor interfaces ethernet eth0 flowVyatta router has two interfaces: eth0 LAN, and eth1 WAN interfaceset bandwidth for upload traffic at 1Mbits/sec and download traffic at 2Mbits/sec$ configure[you are entering Vyatta's CLI]$ set traffic-policy shaper UPLOAD-POLICY$ set traffic?policy shaper UPLOAD-POLICY bandwidth 1Mbit$ set traffic?policy shaper UPLOAD-POLICY default bandwidth 50%$ set traffic?policy shaper UPLOAD-POLICY default ceiling 100%$ set traffic?policy shaper UPLOAD-POLICY default burst 15k$ set traffic?policy shaper UPLOAD-POLICY default queue-type fair-queue$ set interfaces ethernet eth1 traffic?policy out UPLOAD-POLICY$ set traffic-policy shaper DOWNLOAD-POLICY$ set traffic?policy shaper DOWNLOAD-POLICY bandwidth 2Mbit$ set traffic?policy shaper DOWNLOAD-POLICY default bandwidth 50%$ set traffic?policy shaper DOWNLOAD-POLICY default ceiling 100%$ set traffic?policy shaper DOWNLOAD-POLICY default burst 15k$ set traffic?policy shaper DOWNLOAD-POLICY default queue-type fair-queue$ set interfaces ethernet eth0 traffic?policy out DOWNLOAD-POLICY$ commit$ save$ exitLater if you want to change your bandwidth rate limit on Vyatta, you can simply do:$ configure$ set traffic-policy shaper DOWNLOAD-POLICY bandwidth 8Mbit$ set traffic-policy shaper UPLOAD-POLICY bandwidth 4Mbit$ commit$ save$ exitADVANCED EXAMPLE------------------i've 2 network. One is wireless and one is LAN linescopelan line limit traffic 15mbit used http https dns pop3 minimum 60% other minimum 20%wiless limit 5mbit used http https dns pop3 minimum 60% other minimum 20%here is sample configset traffic-policy shaper 5m bandwidth '5120kbit'set traffic-policy shaper 5m class 2 bandwidth '60%'set traffic-policy shaper 5m class 2 ceiling 100%set traffic-policy shaper 5m class 2 match dns ip protocol 'udp'set traffic-policy shaper 5m class 2 match dns ip source port '53'set traffic-policy shaper 5m class 2 match http ip protocol 'tcp'set traffic-policy shaper 5m class 2 match http ip source port '80'set traffic-policy shaper 5m class 2 match https ip protocol 'tcp'set traffic-policy shaper 5m class 2 match https ip source port '443'set traffic-policy shaper 5m class 2 match pop3 ip protocol 'tcp'set traffic-policy shaper 5m class 2 match pop3 ip source port '110'set traffic-policy shaper 5m class 2 queue-type 'fair-queue'set traffic-policy shaper 5m default bandwidth '20%'set traffic-policy shaper 5m default ceiling 100%set traffic-policy shaper 5m default queue-type 'fair-queue'set traffic-policy shaper 15m bandwidth '15mbit'set traffic-policy shaper 15m class 2 bandwidth '60%'set traffic-policy shaper 15m class 2 ceiling 100%set traffic-policy shaper 15m class 2 match dns ip protocol 'udp'set traffic-policy shaper 15m class 2 match dns ip source port '53'set traffic-policy shaper 15m class 2 match http ip protocol 'tcp'set traffic-policy shaper 15m class 2 match http ip source port '80'set traffic-policy shaper 15m class 2 match pop3 ip protocol 'tcp'set traffic-policy shaper 15m class 2 match pop3 ip source port '110'set traffic-policy shaper 15m class 2 match https ip protocol 'tcp'set traffic-policy shaper 15m class 2 match https ip source port '443'set traffic-policy shaper 15m class 2 queue-type 'fair-queue'set traffic-policy shaper 15m default bandwidth '20%'set traffic-policy shaper 15m default ceiling 100%set traffic-policy shaper 15m default queue-type 'fair-queue'commitset interfaces ethernet eth0 traffic-policy out '15m'set interfaces wireless wlan0 traffic-policy out '5m'commit