I want to configure 2 network cards in PBX. One would be external IP (ex 22.214.171.124) for Sip extensions and another a local IP 192.168.0.10.
When I tried doing this. Only one IP works at at time.
My eth0 is 209.x.x.x
My eth1 is 192.x.x.x
When I ping to 209.x.x.x it works
When I ping to 192.x.x.x it fails
Then when I configure 192.x.x.x as Boot, it starts working and I can ping at 192 address but 209 address stops working and I cant ping to it any more.
Does any one knows what happing?
Or can some one confirm if I can use 2 NICs at the same time or NOT?
Of course you can use two NIC’s you can use 10 if you want.
Since you told us nothing about your configuration how can we possibly help?
FreePBX Distro latest
It won’t allow me to use 2 IP, do I have to enable it somewhere ?
I don’t understand the comment it "won’t allow me’
It’s just CentOS.
Send the contents of your /etc/sysconfig/network-script/ifcfg-eth0 and eth1 files and we can try and help you.
I think I know what the op wants and I’m having a little difficulty with this too. Of course it was once working but not anymore.
Why would you want two interfaces in the same subnet? That will cause all sorts of ARP issues.
Additionally your gateway is not in the same subnet as the network and IP you have assigned the interface so that will also never work.
you’re right, the network should be 192.168.8.0
What would be the best way to have this work?
You still can’t have two interfaces in the same subnet.
I have no idea how to program an IP via FreePBX, would not even try.
You set the parameters in /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network-scripts/ifcfg-eth1
Once you change the files issue a ‘service network restart’ to get them reread.
The parameters you sent are already in the correct format for the files.