1 Server with 2 IPs (2 seperate LAN) possible?

Hi All,

I have just setup a webserver running on a linux box. This server has 2 ethernet cards and only 1 is in used now. eg. 192.168.10.1 is my server IP. All users from 192.168.10.X can access my webserver. However, users from another LAN 10.10.10.X are not able to access my webserver. They can ping and receive response from my server yet web browing is not possible. I assume port 80 has been blocked somewhere in between the network across these 2 LANs.

What I am trying to do is to connect another cable to 2nd ethernet port with IP 10.10.10.1. This means my machine is now connected to 2 seperate LANs (192.168.10.X and 10.10.10.X) - these are static IPs.

I am hoping that by this way users from 10.10.10.X network can access my webserver...they will go through the 10.10.10.X router/switches and reach my server 2nd ethernet card 10.10.10.1.

Is this possible? Do I need to setup any routing on my server? Another question is, what if my server has a domain name eg. linuxsrv01.domain.com and this domain is linked to 192.168.10.1 (my first IP). Users from 192.168.10.X network can access my webserver by typing linuxsrv01.domain.com on thier web browser (this is ok and confirmed). Question is, with the above setup, will users from 10.10.10.X network be able to access my webserver by typing linuxsrv01.domain.com?
WIll they automatically get resolved to 10.10.10.1?

COnfused...
jack

No routing ought to be involved in sending requests from the 10.10.10.x subnet directly to 10.10.10.x. No gateways or anything like that, it ought to happen just by setting the network card on your server to the right IP address and netmask.

Your clients will have to know to use the 10.10.10.x address of course, not just use the 192.168.10.x address. And your web server will have to allow itself to answer on 10.10.10.1

If you don't arrange for the site to resolve your site to 10.10.10.1 for the right clients, it won't happen. It's not able to detect this situation and fix it for you.

What do your clients use for their DNS server?

1 Like