An address book can grow to contain large numbers of addresses and become difficult to manage. To manage an address book with large numbers of addresses, you can create groups of addresses called address sets. You can reference an address set in a policy as you would an individual address book entry.
The following example shows addresses and address sets in the green zone:
- user@host# set security zones security-zone green address-book
address src_addr1 64.10.4.44/32
- user@host# set security zones security-zone green address-book
address src_addr2 64.10.9.28/32
- user@host# set security zones security-zone green address-book
address src_addr3 10.10.10.10/24
- user@host# set security zones security-zone green address-book
address bbc dns-name www.bbc.com
- user@host# set security zones security-zone green address-book
address-set my_source_addresses address src_addr1
- user@host# set security zones security-zone green address-book
address-set my_source_addresses address src_addr2
- user@host# set security zones security-zone green address-book
address-set my_source_addresses address src_addr3
For more information on the address set configuration syntax and options, see the JUNOS Software CLI Reference
![]() |
Note: Consider that for each address set, the system creates individual rules for its members. It creates an internal rule for each member in the group as well as for each service configured for each user. If you configure address books without taking this into account, you can exceed the number of available policy resources, especially if both the source and destination addresses are address groups and the specified service is a service group. |
When you add addresses to policies, sometimes the same subset of addresses can be present in multiple policies, making it difficult to manage how policies affect each address entry. JUNOS software allows you to create groups of addresses called address sets. Address sets simplify the process by allowing you to add multiple addresses within an address set and therefore manage a small number of address sets, rather than manage a large number of individual address entries. See Figure 136.
Figure 136: Address Sets

The address set option has the following features:
![]() |
Note: JUNOS software applies policies automatically to each address set member, so you do not have to create them one by one for each address. Furthermore, JUNOS software writes these policies to ASIC, which makes lookups run very fast. |
The following constraints apply to address sets: