Skip to main content

Exclude an address from an IP pool and view used addresses

Exclude an address from the IP pool if a device outside Center uses it, for example a physical router: Center then does not assign this address to VMs and routers. The same network side panel shows how many addresses are free and what holds the used ones.

Before you begin​

  • Cluster master or the VDC admin who created this network can change the pool.
  • You know the address to exclude, for example 192.0.2.10. The address must be in the subnet and the pool of the network.

1. Open the network IP pool​

  1. In the left menu, select Provider Data Center → All Networks.
  2. Click the row of the network in the Networks table. The network panel opens on the right.
  3. Find the IP pool section. For an IPv4 subnet, it shows the Total number of addresses and how many of them are Free, In use and Excluded. For an IPv6 subnet, it shows the subnet Capacity and how many addresses are Assigned and Excluded.

2. Exclude an address from the pool​

  1. Click Exclude address in the IP pool section. The Exclude address window opens.
  2. Enter the address in the IP Address field, for example 192.0.2.10. If the address does not fit, the reason is shown below the field, for example The address is not in the pool or The address is already excluded.
  3. Click Exclude.

You cannot exclude the first and last addresses of an IPv4 pool: the window shows The first and last addresses of the pool cannot be excluded. The gateway address cannot be excluded either: the window shows The address is not in the pool.

If a VM already holds the address, the window warns: A VM holds this address. Excluding it does not take it back: the pool just stops giving it out again. The VM port keeps this address.

3. View what holds the addresses​

Open the Allocations section of the network panel. The table lists the addresses that are currently not available for assignment: the IP, Type (IPv4 or IPv6), Reason and Holder columns. Reasons:

  • Gateway — the gateway address of the network;
  • Issued — a VM port uses the address; Holder shows the VM name;
  • Excluded by admin — the address was excluded from the pool.

Returning an address to the pool​

  1. Find the address with the Excluded by admin reason in the Allocations section.
  2. Click Return to pool in its row. The web interface shows Address <address> returned to the pool.

Set network tags​

  1. Click Add in the header of the Tags section of the network panel.
  2. Enter the tag as key: value, for example env: prod, and press Enter.
  3. To remove a tag, click the cross icon on the tag. Tags with the vstack: prefix are set by Center and cannot be removed.
  4. Click Save at the bottom of the panel. The web interface shows Network <name> saved.

You change the network name in the same panel, in the Name field.

Check the result​

The excluded address appears in Allocations with the Excluded by admin reason, and the Excluded value in IP pool increases. A returned address disappears from Allocations.

If there are no Exclude address and Return to pool buttons, you do not have the right to change the pool of this network.

More​

  • The IPs used column of the Networks table shows how many addresses of the network are in use.
  • To filter networks by type, VDC or tag, use the Filters button above the Networks table.

Next​

API methods: net-ippool-show, net-ippool-delete, net-ippool-add, net-ippool-usage, net-tag-set, net-tag-unset — in the API reference.