LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   assigning ip's to multiple NIC's in a Fedora Core 4 box (https://www.linuxquestions.org/questions/linux-networking-3/assigning-ips-to-multiple-nics-in-a-fedora-core-4-box-385525/)

vinnypie 11-22-2005 10:43 AM

assigning ip's to multiple NIC's in a Fedora Core 4 box
 
Good day. I would like to describe what we are trying to accomplish and get your opinion.



We have one of our servers that has two network connectors. It is running Linux (Fedora Core 4). This is what we are trying to do.



- Have IP (example 212.212.212.212) going to one of the NIC’s (which it currently is) running one Tomcat program
- Have IP (example 212.212.212.213) going to the other NIC and running a different Tomcat program
As formatted above, all the traffic seems to be going over the .12 and nothing going over the .13 address


From what we were able to find out on the internet, in order to do this, one of the first three octets of the IP need to be different from each other.



We would like to accomplish the following:

A – Have both NIC’s operating independent of each other running their respective programs

B – Be able to control the flow of data to each IP



We set the .13 address using the ifconfig command, but apparently there is more to it than that. If possible, any assistance on this it would be appreciated.

FNC 11-22-2005 02:26 PM

what is your default route?

stickman 11-22-2005 02:44 PM

Why not just run each Tomcat instance on a different port and use Apache w/ JK connector to pass the connections to the appropriate instance based on path prefix? It's relatively easy to setup.

anuragsha 11-22-2005 11:17 PM

and how to do that ?

stickman 11-23-2005 03:21 PM

Read the documentation for the JK connector (ie mod_jk).


All times are GMT -5. The time now is 12:46 AM.