Understanding Address Sets

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.0/24


user@host# set security zones security-zone green address-book address src_addr4 fa:43::/96


user@host# set security zones security-zone green address-book address src_addr5 fe80::210:dbff:feff:1000/64


user@host# set security zones security-zone green address-book address src_addr6 0001:db8:1::1/127


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


user@host# set security zones security-zone green address-book address-set my_source_addresses address src_addr4


user@host# set security zones security-zone green address-book address-set my_source_addresses address src_addr5


user@host# set security zones security-zone green address-book address-set my_source_addresses address src_addr6


user@host# show security zones security-zone green
address-book {
    address src_addr1 64.10.4.44/32;
    address src_addr2 64.10.9.28/32;
    address src_addr3 10.10.10.0/24;
    address src_addr4 fa:43::/96;
    address src_addr5 fe80::210:dbff:feff:1000/64;
    address src_addr6 0001:db8:1::1/127;
    address bbc {
        dns-name www.bbc.com;
    }
    address-set my_source_addresses {
        address src_addr1;
        address src_addr2;
        address src_addr3;
        address src_addr4;
        address src_addr5;
        address src_addr6;
    }
}

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 9.

Figure 9: Address Sets

Image Add_group.gif

The address set option has the following features:

The following constraints apply to address sets:

Related Topics