LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-12-2004, 06:02 AM   #1
zsoltrenyi
Member
 
Registered: May 2004
Distribution: redhat, trustix, debian
Posts: 103

Rep: Reputation: 15
traffic shaping with htb


hi everybody
i'm trying to do some traffic shaping with the tc commands using HTB algoritm
my problem is that every packet is directed to the default qdisc (1:20)
i have the impression that none of my filters aply
i have theese filters:
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.1.101/32 flowid 1:10
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.1.108/32 flowid 1:10
i don't know what's wrong so any help would be appreciated
thanks
 
Old 11-12-2004, 08:11 AM   #2
bruj3w
Member
 
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Rep: Reputation: 30
filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.0.1 0xffff flowid 1:10
filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.1.1 0xffff flowid 1:20

try that, obviously change the interface / ip's / flow id's to whatever you need them to be.

$> tc -s qdisc ls dev eth0 is a very handy command for this sort of thing ;>
 
Old 11-12-2004, 09:17 AM   #3
zsoltrenyi
Member
 
Registered: May 2004
Distribution: redhat, trustix, debian
Posts: 103

Original Poster
Rep: Reputation: 15
thank's guys
i resolved it by marking packages with iptables
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Help Using HTB to handle VoiP Traffic kp1 Linux - Networking 2 05-07-2005 07:54 AM
Traffic shaping shy Linux - Networking 2 11-30-2004 09:51 AM
shaping scripts - htb.init ... confusion ? :( mikero Linux - Networking 0 02-17-2004 05:05 AM
traffic shaping htb SchwipSchwap Linux - Networking 1 08-28-2003 03:17 PM


All times are GMT -5. The time now is 05:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration