The COREmanager ipdb module includes the ipbind module that can be used for IP address management. This module works with the server's network interfaces, adds and deletes real IP addresses assigned to the network interface. This article describes how the module works on different operating systems.
Adding IP addresses
IP addresses can be added in different ways depending on its family (IPv4, IPv6), and whether the interface is configured to work with IP address from that family. When adding the first IP to the network interface you should also configure the default gateway (those parameters are provided by the ipdb module).
The system will check that the newly created IP address is assigned to the interface and can start listening (to a network port) on that address.
The following notations are used for parameters:
ifaceinterface nameif_aliasalias for interface (for Linux-based servers, for example eth0:0, eth0:1 , etc.)ipIP addressmasksubnetwork mask (prefix length for IPv6) - the ipbind module gets this parameter from ipdbgatewaysubnetwork mask- the ipbind module gets this parameter from ipdb
For adding first IP addresses of a certain family, the following commands are used:
For adding IP addresses in general, the following commands are used:
For adding IP address to the physical interface you should also specify information about it in the system's configuration file.
Adding the first IP of the family:
Adding the following IP addresses:
Deleting IP addresses
Deletion of IP addresses depends on IP address family. Interface IP address won't be deleted if it is the primary address of its family of that interface.
The following command is executed for deleting IP address:
Once the command is executed, information about that address will be deleted from server's configuration files.