setting up two ethernet cards and routing via IP
Okay I am not a master of Linux; but thanks to help from forums I have most of my Linux box setup to run a program my team has been developing Our program includes multiple VNC's running at once with clients connecting to any available VNC when needed. Due to hardware setup once deployed some clients will only have access to full functionality if connected to VNC 1-7 and the rest if connected to 8-14.
Now I (sort of) know how to use IPTables to block any clients with specific IP ranges from accessing the wrong VNC's. The problem is I'm not certain if the IP's will stay constant after being deployed and I'm afraid I could end up with a client that needs to connect to VNC 1-7 has an IP that is blocked from connecting to those VNC's. What I would rather is to make use of the two Ethernet cards to provide two IP's with those connecting to one IP having access to VNC 1-7 and those on the other IP connecting to 8-14.
That would mean that I need to set up my Ethernet ports to be independent. Currently eth0 works correctly but eth1 is detected but doesn’t respond to ping, and if I try to send a ping from my Linux box it attempts to ping using eth0 IP instead of eth1 even if eth0 has no connection and eth1 does. If i disable eth0 eth1 works fine. I had read previously that this was common problem and I believe the solution had something to do with setting up the routing tables, but I can't seem to find any details on Google.
So I have two questions.
1) Would setting up my Ethernet cards to have two separate IP be a functional and best way of getting the functionality I want?
2) If yes then how do I get the two IP to function at the same time?