I am finding a problem with using many interfaces (11+) with a Shorewall
w/ Traffic Control implementation. I''ve search the mailing list and web
and have found no one reporting this problem.> Version Shorewall 3.0.4 (Debian/Ubuntu distribution)
> The Router has 44 interfaces (3 physical NICs using VLANs) eth0, eth1.100 -
eth1.120, eth2.201 - eth2.221, eth2.13
>
> We get an "RTNETLINK answers: File exists" error as soon as the
11th interface classes are being defined.
>
> The problem seems to be due to the tc queues being defined with a 11:
default queue, so as soon as the 11th interface''s classes are defined
(classid 11:11) it conflict with the 11: default. here is a copy of the Debug
trace where the problem happens.
>
> ...
> {here is interface #1 (eth0) tc commands}
>
> ++ tc class add dev eth0 parent 1:1 classid 1:11 htb rate 256kbit ceil
256kbit p
> rio 1 quantum 3276
> ++ tc qdisc add dev eth0 parent 1:11 handle 11: sfq perturb 10
>
> ...
> {here is interface #10''s (eth1.108) tc commands}
>
> ++ tc class add dev eth1.108 parent 10:1 classid 10:11 htb rate 8kbit ceil
512kb
> it prio 2 quantum 1500
> ++ tc qdisc add dev eth1.108 parent 10:11 handle 11: sfq perturb 10
>
> ...
> {and interface #11}
>
> + ensure_and_save_command tc class add dev eth1.109 parent 11:1 classid
11:11 ht
> b rate 8kbit ceil 512kbit prio 2 quantum 1500
> + eval tc class add dev eth1.109 parent 11:1 classid 11:11 htb rate 8kbit
ceil 5
> 12kbit prio 2 quantum 1500
> ++ tc class add dev eth1.109 parent 11:1 classid 11:11 htb rate 8kbit ceil
512kb
> it prio 2 quantum 1500
> + echo tc class add dev eth1.109 parent 11:1 classid 11:11 htb rate 8kbit
ceil 5
> 12kbit prio 2 quantum 1500
> + ensure_and_save_command tc qdisc add dev eth1.109 parent 11:11 handle 11:
sfq
> perturb 10
> + eval tc qdisc add dev eth1.109 parent 11:11 handle 11: sfq perturb 10
> ++ tc qdisc add dev eth1.109 parent 11:11 handle 11: sfq perturb 10
> RTNETLINK answers: File exists
>
> ...
>
> Can someone confirm this problem?
>
> All of the other queue numbers seem to be incrementing beyond 11 but for
some reason the default queue is being defined as 11: not 45: as would be
expected.
>
> Here is a copy of the tcdevices and tcclasses files (no tcrules file needed
as we only have default classes for each interface)
>
> TCDEVICES:
> #INTERFACE IN OUT
> #Internet DSL
> eth0 2mbit 256kbit
>
> #First floor
> eth1.100 256kbit 2mbit
> eth1.101 128kbit 512kbit
> eth1.102 128kbit 512kbit
> eth1.103 128kbit 512kbit
> eth1.104 128kbit 512kbit
> eth1.105 128kbit 512kbit
> eth1.106 128kbit 512kbit
> eth1.107 128kbit 512kbit
> eth1.108 128kbit 512kbit
> eth1.109 128kbit 512kbit
> eth1.110 128kbit 512kbit
> eth1.111 128kbit 512kbit
> eth1.112 128kbit 512kbit
> eth1.113 128kbit 512kbit
> eth1.114 128kbit 512kbit
> eth1.115 128kbit 512kbit
> eth1.116 128kbit 512kbit
> eth1.117 128kbit 512kbit
> eth1.118 128kbit 512kbit
> eth1.119 128kbit 512kbit
> eth1.120 128kbit 512kbit
>
> #Second Floor
> eth2.200 128kbit 512kbit
> eth2.201 128kbit 512kbit
> eth2.202 128kbit 512kbit
> eth2.203 128kbit 512kbit
> eth2.204 128kbit 512kbit
> eth2.205 128kbit 512kbit
> eth2.206 128kbit 512kbit
> eth2.207 128kbit 512kbit
> eth2.208 128kbit 512kbit
> eth2.209 128kbit 512kbit
> eth2.210 128kbit 512kbit
> eth2.211 128kbit 512kbit
> eth2.212 128kbit 512kbit
> eth2.213 128kbit 512kbit
> eth2.214 128kbit 512kbit
> eth2.215 128kbit 512kbit
> eth2.216 128kbit 512kbit
> eth2.217 128kbit 512kbit
> eth2.218 128kbit 512kbit
> eth2.219 128kbit 512kbit
> eth2.220 128kbit 512kbit
> eth2.221 128kbit 512kbit
>
> #Third Floor
> eth2.13 128kbit 512kbit
>
>
> TCCLASSES:
> #IFACE MARK RATE CEIL PRIO OPTIONS
> eth0 1 full full 1 default
>
> #First Floor
> eth1.100 1 24kbit full 2 default
> eth1.101 1 8kbit full 2 default
> eth1.102 1 8kbit full 2 default
> eth1.103 1 8kbit full 2 default
> eth1.104 1 8kbit full 2 default
> eth1.105 1 8kbit full 2 default
> eth1.106 1 8kbit full 2 default
> eth1.107 1 8kbit full 2 default
> eth1.108 1 8kbit full 2 default
> eth1.109 1 8kbit full 2 default
> eth1.110 1 8kbit full 2 default
> eth1.111 1 8kbit full 2 default
> eth1.112 1 8kbit full 2 default
> eth1.113 1 8kbit full 2 default
> eth1.114 1 8kbit full 2 default
> eth1.115 1 8kbit full 2 default
> eth1.116 1 8kbit full 2 default
> eth1.117 1 8kbit full 2 default
> eth1.118 1 8kbit full 2 default
> eth1.119 1 8kbit full 2 default
> eth1.120 1 8kbit full 2 default
>
> #Second Floor
> eth2.200 1 8kbit full 2 default
> eth2.201 1 8kbit full 2 default
> eth2.202 1 8kbit full 2 default
> eth2.203 1 8kbit full 2 default
> eth2.204 1 8kbit full 2 default
> eth2.205 1 8kbit full 2 default
> eth2.206 1 8kbit full 2 default
> eth2.207 1 8kbit full 2 default
> eth2.208 1 8kbit full 2 default
> eth2.209 1 8kbit full 2 default
> eth2.210 1 8kbit full 2 default
> eth2.211 1 8kbit full 2 default
> eth2.212 1 8kbit full 2 default
> eth2.213 1 8kbit full 2 default
> eth2.214 1 8kbit full 2 default
> eth2.215 1 8kbit full 2 default
> eth2.216 1 8kbit full 2 default
> eth2.217 1 8kbit full 2 default
> eth2.218 1 8kbit full 2 default
> eth2.219 1 8kbit full 2 default
> eth2.220 1 8kbit full 2 default
> eth2.221 1 8kbit full 2 default
>
> #Third floor
> eth2.13 1 8kbit full 2 default
>
>
> Thank you for your assistance,
>
> David Fulgham.
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net''s Techsay panel and you''ll get the chance
to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV