[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Configuration of a web server with two NICs

Posted on 2011-05-09
Medium Priority
Last Modified: 2012-05-11

I have this situation:

I have one web server, with Windows 2008 server hosting my web site. This server is connected with one NIC to a ADSL router and with the other to LAN (with firewall).

On the 'external' NIC I have this IP vaules:

DNS Server: 195.xxx.xxx.xxx

On the 'internal' NIC (the one that leads to a supposed LAN trhough a firewall) :

DNS Server: 195.xxx.xxx.xxx

This configuration works properly to serve website to external petitions almost 90% of the time. But sometimes the server doesn't do his job: clients can't access to IIS and I have to disable 'internal' connection. This solves the problem, because instantly website is served again.

I undestand that there is some missconfiguration with the routing, but I can't find the error. Can anyone tell me some clues?

Thanks a lot and kind regards.
Question by:starbase2
LVL 39

Expert Comment

by:Aaron Tomosky
ID: 35721696
You internal has the ip of the external as it's gateway? This is not how I would normally set this up. I don't see the point of even having two nics with this config. What exactly are you trying to accomplish here? Any reason not to just have one nic on the LAN and forward port 80 to it?
LVL 59

Expert Comment

by:Darius Ghassem
ID: 35721713
Go to your network card bindings make sure your external NIC is listed first.

You shouldn't need to have the DNS server in internal network configuration
LVL 42

Expert Comment

ID: 35721716
You need to remove the gateway from the internal NIC and add static routes to the inside network as necessary. You didn't include subnet masks, but it also looks like the router on the internal NIC may not be on the same IP subnet as your NIC interface, depending on you subnet mask and whether or not you correctly posted the IP addresses.  

To add a static route under Windows, look at "route /?" From command prompt.

Accepted Solution

Osmoze earned 2000 total points
ID: 35721932
add static routes in the machine

the machine needs a route to forwards packets to internal client without ambiguity do

route add mask metric 1 -p

and to force the machine sending all trafic not destined to you r internal network do

route add mask metric 1 -p

its necessary to make these routes persistante with  -p .

also change the card binding  in Network and sharing Center > change adapter Settings > in the menu , Advanced setting > advanced .

remove the gateway from the Internal nic

in the other hand consider removing the second nic and working with One nic . it will be easier and cleaner architecture .

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question