Skip to contentSkip to conversation

bandwidth

DISCUSSION Andrew J. Meader 4 participants 4 messages Dec 12, 2002 – Dec 13, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

There are a couple of situations where I need to limit bandwidth on some of my machines. Can anyone share some solutions they have used? Here are a couple of examples of what I am trying to accomplish:

* Limit bandwidth to certain ftp sites from localhost.
* Establish a maximum bandwidth for any connection transiting the firewall/router.

Thanks.

Andy

#1 lore raw
Quoted 3 lines

There are a couple of situations where I need to limit bandwidth on some of my machines. Can anyone share some solutions they have used? Here are a couple of examples of

HTB with iproute2 tc utility.
http://luxik.cdi.cz/~devik/qos/htb/

Works just fine, easy to configure.

Rob

#3 lore raw

2 internet link problem (forwarding help i think?)

Hi things i have to clear first!

DEFAULT GATEWAY = 203.100.100.1
MACHINE's (primary) IP = 203.100.100.2 - NIC1
MACHINE's (secondary) IP = 203.100.100.3 - NIC2
MASQ BLOCK = 10.0.0.0/16 - NIC3

I have 3 NIC Cards, My only problem is i want to route all my MASQ BLOCK that when they
access IP BLOCK 203.100.200.0/24 they will come out on NIC2 (Secondary IP of my machine)
And all other packets to its default route.

Is this possible? Im currently mixed up also when i tried to add the route on linux when i ping
that ip, the secondary IP will not work anymore but my default route to NIC1 will be still the same.

Its like this, I can access 203.100.100.3 (Im not yet adding my secondary ip/route) When i add
my secondary ip/route 203.100.100.3 "ifconfig eth2 203.100.100.3 netmask 255.255.255.240 up"
I can no longer access 203.100.100.3 But all of my other connections are working except for that.

my kernel routing table after adding.. (not real ip's)

panic:/# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
203.100.100.*  0.0.0.0         255.255.255.248 U     0      0        0 eth0
203.100.100.*  0.0.0.0         255.255.255.240 U     0      0        0 eth2
10.0.0.0        0.0.0.0         255.255.0.0     U     0      0        0 eth1
0.0.0.0         203.100.100.1  0.0.0.0         UG    0      0        0 eth0

Hope someone can help!

--
thanks,
louie miranda

--
thanks,
louie miranda