ZyXEL Communications 4.04 Network Card User Manual


 
Chapter 6 Bandwidth Management Commands
ZyWALL (ZyNOS) CLI Reference Guide
49
This example adds a filter on the LAN subclass using following settings.
Class number: 1.5
Destination address: Single, 10.1.1.20, FTP ports from 20 to 21.
Source address: Subnet, 192.168.1.0/24, any port.
Protocol: any protocol.
This example monitors the runtime situation for all WAN classes.
Each interface has one root class (0) and one default class (99). In this example, you can see
only one user-defined class (1). The root class (0) displays total traffic amount for the WAN
interface. The current bandwidth usage matching to the class 1 rule is 500Kb. For traffic that
doesn't match any user-defined class rule, it is counted in the default class (99).
ras> bm config load
ras> bm filter lan add 1.5 single 10.1.1.20 20 21 subnet 192.168.1.0
255.255.255.0 0 0 0
Filter setting is done.
ras> bm config save
ras> bm show filter lan
===============================================================================
Class 1.5 Name: LAN-FTP
Protocol: 0
Destination type: SINGLE
Destination address: 10.1.1.20/10.1.1.20
Destination port: 20~21
Source type: SUBNET
Source address: 192.168.1.0/255.255.255.0
Source port: 0~0
===============================================================================
Class 99 Name: Default Class
Protocol: 0
Destination type: SINGLE
Destination address: 0.0.0.0/0.0.0.0
Destination port: 0~0
Source type: SINGLE
Source address: 0.0.0.0/0.0.0.0
Source port: 0~0
===============================================================================
ras>
ras> bm monitor wan
WAN - 0: 500Kb 1: 500Kb 99: 0b
WAN - 0: 500Kb 1: 500Kb 99: 0b
WAN - 0: 500Kb 1: 500Kb 99: 0b
WAN - 0: 900Kb 1: 500Kb 99: 400b
WAN - 0: 900Kb 1: 500Kb 99: 400b