< Home

CLI: Example for Configuring Hierarchical Traffic Policies for Bandwidth Management on a Specific Department or on the Employees and Services of That Department

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.

Networking Requirements

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:

  • The maximum downstream bandwidth of department A cannot exceed 60 Mbit/s.
  • The maximum downstream bandwidth of sales employees in department A cannot exceed 30 Mbit/s.
  • The minimum downstream bandwidth for email and ERP traffic of sales employees in department A cannot be lower than 20 Mbit/s.
Figure 1 Networking diagram for configuring hierarchical traffic policies for bandwidth management on a specific department or the employees and services of that department

Configuration Roadmap

  1. Set interface IP addresses and assign the interfaces to security zones.
  2. Configure a traffic policy for department A and reference the traffic profile in which the overall maximum downstream bandwidth is 60 Mbit/s.
  3. Configure a traffic policy for the sales employees in department A, use the traffic policy for department A as its parent policy, and reference the traffic profile in which the overall maximum downstream bandwidth is 30 Mbit/s.
  4. Configure a traffic policy for the email and ERP traffic of the sales employees in department A, use the traffic policy for the sales employees in department A as its parent policy, and reference the traffic profile in which the overall guaranteed downstream bandwidth is 20 Mbit/s.
  • Upstream and downstream depend on the direction of FW bandwidth policy. For simplicity, upstream refers to the direction from Trust to Untrust, and downstream refers to Untrust to DMZ in this section.
  • Assuming that the security zones, routers, and security policies have been configured, this section introduces only how to configure bandwidth management.

Procedure

  1. Set interface IP addresses and assign the interfaces to security zones.
    1. Set an IP address for interface GigabitEthernet 0/0/1 and assign the interface to the untrust zone.

      <FW> system-view
      [FW] interface GigabitEthernet 0/0/1
      [FW-GigabitEthernet0/0/1] ip address 1.1.1.1 24
      [FW-GigabitEthernet0/0/1] quit
      [FW] firewall zone untrust
      [FW-zone-untrust] add interface GigabitEthernet 0/0/1
      [FW-zone-untrust] quit
      

    2. Set an IP address for interface GigabitEthernet 0/0/3 and add the interface to the trust zone.

      [FW] interface GigabitEthernet 0/0/3
      [FW-GigabitEthernet0/0/3] ip address 10.3.0.1 24
      [FW-GigabitEthernet0/0/3] quit
      [FW] firewall zone trust
      [FW-zone-trust] add interface GigabitEthernet 0/0/3
      [FW-zone-trust] quit
      

  2. Configure a traffic profile for department A.

    [FW] traffic-policy
    [FW-policy-traffic] profile profile_dep_a
    [FW-policy-traffic-profile-profile_dep_a] bandwidth maximum-bandwidth whole downstream 60000
    [FW-policy-traffic-profile-profile_dep_a] quit
    

  3. Configure bandwidth management for department A.

    In the example, user authentication configuration for department A (dep_a) and sales employees in department A (dep_a_sale) has been completed.

    [FW-policy-traffic] rule name policy_dep_a
    [FW-policy-traffic-rule-policy_dep_a] source-zone trust
    [FW-policy-traffic-rule-policy_dep_a] destination-zone untrust
    [FW-policy-traffic-rule-policy_dep_a] user user-group /default/dep_a
    [FW-policy-traffic-rule-policy_dep_a] action qos profile profile_dep_a
    [FW-policy-traffic-rule-policy_dep_a] quit
    

  4. Configure a traffic profile for sales employees in department A.

    [FW-policy-traffic] profile profile_dep_a_sale
    [FW-policy-traffic-profile-profile_dep_a_sale] bandwidth maximum-bandwidth whole downstream 30000
    [FW-policy-traffic-profile-profile_dep_a_sale] quit
    

  5. Configure bandwidth management for sales employees in department A.

    [FW-policy-traffic] rule name policy_dep_a_sale parent policy_dep_a
    [FW-policy-traffic-rule-policy_dep_a_sale] source-zone trust
    [FW-policy-traffic-rule-policy_dep_a_sale] destination-zone untrust
    [FW-policy-traffic-rule-policy_dep_a_sale] user user-group /default/dep_a_sale
    [FW-policy-traffic-rule-policy_dep_a_sale] action qos profile profile_dep_a_sale
    [FW-policy-traffic-rule-policy_dep_a_sale] quit
    

  6. Configure a traffic profile for the email and ERP traffic of the sales employees in department A.

    [FW-policy-traffic] profile profile_dep_a_sale_email
    [FW-policy-traffic-profile-profile_dep_a_sale_email] bandwidth guaranteed-bandwidth whole downstream 20000
    [FW-policy-traffic-profile-profile_dep_a_sale_email] quit
    

  7. Configure bandwidth management for the email and ERP traffic of the sales employees in department A.

    The following example describes the bandwidth management configuration for Outlook Web Access and LotusNotes. You can specify other P2P services as required.

    [FW-policy-traffic] rule name policy_dep_a_sale_email parent policy_dep_a_sale
    [FW-policy-traffic-rule-policy_dep_a_sale_email] source-zone trust
    [FW-policy-traffic-rule-policy_dep_a_sale_email] destination-zone untrust
    [FW-policy-traffic-rule-policy_dep_a_sale_email] application app LotusNotes OWA
    [FW-policy-traffic-rule-policy_dep_a_sale_email] action qos profile profile_dep_a_sale_email
    [FW-policy-traffic-rule-policy_dep_a_sale_email] quit
    

Configuration Scripts

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                                   
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >