Which Gateway in Static Route- 2 Nic Configuration

Status
Not open for further replies.

AykonMan

SMB User
Joined
Apr 26, 2019
Messages
6
Reaction score
0
Hi Members,

I am setting up a pbx with 2 nics on the on-prem box.

The provider is a generic SIP. I saw the sample below configs in one of the threads and need help to validate what i have done and to ask which gateway ip i should use here.

Please help a friend.



# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug enp0s31f6
auto enp0s31f6
iface enp0s31f6 inet static
address 192.168.30.15/24
gateway 192.168.30.1
dns-nameservers X.X.X.X

# The SIP network Provider Interface (Cable from Provider into 2nd NIC)
allow-hotplug enp3s0
auto enp3s0
iface enp3s0 inet static
address <Provider SIP IP Address>

#static routes
up route add -net <Provider SIP IP Address> gw <Which gateway should i use?> dev enp3s0


thanks
 
this is useful @eddv123 , I check and found specfically a scenerio that sort of resembles my concerns, but it windows specific whereas i am using the Linux distro.

that is:
Multiple internet gateways (used by ISPs that offer VoIP Services)

My main concern is, given the configs that i shared, should i ignore the gateway given by the SIP Provider/ISP and just use the gateway to the voice VLAN in the static routing?

thanks for the assistance.
 
Status
Not open for further replies.

Forum statistics

Threads
111,926
Messages
589,762
Members
164,799
Latest member
RicoDinero