ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey S. Kuznetsov" <buster@vostok.net.ua>
To: community@altlinux.ru
Subject: [Comm] IP-UP TROUBLES
Date: Wed, 30 Jun 2004 10:06:40 +0300
Message-ID: <401633771.20040630100640@vostok.net.ua> (raw)

Привет всем!
 Такая проблема, есть скрипт ip-up, который выполняется при порднятии
 pppd демона. Этот скрипт редиректит на другой скрипт в этом же
 каталоге, скажем ip-up-2 c параметром интерфейса, например exec
 ip-up-2 $1 (где $1 - например ppp0).
 Файл ip-up-2 состоит из такого рода комманд:
 IF=$1
 echo $IF > /etc/ppp/log
 После установкуи соединения, всё прекрасно работает, создаётся файл
 log и туда записывается имя текущего интефейса, скажем ppp0.
 
 Но вот что мне реально нужно сделать; в файл ip-up-2 я зхакидываю вот
 такой фрагмент:
tc qdisc add dev $IF root handle 1: htb default 30
tc class add dev $IF parent 1: classid 1:1 htb rate 64kbit burst 56kbit
tc class add dev $IF parent 1:1 classid 1:10 htb rate 64kbit ceil 256kbit burst 256kbit
tc class add dev $IF parent 1:1 classid 1:20 htb rate 64kbit ceil 256kbit burst 256kbit
tc class add dev $IF parent 1:1 classid 1:30 htb rate 64kbit burst 32kbit
tc qdisc add dev $IF parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev $IF parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev $IF parent 1:30 handle 30: sfq perturb 10
U32="tc filter add dev $IF protocol ip parent 1:0 prio 1 u32"
$U32 match ip sport 25 0xffff flowid 1:10
$U32 match ip sport 110 0xffff flowid 1:20 

и после поднятия интерфейса (установки соединения) эти комманды не
выполняются, и что самое интересное, когда этот скрипт запустить в
ручную, в то время, когда установлено соединение всё прекрасно
поднимается, все дисциплины и классы прописываются.

В чём же может быть проблема?

-- 
Sincerely,
 Alexey S. Kuznetsov    
 AK2351-RIPE



             reply	other threads:[~2004-06-30  7:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-30  7:06 Alexey S. Kuznetsov [this message]
2004-06-30  9:58 ` Alexey S. Kuznetsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=401633771.20040630100640@vostok.net.ua \
    --to=buster@vostok.net.ua \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git