LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-16-2003, 02:32 PM   #1
saturn_vk
Member
 
Registered: Feb 2003
Location: Sofia
Distribution: slackware
Posts: 104

Rep: Reputation: 15
Exclamation i'm hitting the concrete wall with tc! yelp me!


hi guys/gals, im trying to set up a sort of equally distributed limited bandwidth. i use the latest iproute2 package, and have decided to use HTB for the queuing.

i have used the tc binary provided by the HTB webside, and i have read their manual. however, im hitting the wall hard!
i've made a simple script, so i can have these rules every time the computer reboots.

here's the script:
Code:
#!/bin/sh
tc qdisc add dev eth1 root handle 1: htb default 100
tc class add dev eth1 parent 1: classid 1:1 htb rate 256kbps ceil 256kbps
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 80kbps ceil 256kbps  #may
tc class add dev eth1 parent 1:1 classid 1:20 htb rate 80kbps ceil 256kbps  #sat
tc class add dev eth1 parent 1:1 classid 1:30 htb rate 80kbps ceil 256kbps  #kap
tc class add dev eth1 parent 1:1 classid 1:40 htb rate 80kbps ceil 256kbps  #xp1
tc class add dev eth1 parent 1:1 classid 1:50 htb rate 80kbps ceil 256kbps
# 
tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth1 parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev eth1 parent 1:30 handle 30: sfq perturb 10
tc qdisc add dev eth1 parent 1:40 handle 40: sfq perturb 10
tc qdisc add dev eth1 parent 1:50 handle 50: sfq perturb 10
# 
U32="tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32"
$U32 match ip src 192.168.0.1 flowid 1:10
$U32 match ip src 192.168.0.2 flowid 1:20
$U32 match ip src 192.168.0.7 flowid 1:30
$U32 match ip src 192.168.0.6 flowid 1:40
now i've hard-copied everything from the lartc and htm howto/manual, only changing the desired numbers.

well it bombs on the last 4 commands, telling me this:
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument

what am i missing here? how can i fix it? without the filters there's not much use for traffic shaping now is there

plz help me


Last edited by saturn_vk; 04-17-2003 at 12:46 AM.
 
Old 04-17-2003, 06:12 AM   #2
saturn_vk
Member
 
Registered: Feb 2003
Location: Sofia
Distribution: slackware
Posts: 104

Original Poster
Rep: Reputation: 15
anyone, please
 
Old 02-02-2004, 03:33 PM   #3
drewthetux
LQ Newbie
 
Registered: Aug 2003
Posts: 5

Rep: Reputation: 0
Check if ur kernel is htb ready and u have all needed module install:

# lsmod
Module Size Used by
sch_ingress 3972 0
cls_u32 7812 21
sch_sfq 5376 4
sch_htb 24800 1
 
  


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
Sata Raid + IDE = it won't install *head hitting wall* m0ngos3 Slackware - Installation 3 01-23-2005 04:09 PM
How to get it known what processor and memory resources using by the concrete process ukrainet Linux - Newbie 3 12-20-2004 06:41 AM
concrete path of links secprovider Linux - Newbie 3 03-30-2004 02:58 PM
Installation - Hitting a brick wall stuseed Red Hat 1 12-23-2003 07:01 PM
how to install cdrtools and xcdroast? (concrete solutions only) szmartby Linux - Software 2 09-14-2003 09:40 PM


All times are GMT -5. The time now is 12:31 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