[LARTC] basic error?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux