LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network traffic shaping (https://www.linuxquestions.org/questions/linux-newbie-8/network-traffic-shaping-836705/)

anuragmaddi 10-07-2010 04:39 AM

Network traffic shaping
 
I am Anurag Singh.I have done MCA and CCNA right now i am working as a network administrator in a college. The problem is this the server which is placed in college is Linux (Fedora 9).So i dont have idea about Linux Server so please help me please if you can.

My first problem is how to change IP address in linux using command line because GUI mode is not working is there any body to help me out please.

My second problem is i want to learn Linux as soon as posible.

My third and major problem is that i have to do some scripting work because in my college there are 8 hostel in which i have to define bandwidth management like i am using 13 MBPS so i have to distribute it 8mbps(9am - 5pm) to hostel and 5mbps to other segment and total 12Mbps to hostel after 5pm to 9am and 1Mbps to other segment so please help me please.

vikas027 10-07-2010 04:44 AM

Quote:

Originally Posted by anuragmaddi (Post 4120305)
My first problem is how to change IP address in linux using command line because GUI mode is not working is there any body to help me out please.

Use setup or neat-tui to change IP address. And then run service network restart.

Quote:

Originally Posted by anuragmaddi (Post 4120305)
My second problem is i want to learn Linux as soon as posible.

There are no shortcuts, I would recommend you to first go for RHCT course and RHCE.


Quote:

Originally Posted by anuragmaddi (Post 4120305)
My third and major problem is that i have to do some scripting work because in my college there are 8 hostel in which i have to define bandwidth management like i am using 13 MBPS so i have to distribute it 8mbps(9am - 5pm) to hostel and 5mbps to other segment and total 12Mbps to hostel after 5pm to 9am and 1Mbps to other segment so please help me please.

I have not much idea about this, but I do not think scripting would help you in achieving this.

prayag_pjs 10-07-2010 05:20 AM

Hi,

Your First Problem's Solution:

Quote:

setup

service network restart

chkconfig network on
Your Second Problem's Solution:
To learn Linux follow this links(read it )as soon as possible.The more fast you read and practice,the fast you will learn.Its in you hand:

http://www.linuxhomenetworking.com

http://tldp.org/LDP/sag/sag.pdf

http://www.centos.org/docs/4/pdf/rhel-sag-en.pdf

Your Third Problem's Solution:

Configure squid for web caching and bandwidth throttling!

Follow links:
http://www.howtoforge.org/squid-dela...dth-management

http://knowlinux.blogspot.com/2006/0...ing-squid.html

http://www.faqs.org/docs/Linux-HOWTO...ing-HOWTO.html

Note:Configure squid in transparent mode.Also you need to make following changes in squid.conf for time based internet services:
How can I allow some clients to use the cache at specific times?

Let's say you have two workstations that should only be allowed access to the Internet during working hours (8:30 - 17:30). You can use something like this:

Quote:

acl FOO src 10.1.2.3 10.1.2.4
acl WORKING time MTWHF 08:30-17:30
http_access allow FOO WORKING
http_access deny FOO
Allow some users to use the cache at specific times?
Quote:

acl USER1 proxy_auth Dick
acl USER2 proxy_auth Jane
acl DAY time 06:00-18:00
http_access allow USER1 DAY
http_access deny USER1
http_access allow USER2 !DAY
http_access deny USER2
Refer this links:

http://nxlinuxadmin.blogspot.com/201...ed-access.html
http://www.deckle.co.za/squid-users-...trol_Operators

rustek 10-08-2010 04:38 PM

The third could be traffic control?

A good place to start there is:
http://www.linux.org/docs/ldp/howto/...WTO/index.html

Be warned, that subject is kind of a bugger.

John VV 10-08-2010 05:29 PM

first problem
Fedora 9 is and has BEEN DEAD for a very long time

there have been NO SECURITY UPDATES no bug fixes and NO NEW SOFTWARE for over a year


fedora is a research and develpoment / testing distro and has NO business on a server
unless YOU LIKE to reformat and install the next new version EVERY 6 MONTHS
that is A LOT of down time for a server !!!
DO NOT use fedora on a server !!!

the current is 13 and fedora 14 will be out in a few weeks
you are allready 4 to 5 versions OUT OF DATE

please do the rest of the net a very big security favor and install a SUPPORTED long life distro
CentOS would be a good choice

leejohnli 10-08-2010 07:38 PM

Linux Enterprise distro is also a good choice if ever you want to migrate your linux box server.

Nylex 10-09-2010 03:05 PM

anuragmaddi, in future, please use thread titles that say something about your question/problem, as you're told to when you post a thread (and you're also told that titles like "Help me" are bad).


All times are GMT -5. The time now is 02:58 AM.