Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] basic error?
@ 2001-10-12 15:31 Daniel Andersson
  0 siblings, 0 replies; only message in thread
From: Daniel Andersson @ 2001-10-12 15:31 UTC (permalink / raw)
  To: lartc

hello

just read the howto and copied the example in the howto.
(appended in the bottom of this email)

but it won't work.

i'm running slackware 7.0 with linux 2.4.3 and iproute2-current (downloaded
today)
the kernel is configured with,
<*> Packet socket
[*]   Packet socket: mmapped IO
[*] Kernel/User netlink socket
[*]   Routing messages
<*>   Netlink device emulation

<M> Userspace queueing via NETLINK (EXPERIMENTAL)

etc.
(those looked like the things i would need)


the error i'm getting is
RTNETLINK answers: Invalid argument
(for every line in the rc.firewall_qos)


am i missing something really obvious?


thanks in advance

/ d



Appendix 1

rc.firewall_qos
[----]

# DOWNSTREAM
tc qdisc add dev eth1 root handle 10: cbq bandwidth 512Kbit avpkt 1000

tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 512Kbit rate \
  512Kbit allot 1514 weight 51Kbit prio 8 maxburst 20 avpkt 1000

tc class add dev eth1 parent 10:1 classid 10:100 cbq bandwidth 512Kbit rate
\
  400Kbit allot 1514 weight 40Kbit prio 5 maxburst 20 avpkt 1000 \
  bounded

tc class add dev eth1 parent 10:1 classid 10:200 cbq bandwidth 512Kbit rate
\
  112Kbit allot 1514 weight 200Kbit prio 5 maxburst 20 avpkt 1000 \
  bounded


tc qdisc add dev eth1 parent 10:100 sfq quantum 1514b perturb 15
tc qdisc add dev eth1 parent 10:200 sfq quantum 1514b perturb 15


tc filter add dev eth1 parent 10:0 protocol ip prio 25 u32 match ip dst \
  192.168.1.5 flowid 10:200

tc filter add dev eth1 parent 10:0 protocol ip prio 100 u32 match ip dst \
  62.31.233.52 flowid 10:100



# UPSTREAM
tc qdisc add dev eth0 root handle 20: cbq bandwidth 512Kbit avpkt 1000

tc class add dev eth0 parent 20:0 classid 20:1 cbq bandwidth 512Kbit rate \
  512Kbit allot 1514 weight 100Kbit prio 8 maxburst 20 avpkt 1000

tc class add dev eth0 parent 20:1 classid 20:100 cbq bandwidth 512Kbit rate
\
  400Kbit allot 1514 weight 40Kbit prio 5 maxburst 20 avpkt 1000 \
  bounded

tc class add dev eth0 parent 20:1 classid 20:200 cbq bandwidth 512Kbit rate
\
  112Kbit allot 1514 weight 20Kbit prio 5 maxburst 20 avpkt 1000 \
  bounded

tc qdisc add dev eth0 parent 20:100 sfq quantum 1514b perturb 15
tc qdisc add dev eth0 parent 20:200 sfq quantum 1514b perturb 15

tc filter add dev eth0 parent 20:0 protocol ip prio 25 u32 match ip src \
  192.168.1.5 flowid 20:200

tc filter add dev eth0 parent 20:0 protocol ip prio 100 u32 match ip src \
  62.31.233.52 flowid 20:100



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-12 15:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-12 15:31 [LARTC] basic error? Daniel Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox