more dummynet questions

Jesper Skriver jesper at FreeBSD.org
Sun Jun 22 18:05:32 BST 2003


On Thu, Jun 05, 2003 at 07:57:10PM +0100, Company 2210 wrote:

> Hi all, well I've got dummynet up and running, problem is I'm
> currently sharing a fraction of my bandwidth amongst 4 private IP's -
> ruleset looks like:
>
> add 100 pipe 1 ip from 192.168.0.96/27 to any
> add 110 pipe 2 ip from any to 192.168.0.127/27
> pipe 1 config bw 128Kbit/s queue 20
> pipe 2 config bw 256Kbit/s queue 20 mask dst-ip 0xffffffE0
> 
> Problem is , 2mbit adsl connection is only used at it's fraction
> because all IP's in the range are forced through the pipes. I need to
> dynamically create a pipe, giving each IP i'ts own 128/256 - Now, I'm
> pretty sure queues are used for this, but I have been unable to get
> one working - any advice/assistance would be great.

So for each IP address within 192.168.0.96/27 you want to limit it to
128/256

Something like

add 100 pipe 1 ip from 192.168.0.96/27 to any
add 110 pipe 2 ip from any to 192.168.0.127/27
pipe 1 config bw 128Kbit/s queue 20 mask src-ip 0xffffffff
pipe 2 config bw 256Kbit/s queue 20 mask dst-ip 0xffffffff

The mask (src-ip|dst-ip) 0xffffffff whill create a dynamic pipe per IP
address.

/Jesper

-- 
Jesper Skriver, jesper(at)skriver(dot)dk  -  CCIE #5456

One Unix to rule them all, One Resolver to find them,
One IP to bring them all and in the zone to bind them.




More information about the Ukfreebsd mailing list