3. network.yml Overview

/etc/ngcp-config/network.yml is one of the main configuration files that contains network-related configuration parameters, like IP addresses and roles of the node(s) in Sipwise C5 system.

The next example shows a part of the network.yml configuration file. Explanation of all the configuration parameters is provided in Network Configuration Section 11, “Network Configuration” section of the handbook.

Sample host configuration for Sipwise C5

  sp1:
    dbnode: '1'
    eth0:
      dns_nameservers:
        - 192.168.51.30
        - 192.168.51.31
      gateway: 192.168.22.1
      hwaddr: 06:1e:bc:e2:ec:fb
      ip: 10.0.2.15
      netmask: 255.255.255.0
      shared_ip: ~
      shared_v6ip: ~
      type:
        - web_ext
        - ssh_ext
        - web_int
    eth1:
      hwaddr: 6e:7f:3a:f9:db:1f
      ip: 192.168.255.251
      netmask: 255.255.255.248
      shared_ip:
        - 192.168.255.250
      shared_v6ip: ~
      type:
        - ha_int
        - ssh_ext
    eth2:
      ip: 10.15.20.107
      netmask: 255.255.255.0
      shared_ip:
        - 10.15.20.151
      type:
        - ssh_ext
        - web_ext
        - web_int
        - sip_ext
        - rtp_ext
        - mon_ext
    interfaces:
      - lo
      - eth0
      - eth1
      - eth2
    lo:
      advertised_ip: []
      cluster_sets:
        - default
      hwaddr: 00:00:00:00:00:00
      ip: 127.0.0.1
      netmask: 255.0.0.0
      shared_ip: []
      shared_v6ip: []
      type:
        - sip_int
        - web_ext
        - web_int
        - aux_ext
        - ssh_ext
        - api_int
      v6ip: '::1'
    peer: sp2
    role:
      - proxy
      - lb
      - mgmt
      - rtp
      - db
    status: 'online'