Andrej wrote:
> Yes it is right !!! Idea to change cbq files and restart CBQ
> after each reconect may work. Let us know how to, if ?!?
i'll do it like in the dyndns scripts. something like this:
#!/usr/bin/perl
chop($ip = /sbin/ifconfig ppp0 | /bin/grep inet | /usr/bin/cut -f2 -d: | /usr/bin/cut -c1-15) &&
$ip =~ s/\s+//g
but first i try to get it to work by hand - and that's still a problem..
maybe you can help me again:
my LAN has the IP range 192.168.0.1-254 on eth0 100 Mbit NIC
my Internet has dynIP (rigt now it's 212.185.245.35) on eth1 10 Mbit NIC
(which is used by ppp0)
i'd like to have full download speed (768 kbit)
on the upload side ideally i would like to have for ssh and http together 20 kbit left.. (of 128 kbit upload rate)
i have now a file /etc/sysconfig/cbq-eth0:
DEVICE=eth0,100Mbit,10Mbit
RATE=128Kbit
WEIGHT=5Kbit
PRIO=5
RULE=192.168.0.0/24,
which is definitely wrong

the file for download seems right to me:
/etc/sysconfig/cbq-eth1:
DEVICE=eth1,10Mbit,1Mbit
RATE=768Kbit
WEIGHT=768Kbit
PRIO=5
RULE=212.185.245.35
in the end, a cbq start brings
**CBQ: can't discover eth0 bandwidth or weight.
**CBQ: Setup DEVICE field!
what's wrong?
PAT