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 of the handbook.

Sample host configuration for Sipwise C5

  web01a:
    bond0:
      bond_miimon: '100'
      bond_mode: active-backup
      bond_slaves: 'eth0 eth1'
      hwaddr: 00:00:00:00:00:00
      ip: 192.168.1.2
      netmask: 255.255.255.0
      shared_ip:
        - 192.168.1.1
      type:
        - boot_int
    eth0:
      hwaddr: 00:00:00:00:00:00
    eth1:
      hwaddr: 00:00:00:00:00:00
    interfaces:
      - vlan11
      - vlan666
      - vlan35
      - vlan100
      - vlan80
      - vlan90
      - vlan15
      - vlan20
      - lo
      - eth0
      - eth1
      - bond0
    lo:
      advertised_ip: []
      hwaddr: 00:00:00:00:00:00
      ip: 127.0.0.1
      netmask: 255.0.0.0
      shared_ip: []
      shared_v6ip: []
      type:
        - ssh_ext
        - api_int
      v6ip: '::1'
    peer: web01b
    role:
      - mgmt
    status: 'online'
    vlan20:
      advertised_ip: []
      hwaddr: 00:00:00:00:00:00
      ip: 172.31.3.75
      netmask: 255.255.255.240
      shared_ip:
        - 172.31.3.74
      type:
        - web_int
      vlan_raw_device: bond0
      post_up:
        - 'route add -host 172.30.172.247 gw 172.31.3.65 dev vlan20'
    vlan100:
      hwaddr: 00:0a:f7:8d:32:ec
      ip: 172.31.3.5
      netmask: 255.255.255.224
      shared_ip:
        - 172.31.3.4
      type:
        - ha_int
        - web_int
        - ssh_ext
      vlan_raw_device: bond0
    vlan11:
      dns_nameservers:
        - 172.31.3.244
        - 192.168.56.11
        - 192.168.57.11
      gateway: 172.31.3.33
      hwaddr: 00:00:00:00:00:00
      ip: 172.31.3.37
      netmask: 255.255.255.224
      shared_ip:
        - 172.31.3.36
      shared_v6ip: []
      type:
        - mon_ext
        - ssh_ext
      vlan_raw_device: bond0
    vlan15:
      hwaddr: 00:00:00:00:00:00
      ip: 192.168.181.201
      netmask: 255.255.255.0
      post_up:
        - 'route add -net 172.25.240.0/24  gw 192.168.181.1 dev vlan15'
        - 'route add -net 192.168.6.0/24 gw 192.168.181.1 dev vlan15'
      shared_ip:
        - 192.168.181.200
      type:
        - ssh_ext
        - web_int
        - mon_ext
      vlan_raw_device: bond0
    vlan35:
      hwaddr: 00:00:00:00:00:00
      ip: 172.31.3.101
      netmask: 255.255.255.240
      shared_ip:
        - 172.31.3.100
      type:
        - sip_int
      vlan_raw_device: bond0
    vlan666:
      hwaddr: 00:00:00:00:00:00
      ip: 46.5.10.37
      netmask: 255.255.255.240
      shared_ip:
        - 46.5.10.36
      type:
        - web_ext
      vlan_raw_device: bond0
    vlan80:
      hwaddr: 00:00:00:00:00:00
      ip: 172.31.3.237
      netmask: 255.255.255.248
      shared_ip:
        - 172.31.3.236
      type:
        - phone_ext
        - web_ext
      vlan_raw_device: bond0
      post_up:
        - 'ip route add default via 172.31.3.233 dev vlan80 table phones_ext'
        - 'ip rule add from 172.31.3.236 lookup phones_ext prio 1000'
    vlan90:
      hwaddr: 00:00:00:00:00:00
      ip: 46.5.10.53
      netmask: 255.255.255.248
      post_up:
        - 'route add -host 77.244.249.93 gw 46.5.10.49 dev vlan90'
      shared_ip:
        - 46.5.10.52
      type:
        - repos_ext
      vlan_raw_device: bond0