Displaying 20 results from an estimated 6000 matches similar to: "traffic shaping on single ip..."
2004 Aug 13
1
Shaping weirdness
I''ve been following the HOWTO, and reading mailing list discussions
about throttling bandwidth, and have had some success, but I just want
to tie off some loose ends. Essentially what I am wanting to do is to
keep our bandwidth usage below 1megabit, because if we go over we get
charged for that traffic. I''ve used some of the examples from the
HOWTO to limit our bandwidth, but I
2001 Feb 20
2
Incoming trafic shaping (depending on src IP)
Hi there,
i''m trying to shape incoming trafic on my linux box.
I want it to depend on the source IP adress of the packets (in fact, i got
a VPN on an ADSL link and wanted to get at least/max 64Kbit/s for the VPN)
So i tried this :
tc qdisc add dev ppp0 root handle 1:0 cbq bandwidth 512Kbit avpkt 1000 cell 8
tc class add dev ppp0 parent 1:0 classid 1:1 cbq bandwidth 512Kbit rate
2007 Dec 05
3
Adding qdiscs crashes kernel??
Hi all,
I''m having some problems setting up qdiscs on a bridge.The config looks
a little like this:
ifconfig ifb0 up # Bring up the IFB for this bridge.
tc qdisc add dev eth2 ingress
tc qdisc add dev eth3 ingress
tc qdisc add dev ifb0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000
cell 8
# Raw qdiscs on each bridge port
tc qdisc add dev eth2 root handle 1:0 cbq bandwidth
2006 Aug 13
3
trying to prioritize voip traffick
I am using a server with asterisk and I am trying to prioritize voip
traffick -- I am a newbie at this traffic shaping, so please bear with
me. I used the script below and what happens is thatall traffic in
the bulk class stops after a couple of minutes. Also, should I
include the ports for rtp in the filter statements with the ports 5061
and 4569? Note I have a fairly big pipe -- supposed to
2003 Sep 04
3
CBQ Rate
Hi everyone,
This is on a linux box, ingress (eth1) at 100Mb/s and egress (eth0) at
10Mb/s. The purpose is to test CBQ
Here is my script
-------------------------------------------------------------------
# Root qdisc
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 9Mbit \
avpkt 1000 cell 8
# Classes
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 9Mbit \
rate 5Mbit weight
2006 Sep 14
10
tc is giving an error: RTNETLINK answers: File exists
Hello,
I''m using tc to limit the bandwidth of our wireless customers. I have a
working script, but I''m not happy with it. I''m trying to write a more
sophisticated script, but when I run it, it give me this error:
RTNETLINK answers: File exists
I have no idea what this error means or how to fix it. Here is a portion
of the script (the whole script shapes several
2001 Jun 19
3
RTNETLINK answers: Invalid argument
Hi all,
I have installed 2.4.5 kernel, Debian Potato.
my tc script:
#!/bin/bash
tc qdisc add dev eth1 root handle 20: cbq bandwidth 10Mbit avpkt 1000
echo root
tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit rate \
10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000
echo class
tc class add dev eth1 parent 20:1 classid 20:100 cbq bandwidth 10Mbit rate \
5Mbit allot
2004 Dec 22
4
how to add burstable rate?
Hi,
I managed to fix 128kbit for an IP address of 192.168.200.3 as below: -
tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot 1500
prio 5 bounded isolated
tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst
192.168.200.3 flowid 1:1
tc qdisc add dev eth3 parent 1:1 sfq perturb 10
How can I
2006 Jan 04
3
TC/CBQ shaping problems
Hello everyone,
I''m a newbie experimenting with CBQ shaping and am facing a few problems.
Can any of you please help?
TEST SETUP:
+---------------+ +----------------+
| 10.0.0.103 |----------->| 10.0.0.102 |
+---------------+ +----------------+
10.0.0.103: Linux, 100Mbit/s NIC
10.0.0.102: Windows, 100Mbit/s NIC, iperf tcp server (ports 2000 and 2001)
WHAT I
2000 Nov 18
9
priority bands don't reduce interactive latency?
I run a small Linux webserver and NAT router from my cable modem at home.
Whenever someone starts an http download, all other traffic from my LAN is
starved. Bandwidth is not really an issue, but latency is particularly
horrible -- pings that usually come back in 20ms can take up to 600ms while
the web server is active!
I set up QoS (netfilter+iproute2) on the NAT machine in an attempt to give
2005 Apr 27
4
do I need to iptables mark in this scenario?
Hello,
really new to advanced linux routing, but I have managed to setup
something that sort of works for my needs.
I have a linux box with this configuration:
Internet - eth0 - eth1 - many users
I''m using a NAT to allow my users Internet access.
On some users, I wish to shape their download speeds as to not overload
our outside connection.
Here is what I do to shape them at 64k
2005 Jan 06
3
tc and ntop inconsistent data flow
Dear List,
Sorry for the dublicated email but I couldn''t get any answer.
I am trying to limit some IP blocs with tc with following three step.
# interface
tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 256kbit # class
tc class add dev eth0 parent 1: classid 1:1 cbq rate 64kbit \
allot 1500 prio 5 bounded isolated
# rules
# download
tc filter add dev eth0 parent 1:
2003 Feb 13
1
prio qdisc problem
Hello there,
I''m trying to do some prio qdisc, but it doesn''t seem to work.
Can anybody tell me why ???
here is my simple prio qdisc script:
OPTIONS="bandwidth 100mbit allot 1514 maxburst 20 prio 3 avpkt 1000"
IPTABLES="/usr/local/bin/iptables.static"
INTERNAL=eth0
EXTERNAL=eth1
tc qdisc del dev eth0 root 2>/dev/null
tc qdisc add dev eth0 root handle
2002 May 03
2
(no subject)
hi all,
Iam using the following CBQs to limit the FTP bandwidth
pease tell what changes are rquired to make it work....
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1:0 cbq allot 1514 avpkt 1000
bandwidth 100Mbit
tc class add dev eth0 parent 1:0 classid 1:1 cbq allot 1514
bandwidth 100Mbit rate .4Mbit weight .4 prio 2 maxburst 20 cell
8 avpkt 1000
tc class add dev eth0
2004 Sep 23
2
shaping fails when using p2p apps?
Hi there,
We''re running a small ISP and all the users are shaped to 384/512/768k
both ways (whichever package they choose).
The router is a linux (debian sarge), the kernel is 2.4.25 right now.
All users are getting 10.1.1.* ip addresses (eth1) and eth0 connects
to the isp using ethernet (via a media converter, it''s fiber from
there). They''re nat''s using
2006 Aug 28
4
Applying the same class to multiple interfaces
Hi All,
I''m trying to do some traffic shaping on an ethernet bridge. Currently,
I have the following setup working:
ifconfig eth0 down
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
brctl stp br0 off
ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
ifconfig br0 up
This creates a bridge consisting of eth0 and eth1. So far so good.
I now want to use tc to shape traffic
2004 Mar 22
2
How to limit the Upload speed for an specific IP?
Hello,
I want to limit the upload speed for the eth0 Interface for an specific IP.
I used the following script, but its only limits the DOWNLOAD speed.But i want to limit both!
DEV=''eth0''
tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 768kbit
tc class add dev $DEV parent 1: classid 1:1 cbq rate 100kbit allot 1500 prio 5 bounded isolated
tc filter add dev $DEV
2002 Dec 07
4
Why my script doesn''t work ???
Hi All,
I''m using iptables-1.2.7a on RedHat8 kernel 2.4.20.
I wanted to limit the file-sharing traffic to the internet.
I marked the packets with iptables:
iptables -A FORWARD -t mangle -p tcp -s 192.168.1.1/24 -d !
192.168.1.1/24 --dport 1024:1862 -j MARK --set-mark 1
iptables -A FORWARD -t mangle -p tcp -s 192.168.1.1/24 -d !
192.168.1.1/24 --dport 1864:65535 -j MARK --set-mark 1
2004 Jul 10
3
limiting doesn''t work
Hi folks,
I read the fantastic LARTC How-to and after that i tried to limit one
host in my LAN for both down-and upload bandwidth usage.
I took section 15.9. and added uplink-limiting as I understood it from
the previous chapters.
Unfortunately it doesn''t work.
I ran the script and went to the specified PC, started a download, and
watched the rate. The rate was always about 2000 kbit/s,
2005 Jul 02
0
Bandwidth shaping script appears to incorrectly halve the bandwidth
Hi,
I''m trying to modify the Wondershaper script so achieve the following.
1. Prioritize traffic to the few IP addresses.
2. Everyone else should get a fair amount of bandwidth
The problem I am facing is when I run this script is that the bandwidth
seems to get halved. I tried to apply this script to a site where the
upstream and downstream were fully saturated. I immediately saw