ZyXEL Communications 4.04 Network Card User Manual


 
Chapter 6 Bandwidth Management Commands
ZyWALL (ZyNOS) CLI Reference Guide
44
The following section lists the commands for this feature.
Table 20 Bm Interface Commands
COMMAND DESCRIPTION M
bm interface <interface>
<enable|disable> [bandwidth <bps>]
[prr|wrr] [efficient]
Enables or disables BWM for traffic going out of the
specified interface.
bps: The unit is bps and its minimum is 2000. You can
alternatively type “K” or “k” to specify kbps while “M” or
“m” to specify Mbps. If you do not specify the bandwidth,
the default value is 100 Mbps.
prr|wrr: Sets the queuing mechanism to fairness-
based (WRR) or priority-based (PRR).
efficient: Turns on the Maximum Bandwidth Usage
option.
R+B
bm class <interface> <add|del|mod>
<class-number> [bandwidth <bps>]
[name <class_name>] [priority <x>]
[borrow <on|off>]
Adds, deletes, or modifies a class for the specified
interface with the specified bandwidth. You can also
configure other options including name, priority, or
bandwidth borrowing.
add|del|mod: Adds, deletes, or modifies the class.
When you delete a class, it also deletes its sub-classes.
bandwidth <bps>: Uses this command when you add
or modify a class. The unit is bps and its minimum is
2000. You can alternatively type “K” or “k” to specify kbps
while “M” or “m” to specify Mbps.
name <class_name>: The name is for your information.
priority <x>: Sets the class priority ranging from 0
(the lowest) to 7 (the highest).
borrow <on|off>: The class can borrow bandwidth
from its parent class when the borrow is set on, and vice
versa.
R+B
bm monitor <interface> [class-number] Displays the bandwidth usage of the specified interface
or its class. The first time you use the command turns it
on; the second time turns it off, and so on.
R+B
bm filter <interface> add <class-
number> [service <type>]
<single|range|subnet> <dst-start-ip>
[dst-end-ip] <dport> <dportend>
<single|range|subnet> <src-start-ip>
[src-end-ip] <sport> <sportend>
<protocol>
Adds a filter for the specified class. The filter contains
destination address (netmask), destination port, source
address (netmask), source port and protocol. Use 0 to
not include items in the filter.
service <type>: This is service type including ftp, sip,
or h323 in lower cases.
Following are the settings for filter rule's destination
address.
single|range|subnet
dst-start-ip
dst-end-ip
dport
dportend
Following are the settings for filter rule's source address.
single|range|subnet
src-start-ip
src-end-ip
sport
sportend
dst-end-ip, src-end-ip: When you configure a
single address, you don't need to specify these options.
When you configure a range address, these are network
ending IP address. When you configure a subnet, these
are subnet mask, ex. 255.255.255.0.
R+B