Ha claster with 2 interfaces

Hi,

Now I have 2 asterisk servers with 1 net interface, that configured in cluster (cocsync + pacemaker).

ip a (active node):
eno16777984: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:50:56:90:0e:00 brd ff:ff:ff:ff:ff:ff
inet 10.15.104.40/24 brd 10.15.104.255 scope global eno16777984
valid_lft forever preferred_lft forever
inet 10.15.104.43/24 brd 10.15.104.255 scope global secondary eno16777984
valid_lft forever preferred_lft forever

sip.conf

bindport=5060
bindaddr=10.15.104.43

In this configuration all works perfectly :slight_smile: .


Now I need to configure second interface with real IP address.
It is necessary to connect with providers without NAT.
I have already configured ha cluster for second interface.

ip a (active node)
eno16777984: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:50:56:90:0e:00 brd ff:ff:ff:ff:ff:ff
inet 10.15.104.40/24 brd 10.15.104.255 scope global eno16777984
valid_lft forever preferred_lft forever
inet 10.15.104.43/24 brd 10.15.104.255 scope global secondary eno16777984
valid_lft forever preferred_lft forever
ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:50:56:92:49:00 brd ff:ff:ff:ff:ff:ff
inet 185.x.x.130/29 brd 185.х.х.135 scope global ens192
valid_lft forever preferred_lft forever
inet 185.x.x.132/29 brd 185.х.х.135 scope global secondary ens192
valid_lft forever preferred_lft forever

route -n:
0.0.0.0 185.x.x.129 0.0.0.0 UG 100 0 0 ens192
10.0.0.0 10.15.104.1 255.0.0.0 UG 100 0 0 eno16777984
10.15.104.0 0.0.0.0 255.255.255.0 U 100 0 0 eno16777984
185.x.x.128 0.0.0.0 255.255.255.248 U 100 0 0 ens192

But, when I change sip.conf like this:

bindport=5060
bindaddr=0.0.0.0
externip=185.x.x.132
localnet=10.0.0.0/8

Asterisk start listen to packets on cluster IP 185.x.x.132 and 10.15.104.43, but send answers from interface IP 185.x.x.130 and 10.15.104.40

And I have no idea how to make the equipment respond from a cluster IP :frowning:
I will be grateful for any help