2 nic 2 gateway
Posted: 2020/03/06 03:58:45
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.
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.