Starting with version 2.7, the sip:provider CE uses a dedicated network.yml file to configure the IP addresses of the system. The reason for this is to be able to access all IPs of all nodes for all services from any particular node in case of a distributed system on one hand, and in order to be able the generate /etc/network/interfaces automatically for all nodes based on this central configuration file.
The basic structure of the file looks like this:
hosts: self: role: - proxy - lb - mgmt interfaces: - eth0 - lo eth0: ip: 192.168.51.213 netmask: 255.255.255.0 type: - sip_ext - rtp_ext - web_ext lo: ip: 127.0.0.1 netmask: 255.255.255.0 type: - sip_int - web_int - ha_int
In CE systems, there is only one host entry in the file, and it’s always named self.
There are three different main sections for a host in the config file, which are role, interfaces and the actual interface definitions.
role: The role setting is an array defining which logical roles a node will act as. Possible entries for this setting are:
<interface name>: After the interfaces are defined in the interfaces setting, each of those interfaces needs to be specified as a separate setting with the following options: