problemik z cbq

Adam Zaleski netlest w dione.ids.pl
Nie, 3 Paź 2004, 20:39:27 CEST



 Hej

Mam pld 2.0 i chcialem sobie zrobic prosty skrypcik z cbq
ale nie chce mi dzialac ;-( Czy kos moglby pomoc?
Mam tak:


eth0      Link encap:Ethernet  HWaddr 00:40:63:D5:05:BA
          inet addr:10.0.0.2  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::240:63ff:fed5:5ba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:78335 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64486 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:91249136 (87.0 Mb)  TX bytes:6667273 (6.3 Mb)
          Interrupt:10 Base address:0x4000

eth1      Link encap:Ethernet  HWaddr 00:50:04:F7:6B:C5
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::250:4ff:fef7:6bc5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:202257 errors:0 dropped:0 overruns:0 frame:0
          TX packets:269199 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:32843812 (31.3 Mb)  TX bytes:322882318 (307.9 Mb)
          Interrupt:11 Base address:0xec00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:182 errors:0 dropped:0 overruns:0 frame:0
          TX packets:182 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:14498 (14.1 Kb)  TX bytes:14498 (14.1 Kb)

[root w samuel ~]# cat cbq
/sbin/modprobe cls_fw
/sbin/modprobe cls_rsvp
/sbin/modprobe cls_rsvp6
/sbin/modprobe cls_u32
/sbin/modprobe sch_cbq
/sbin/modprobe sch_prio
/sbin/modprobe sch_sfq

/sbin/tc qdisc del dev eth1 root 1>/dev/null
/sbin/tc qdisc add dev eth1 root handle 1:0 cbq bandwidth 10mbit avpkt 1000 mpu 64

/sbin/tc qdisc del dev eth0 root 1> /dev/null
/sbin/tc qdisc add dev eth0 root handle 2:0 cbq bandwidth 10mbit avpkt 1000 mpu 64

/sbin/tc qdisc add dev eth1 parent 1:2 sfq quantum 1500b perturb 5
/sbin/tc class add dev eth1 parent 1:0 classid 1:2 cbq bandwidth 10mbit rate 120kbit allot 1504b weight 10 prio 2 avpkt 1000 bounded

/sbin/tc filter add dev eth1 parent 1:0 protocol ip prio 10 u32 match ip dst 192.168.1.2 flowid 1:2
[root w samuel ~]# ./cbq
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
[root w samuel ~]#

[root w samuel ~]# rpm -q kernel
kernel-2.6.7-3
[root w samuel ~]#



Czemu mam ciagle to RTNETLINK
ten skrypt mi zawsze dzialał..


pozdrawiam
Adam Zaleski





Więcej informacji o liście dyskusyjnej pld-users-pl