Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "h l" <roninhao@yahoo.com.cn>
To: lartc@vger.kernel.org
Subject: [LARTC] help : how can i do this bandwidth control
Date: Tue, 13 May 2003 07:02:43 +0000	[thread overview]
Message-ID: <marc-lartc-105280942622237@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 858 bytes --]


eth0 : connect to internet (address 192.168.1.1)

eth1 : connect local Lan (address 192.168.2.1)

eth2 : connect to DMZ (address 192.168.3.1)

i wanna to control bandwidth of which user in Lan access internet;how could i do it ?

i had do like follow:

tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8 mpu 64
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate 100Mbit avpkt 1000 cell 8 mpu 64
tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 1Mbit avpkt 1000 cell 8 mpu64 split 1:0 bounded
tc filter add dev eth0 parent 1:0 protocol ip prio 2 u32 match ip dst 192.168.2.113 flowid 1:2

but it's didn't work ;why ? who can tell me ,thanks in advance



---------------------------------
Do You Yahoo!?
"相见不如聊天!不出门一样面对面!网络摄像头对对派送中~赶快用你的雅虎电邮帐号参与吧……

[-- Attachment #2: Type: text/html, Size: 981 bytes --]

             reply	other threads:[~2003-05-13  7:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-13  7:02 h l [this message]
2003-05-13 17:07 ` [LARTC] help : how can i do this bandwidth control Stef Coene

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-105280942622237@msgid-missing \
    --to=roninhao@yahoo.com.cn \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox