Dual Network interface(WAN&LAN)

Status
Not open for further replies.

Mehdi Pasha

New Member
Mar 6, 2017
1
0
1
39
Hi,
The server has two Ethernet ports, one is LAN the other is WAN.

LAN interface
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.20.100
netmask 255.255.255.0
####gateway 192.168.20.1

WAN interface(Sip Provider)

allow-hotplug eth1
auto eth1
iface eth1 inet static
address 10.10.33.69
netmask 255.255.252.0
gateway 10.10.33.1

Sip provider Server is 10.124.44.2

On the sever when I try to have phones register they fail but wan sip trunk work correctly if my network config is like I have posted above . They will register when I change the default gateway to 192.168.20.1 on eth0 , phone work correctly , but sip trunk not work and not answer to sip provider INVITE.
When I change the default gateway to be on the WAN and use interface eth1 the inbound calls from sip provider work , but the phones will not register via the LAN.
I am used to servers typically having either a wan or a lan but not both. Do I just need 2 default routes? Any insight would be a great big help.
 
Last edited:

ad5ou

Active Member
Jun 12, 2018
892
204
43
Dual home servers require a little work to set the correct IP to the correct profile. IP routing might be an issue too can be worked out.
Are the phones on the same 192.168.20.0/24 network or some other network segment? If on the same network, the default route can probably be left as 10.10.33.1.

For simplicity, you probably want to assign the 192.168.20.100 address to your internal profile and 10.10.33.69 to the external profile.
Advanced>SIP Profiles>Internal then External.
Change the "rtp-ip" and "sip-ip" to the appropriate IP address for the profile instead of the default "$${local_ip_v4}"

Once saved, clear cache, reload xml, restart the SIP profiles etc and make sure under Status>SIP Status show the correct IP's for each profile.
You may need to edit your gateway to ensure it is using the external profile if it was not already. If changes are needed, the gateway will also need to restart.

If the phones or gateway need to traverse NAT additional settings are required.
 
  • Like
Reactions: Mehdi Pasha
Status
Not open for further replies.