udiniqgeek
Thinks about OS Linux Ubuntu | Ubuntu Tutorials
HOW TO MAKE MONEY by INTERNET
sfi


Install Bandwidth Management at Ubuntu




Bandwidth Management is a tool that can help us in policy on how we can divide bandwidth according to the needs of staff duties and functions of the company, this course will be very beneficial to the smooth delivery of corporate data via internet.

Here I apply bandwidth management in ubuntu 8.04 server machine which has installed therein a proxy that is working well.

The following step-by-step how we install Bandwidth Management with HTB Tools in Ubuntu 8.04 machine :

Here I will install HTB Tools folder /usr/local/src, so the first step is our first entry in the folder these, the following steps :

# cd /usr/local/src

Then download and extract the HTB package with the command :

The next step is we remove all the contents of his bin folder htb tools in / sbin server, the following steps :

# wget http://www.udiniqgeek.com/download/HTB-tools-0.3.0a-i486-1.tgz
# tar -zxvf HTB-tools-0.3.0a-i486-1.tgz

From the results of these extracts will display the folder etc, install, and sbin folder.

# cd /usr/local/src/sbin
# mv htb /sbin
# mv htbgen /sbin
# mv q_checkcfg /sbin
# mv q_parser /sbin
# mv q_show /sbin

Then we went into her etc folder and move it tools htb htb folder to folder /etc server :

# cd /usr/local/src/etc
# mv htb /etc

Next remove the new writing in a folder that already htb we move, the following steps:

# mv /etc/htb/eth0-qos.cfg.new /etc/htb/eth0-qos.cfg
# mv /etc/htb/eth1-qos.cfg.new /etc/htb/eth1-qos.cfg

When writing new on / etc/htb/eth0-qos.cfg.new and / etc/htb/eth1-qos.cfg.new been removed, the next step into his folder etc rc.d htb tools:

# cd /usr/local/src/etc/rc.d

rc.htb.new to enter the file folder and rename init.d be rc.htb

# mv rc.htb.new /etc/init.d/rc.htb

Then it rc.htb chmod:

# chmod 755 /etc/init.d/rc.htb

Then Setting file eth0-qos cfg and eth1-qos cfg bandwidth limit as needed, and here I will explain to limit bandwidth on eth1 (LAN Office) :

# vim /etc/htb/eth1-qos.cfg

class Internet_Office {
        bandwidth 1024;
        limit 2048;
        burst 2;
        priority 1;

client Manager {
        bandwidth 256;
        limit 512;
        burst 2;
        priority 1;
        dst {
        192.168.168.5/32;
};
};

client hotspot {
        bandwidth 32;
        limit 256;
        burst 2;
        priority 1;
        dst {
        192.168.168.6/32;
};
};

client secretary {
        bandwidth 64;
        limit 256;
        burst 2;
        priority 1;
        dst {
        192.168.168.7/32;
};
};

client Staff {
        bandwidth 256;
        limit 512;
        burst 2;
        priority 1;
        dst {
        192.168.168.11/32;
        192.168.168.12/32;
};
};
};

class default { bandwidth 8; };

-- Ends above this text and save with :wq and hit enter --

description:
Manager: bandwidth 512 Kbps (1:2), meaning a maximum of 512 and minimum 256.
Hotspot: bandwidth 512 Kbps (1:8), meaning a maximum of 512 and at least 64.
Secretary: bandwidth 512 Kbps (1:4), meaning a maximum of 512 and minimum 128.
Staff: bandwidth 512 Kbps (1:2), meaning a maximum of 512 and at least 256, but sharing.

The next step in the editing when it is running on eth1 htb tools, the following steps:

# /etc/init.d/rc.htb start_eth1

And if you want to see the results of running the LAN traffic Office, run the following command:

# /etc/init.d/rc.htb show_eth1

Finally, our struggle is over Bandwidth Management in installing Ubuntu 8.04 on the machine, and in addition if you want to make edits in eth1-qos.cfg to limit the bandwidth should first stop HTB such tools, the order to stop HTB Tools:

# /etc/init.d/rc.htb stop_eth1


SITE ARCHIVE
udiniqgeek
Thinks about OS Linux Ubuntu | Ubuntu Tutorials
Copyright©2009 | UdiniqGeek.com - Thinks about OS Linux Ubuntu - Ubuntu Tutorials | Contact Us | :: RSS | [Valid RSS]