From: Yury Pimenov <up@msh.lv>
To: lartc@vger.kernel.org
Subject: [LARTC] problem w fwmark
Date: Fri, 09 Nov 2001 15:48:04 +0000 [thread overview]
Message-ID: <marc-lartc-100532260019177@msgid-missing> (raw)
Hello lartc,
I have such configuration
[ ] [ ]
= eth0 - Shaper - eth1 ==== - 192.168.0.10 ]
[ ] [ ]
And I running this script, but it doesn't work until I uncomment last
2 lines. After I do this, I fill shaper does work. So how you think
what I did wrong?
Note: I loaded all of needed modules and no warnings or errors printed when I run
the script. Kernel 2.4.12.
#!/bin/bash
iptables -t mangle -A PREROUTING -s 192.168.0.10 -j MARK --set-mark 1
iptables -t mangle -A PREROUTING -d 192.168.0.10 -j MARK --set-mark 1
# eth0
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 10Mbit avpkt 1000 cell 8
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate 10Mbit weight 1Mbit prio 8 allot 1514 cell 8 maxburst
20 avpkt 1000
tc class add dev eth0 parent 1:1 classid 1:28 cbq bandwidth 10Mbit rate 128Kbit weight 2Kbit prio 5 allot 1514 cell 8
maxburs
t 20 avpkt 1000 bounded
# eth1
tc qdisc add dev eth1 root handle 1:0 cbq bandwidth 10Mbit avpkt 1000 cell 8
tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate 10Mbit weight 1Mbit prio 8 allot 1514 cell 8 maxburst
20 avpkt 1000
tc class add dev eth1 parent 1:1 classid 1:128 cbq bandwidth 10Mbit rate 28Kbit weight 2Kbit prio 5 allot 1514 cell 8
maxburs
t 20 avpkt 1000 bounded
tc filter add dev eth1 protocol ip parent 1:0 prio 100 handle 0x1 fw classid 1:128
tc filter add dev eth0 protocol ip parent 1:0 prio 100 handle 0x1 fw classid 1:28
#tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.0.10 flowid 1:128
#tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip src 192.168.0.10 flowid 1:28
--
Bye
--------------------------
Q: Want to find more?
A: Try http://ftpsearch.lv
--
Bye
--------------------------
Q: Want to find more?
A: Try http://ftpsearch.lv
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
reply other threads:[~2001-11-09 15:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=marc-lartc-100532260019177@msgid-missing \
--to=up@msh.lv \
--cc=lartc@vger.kernel.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox