James Lupolt
2004-05-25 06:13:31 UTC
Hi all,
I am having some difficulty writing a script to add queues and any help
would be much appreciated.
Here is the script I am using (with dummy IP addresses substituted):
:for e from=140 to=190 step=1 do={
/queue simple add name=(127.0.0. . $e) \
dst-address=(127.0.0. . $e) interface=wireless \
limit-at=262144/262144 max-limit=524288/262144 \
burst-limit=2621440/1048576 burst-threshold=524288/262144 burst-time=10/10
}
It does successfully add the rules, however the problem is I cannot figure
out how to add the /32 to the dst-address, so all rules are created with a
/0 subnet mask. Could someone let me know the syntax to do this correctly?
For example "add name=(66.234.175. . $e)/32" does not work, and neither
does "add name=(66.234.175. . $e"/32")" etc.
Thank you!
James Lupolt
2Fast Communications
www.2fastcom.com
_______________________________________________
ALL POSTS SHOULD BE ABOUT GENERAL ROUTEROS QUESTIONS
To post to the list, address emails to ***@bruno.pmi.lv
To unsubscribe/subscribe: email to RouterOS-***@bruno.pmi.lv ,
with text in the body "unsubscribe <password>" or "subscribe"
I am having some difficulty writing a script to add queues and any help
would be much appreciated.
Here is the script I am using (with dummy IP addresses substituted):
:for e from=140 to=190 step=1 do={
/queue simple add name=(127.0.0. . $e) \
dst-address=(127.0.0. . $e) interface=wireless \
limit-at=262144/262144 max-limit=524288/262144 \
burst-limit=2621440/1048576 burst-threshold=524288/262144 burst-time=10/10
}
It does successfully add the rules, however the problem is I cannot figure
out how to add the /32 to the dst-address, so all rules are created with a
/0 subnet mask. Could someone let me know the syntax to do this correctly?
For example "add name=(66.234.175. . $e)/32" does not work, and neither
does "add name=(66.234.175. . $e"/32")" etc.
Thank you!
James Lupolt
2Fast Communications
www.2fastcom.com
_______________________________________________
ALL POSTS SHOULD BE ABOUT GENERAL ROUTEROS QUESTIONS
To post to the list, address emails to ***@bruno.pmi.lv
To unsubscribe/subscribe: email to RouterOS-***@bruno.pmi.lv ,
with text in the body "unsubscribe <password>" or "subscribe"