<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Indunil Jayasooriya wrote:<br>
<blockquote
 cite="mid7ed6b0aa0708020218s31b0448cxb8ec8d7147173cac@mail.gmail.com"
 type="cite">Now, I want put about 5 people (5 PCs) behind this LAN2
and give internet access to them. But, I do not want them to use my
whole bandwidth (
i.e - 256 kbit/s), But Instead, I want peple behind this LAN2 to
allocate  <span style="font-weight: bold;">64 kbits/s</span> (kilo
bits per second) for <span style="font-weight: bold;">their internert
access</span>. <br>
  <br>
</blockquote>
<br>
what if noone on LAN1 is using the net at the moment?  do you still
want to restrict LAN2 to 64k?  why waste the bandwidth?<br>
<br>
<br>
<blockquote
 cite="mid7ed6b0aa0708020218s31b0448cxb8ec8d7147173cac@mail.gmail.com"
 type="cite">Is it possible to acheive this task on firewall running
iptables and iproute2 (CentOS 4.5) ? <br>
  <br>
If so, How can I do such thing? <br>
  <br>
</blockquote>
<br>
the clues are in the LARTC howto (Linux Advanced Routing and Traffic
Control)   What you want to do is generally known as 'traffic shaping'.<br>
<br>
<blockquote
 cite="mid7ed6b0aa0708020218s31b0448cxb8ec8d7147173cac@mail.gmail.com"
 type="cite">If I do such thing, what will happen to the people behind
LAN1 ? Will they get whole 256 kbits/s as before or will they get 256
kbit/s - 64  kbit/s for their internet access? <br>
  <br>
</blockquote>
<br>
<br>
you can't get 5 lbs of stuff in a 4 lb. sack.  :)<br>
<br>
if you've allowed max 64k for one class of users, and they are actively
using it, and your traffic shaping guarantees them that 64k, then
there's only 192k left for anyone else.<br>
</body>
</html>