/cluster/adapter/<PA_SIP>/sip/network/ - команды настройки ip-set
В данном разделе представлены команды настройки ip-set.
<CLUSTER> - имя кластера PA SIP.
clean
Команда установки параметров ip-set в значение по умолчанию.
Путь команды:
/cluster/adapter/<CLUSTER>/sip/network/clean
Синтаксис:
clean ip_set <SOME_IP_SET>
Параметры:
<SOME_IP_SET> - имя ip-set.
Пример:
admin@[mycelium1@ecss1]:/$ cluster/adapter/sip1/sip/network/clean ip_set ipset2 [clean] All sockets in ipset2 set will be cleaned continue: yes/no ?> yes Property ip_set values successfully updated [exec at: 21.01.2019 09:35:13, exec time: 3s 860ms, nodes: sip1@ecss2]
info
Команда просмотра параметров ip-set.
Путь команды:
/cluster/adapter/<CLUSTER>/sip/network/info
Синтаксис:
info [<SOME_IP_SET>]
Параметры:
<SOME_IP_SET> - имя ip-set, опциональный параметр.
Пример:
admin@[mycelium1@ecss1]:/$ cluster/adapter/sip1/sip/network/info ┌────────┬────────────────────────────────────────────────────────────────────────────────┐ │Property│ Value │ ├────────┼────────────────────────────────────────────────────────────────────────────────┤ │ip_set │ipset1: 5060, 5061, 5062, 5063, 5064, 5065, 5070, 5071, 5072, 5073, 5074, 5075,│ │ │ 5076 │ │ │ipset1: sip1@ecss1 192.168.2.61 │ │ │ipset1: sip1@ecss2 192.168.2.62 │ │ │ipset1: dscp 48 │ │ │ipset2: 5091, 5092 │ │ │ipset2: sip1@ecss1 192.168.2.21 │ │ │ipset2: sip1@ecss2 192.168.2.22 │ │ │ipset2: dscp 46 │ └────────┴────────────────────────────────────────────────────────────────────────────────┘ [exec at: 21.01.2019 09:33:12, exec time: 58ms, nodes: sip1@ecss1]
set
Командой выполняется настройка параметров ip-set.
Путь команды:
/cluster/adapter/<CLUSTER>/sip/network/set ip_set
Синтаксис:
set ip_set <SOME_IP_SET> node-ip node = <SOME_NODE> ip = <SOME_IP>
set ip_set <SOME_IP_SET> listen-ports list = [<SOME_PORT1>, ...]
set ip_set <SOME_IP_SET> dscp <SOME_DSCP>
Параметры:
<SOME_IP_SET> - имя сокета для совместного доступа;
<SOME_IP> - IP-адрес;
<SOME_DSCP> - значение поля dscp для пакетов сигнализации. Может принимать значения от 0 до 63.
Пример:
admin@[mycelium1@ecss1]:/$ cluster/adapter/sip1/sip/network/set ip_set ipset2 node-ip node = sip1@ecss1 ip = 192.168.2.21 Property "ip_set" successfully changed from: ipset1: 5060, 5061, 5062, 5063, 5064, 5065, 5070, 5071, 5072, 5073, 5074, 5075, 5076 ipset1: sip1@ecss1 192.168.2.61 ipset1: sip1@ecss2 192.168.2.62 ipset1: dscp 48 to ipset1: 5060, 5061, 5062, 5063, 5064, 5065, 5070, 5071, 5072, 5073, 5074, 5075, 5076 ipset1: sip1@ecss1 192.168.2.61 ipset1: sip1@ecss2 192.168.2.62 ipset1: dscp 48 ipset2: no ports set ipset2: sip1@ecss1 192.168.2.21 ipset2: dscp 0. [exec at: 21.01.2019 09:29:46, exec time: 391ms, nodes: sip1@ecss1] admin@[mycelium1@ecss1]:/$ cluster/adapter/sip1/sip/network/set ip_set ipset2 node-ip node = sip1@ecss2 ip = 192.168.2.22 Property "ip_set" successfully changed from: ipset1: 5060, 5061, 5062, 5063, 5064, 5065, 5070, 5071, 5072, 5073, 5074, 5075, 5076 ipset1: sip1@ecss1 192.168.2.61 ipset1: sip1@ecss2 192.168.2.62 ipset1: dscp 48 ipset2: no ports set ipset2: sip1@ecss1 192.168.2.21 ipset2: dscp 0 to ipset1: 5060, 5061, 5062, 5063, 5064, 5065, 5070, 5071, 5072, 5073, 5074, 5075, 5076 ipset1: sip1@ecss1 192.168.2.61 ipset1: sip1@ecss2 192.168.2.62 ipset1: dscp 48 ipset2: no ports set ipset2: sip1@ecss1 192.168.2.21 ipset2: sip1@ecss2 192.168.2.22 ipset2: dscp 0. [exec at: 21.01.2019 09:29:58, exec time: 475ms, nodes: sip1@ecss2] admin@[mycelium1@ecss1]:/$ cluster/adapter/sip1/sip/network/set ip_set ipset2 listen-ports list = [5091,5092] Property "ip_set" successfully changed from: ipset1: 5060, 5061, 5062, 5063, 5064, 5065, 5070, 5071, 5072, 5073, 5074, 5075, 5076 ipset1: sip1@ecss1 192.168.2.61 ipset1: sip1@ecss2 192.168.2.62 ipset1: dscp 48 ipset2: no ports set ipset2: sip1@ecss1 192.168.2.21 ipset2: sip1@ecss2 192.168.2.22 ipset2: dscp 0 to ipset1: 5060, 5061, 5062, 5063, 5064, 5065, 5070, 5071, 5072, 5073, 5074, 5075, 5076 ipset1: sip1@ecss1 192.168.2.61 ipset1: sip1@ecss2 192.168.2.62 ipset1: dscp 48 ipset2: 5091, 5092 ipset2: sip1@ecss1 192.168.2.21 ipset2: sip1@ecss2 192.168.2.22 ipset2: dscp 0. [exec at: 21.01.2019 09:30:18, exec time: 343ms, nodes: sip1@ecss2] admin@[mycelium1@ecss1]:/$ cluster/adapter/sip1/sip/network/set ip_set ipset2 dscp 46 Property "ip_set" successfully changed from: ipset1: 5060, 5061, 5062, 5063, 5064, 5065, 5070, 5071, 5072, 5073, 5074, 5075, 5076 ipset1: sip1@ecss1 192.168.2.61 ipset1: sip1@ecss2 192.168.2.62 ipset1: dscp 48 ipset2: 5091, 5092 ipset2: sip1@ecss1 192.168.2.21 ipset2: sip1@ecss2 192.168.2.22 ipset2: dscp 0 to ipset1: 5060, 5061, 5062, 5063, 5064, 5065, 5070, 5071, 5072, 5073, 5074, 5075, 5076 ipset1: sip1@ecss1 192.168.2.61 ipset1: sip1@ecss2 192.168.2.62 ipset1: dscp 48 ipset2: 5091, 5092 ipset2: sip1@ecss1 192.168.2.21 ipset2: sip1@ecss2 192.168.2.22 ipset2: dscp 46. [exec at: 21.01.2019 09:30:43, exec time: 358ms, nodes: sip1@ecss2]