This section provides an example for configuring hierarchical traffic policies to control bandwidth of different departments, different employees in each department, and different services used by employees.
As shown in Figure 1, an enterprise has department A. Department A includes sales and R&D employees. The sales employees need to use email and ERP applications.
The enterprise requires to enable the bandwidth management function on the FW to assign bandwidth resources available for department A and further assign these bandwidth resources to the sales employees in the department, so that the email and ERP traffic of the sales employees can be properly forwarded. Specific requirements are as follows:
This section provides only the script related to the example.
# sysname FW # interface GigabitEthernet0/0/1 undo shutdown ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/3 undo shutdown ip address 10.3.0.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # traffic-policy profile profile_dep_a bandwidth maximum-bandwidth whole downstream 60000 profile profile_dep_a_sale bandwidth maximum-bandwidth whole downstream 30000 profile profile_dep_a_sale_email bandwidth guaranteed-bandwidth whole downstream 20000 rule name policy_dep_a source-zone trust destination-zone untrust user user-group /default/dep_a action qos profile profile_dep_a rule name policy_dep_a_sale parent policy_dep_a source-zone trust destination-zone untrust user user-group /default/dep_a_sale action qos profile profile_dep_a_sale rule name policy_dep_a_sale_email parent policy_dep_a_sale source-zone trust destination-zone untrust application app LotusNotes application app OWA action qos profile profile_dep_a_sale_email