(Optional) Configuring an ACL IP Address Pool
Context
In typical ACL usage scenarios, for example, in the policy-based routing scenario, both the source and destination IP addresses need to be matched. To implement policy-based routing using ACL rules to match both source and destination IP addresses carried in packets, specify all possible combinations of source IP addresses and destination IP addresses when configuring ACL rules. However, these combinations are over 10 thousands on a large-scale network. It is unreasonable to configure manually all ACL rules that match both source and destination IP addresses carried in packets.
In scenarios in which ACL rules are used to match both source and destination IP addresses carried in packets, run the acl ip-pool command to create an ACL source IP address pool (which includes all needed IP addresses) and an ACL destination IP address pool (which includes all needed destination IP addresses), respectively.
Procedure
- Run system-view
The system view is displayed.
- Run acl ip-pool pool-name
An ACL IP address pool is created and the IP address pool view is displayed.
- Run ip address ip-address { mask | mask-length }
An IP address is added to an ACL IP address pool.
- Run commit
The configuration is committed.