Page 1 of 1

2 nic 2 gateway

Posted: 2020/03/06 03:58:45
by vijaydsk
Hello to everyone.

I have just installed PBX.
Well, I have 2 NIC in the server, eth1 only for SIP with IP 10.1.xx.xx no internet acess, and the other eth0 with 192.168.xx.xx. LAN + Internet.

ifcfg for eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT='yes'
IPADDR=10.xx.xx.xx
NETMASK=255.255.255.252
GATEWAY=10.xx.xx.xx
ZONE=external

ifcfg for eth1
DEVICE=eth1
BOOTPROTO=static
ONBOOT='yes'
IPADDR=172.28..xx.xx
NETMASK=255.255.0.0
GATEWAY=172.28.xx.xx
ZONE=internal

How to setup one gw for eth0 and another for eth1.
Thanks in advance.

Re: 2 nic 2 gateway

Posted: 2020/03/06 07:21:13
by jlehtone
You don't.

Please explain the meaning of "GATEWAY" as you understand it.

Re: 2 nic 2 gateway

Posted: 2020/03/06 08:31:48
by hunter86_bg
Actually it's possible , for example this one sounds plausible , yet it's impractical.
Another way is to have it properly defined and set the static routes necessary.

I think I saw somewhere a blog mentioning multiple routing tables that could allow that.

Yet, I don't see any reason to create such a headache.

Re: 2 nic 2 gateway

Posted: 2020/03/06 09:58:35
by jlehtone
hunter86_bg wrote:
2020/03/06 08:31:48
Actually it's possible
In some situations, yes (e.g. load balancing or HA). However, according to the description of the networks this is not such situation.

I read:
eth1 only for SIP with IP 10.1.xx.xx no internet acess
No member of the SIP subnet will act as router between the SIP subnet and any other subnet.