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


 
Thread Tools Search this Thread
Special Forums IP Networking 1 Server with 2 IPs (2 seperate LAN) possible?
# 1  
Old 01-12-2012
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
# 2  
Old 01-12-2012
Quote:
Originally Posted by jackma
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?
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
Quote:
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?
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?
This User Gave Thanks to Corona688 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

how to increse server lan speed in hp-ux

Hi, I've a problem in hp-ux server, i.e.how to increase Ethernet speed. i dont've time to trials on production server please help me (1 Reply)
Discussion started by: karlapudi.ramu
1 Replies

2. UNIX for Dummies Questions & Answers

1 Server with 2 ethernet cards IP on seperate network. 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... (0 Replies)
Discussion started by: jackma
0 Replies

3. IP Networking

Identify unknown LAN server from IP or MAC address

Hi, I just got a little task trying to seemingly find a needle in a haystack. I have a server (FreeBSD) where several NFS mounts are established from a host somewhere on the local LAN with the 192.168.x.x prefix. Needless to say, the guy who set this up wasn't too fond of documenting... (2 Replies)
Discussion started by: brightstorm
2 Replies

4. IP Networking

Local Lan, no-ip directed DNS forward, surf within lan

Hi, We have a website running on a local centos 5.4 surfer, static IP. The domain.com uses no-ip.com to take care of the DNS, it forwards all to my server. My router receives the port 80 call, routes it to my server and the world can see domain.com perfectly fine. However, we cannot see... (3 Replies)
Discussion started by: lawstudent
3 Replies

5. Web Development

Cannot access Apache web server from Wan side, only Lan side.

I have installed WAMPSERVER 2.0 on my windows vista x64 system but still am having issues with getting the webserver to be seen outside my local network. It is working fine within my local network. Been through several setup tutorials so far, no dice still. For testing purposes I have... (1 Reply)
Discussion started by: davidmanvell
1 Replies

6. IP Networking

LAN server - Proxy, DNS, WEB - I'm lost!!!

Ok! I started to do something and I got lost...and crazy! I got MW2000S gateway device that provides wireless internet access! It is configured to work as NAT. Clients connect to MW and have access to internet and it works beautifully! And now! In the same network I have Ubuntu machine. First I... (0 Replies)
Discussion started by: salvor_hardin
0 Replies

7. Solaris

Improperly formatted value for 'tftp-server' error while booting the target from LAN

Hi, I wish to install solaris 10 on a target machine (t1000) by using Jumpstart. I have configured by jumpstart environment for the same. When i boot the target with the option "boot net -v install" i get the following error... {0} ok boot net -v install Boot device: /pci@7c0/pci@0/network@4... (3 Replies)
Discussion started by: hemalsid
3 Replies

8. UNIX for Dummies Questions & Answers

LAN traffic rerouting to web server

Hello. I am not sure where to post this and would appreciate any moderator help in moving this to the area where it is most applicable. Thank you. I've posted these questions in a couple different forums, but have not received any answers about what I am doing wrong. I would appreciate any... (3 Replies)
Discussion started by: J-Fal
3 Replies

9. Solaris

How to configure private LAN and coporate LAN on the same machine-Solaris10

Hi , I am trying to configure a private LAN and corporate LAN on the same machien on Solaris 10. How can I achieve this? Thanks (1 Reply)
Discussion started by: deedee
1 Replies
Login or Register to Ask a Question