This section provides an example for configuring maximum bandwidth for each IP address to restrict the bandwidth available for each enterprise employee to access the Internet and to limit the maximum available bandwidth for intranet servers to provide services externally.
As shown in Figure 1, employees access the Internet through Source NAT, and intranet Web servers provide services through NAT Server for Internet users. In peak hours, when Internet users access the Web servers, the web pages and pictures fail to be displayed completely. On the other hand, when the Web servers suffer from burst access, the Internet access experience of enterprise employees is also compromised.
To ensure that employees can access the Internet properly and the Web servers can provide services properly for Internet users, the enterprise requires to enable the bandwidth management function on the FW to meet the following requirements:
This section provides only the script related to the example.
# sysname FW # time-range rush_time period-range 15:00:00 to 18:00:00 working-day # interface GigabitEthernet0/0/1 undo shutdown ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/2 undo shutdown ip address 10.2.0.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 # firewall zone dmz set priority 50 add interface GigabitEthernet0/0/2 # traffic-policy profile profile_surf bandwidth maximum-bandwidth whole downstream 60000 bandwidth maximum-bandwidth per-ip downstream 2000 profile profile_websvr bandwidth maximum-bandwidth whole downstream 40000 bandwidth maximum-bandwidth per-ip downstream 10000 rule name policy_surf source-zone trust destination-zone untrust source-address 10.3.0.0 24 time-range rush_time action qos profile profile_surf rule name policy_websvr source-zone untrust destination-zone dmz destination-address range 10.2.0.2 10.2.0.5 action qos profile profile_websvr