?
Solved

2 NICs on webserver 1 external and one interneal - Access to SQL database from PCs on internal to this server is slow and often times out

Posted on 2007-10-16
7
Medium Priority
?
176 Views
Last Modified: 2010-03-18
We have an internal network for LAN applications & an external network for our webserver (which hosts a few simple websites & our web based helpdesk system with an SQL back end)
The internal network connects to the internet via a Sonicwall firewall connected to a router
The external network connects to the internet via a Watchgourd firewall connected to the same router.

All networking on both network are fine, except we recently needed to acess the SQL helpdesk database from the internal network as we have a Windows interface which is faster for us, compared to the web interface.

To acheive this we put a 2nd nIc in the SQL Web server on the external network and gave the 2nd nic IP/SM entries for the internal network - thus this server has a link to the internal network
I did not specify a gateway or DNS on this 2nd nic.

From the internal network I  can now map to the drives on this server and ping it with no errors.
I also setup and ODBC link to the web server with the SQL database so my helpdsk windows application works.

However, performance with the helpdesk is sometimes ok, other times sluggish and sometime we get errors that relates to a loss of connection to the SQL database.  Each time this happens mapped drives are ok and pings are fine.

If I use the windows application on a laptop connected on the external network directly I get no issues, so it points to a network problem.

Any ideas and have we setup the dual card correctly on the web server.
By the way the 2nd nic is new and we have tested it since in case that was faulty.
No errors in the server event logs but there are errors in the PC log when this issue occurs - it specifies timeout errors.

Any help is appreciated.
0
Comment
Question by:support_realtime
  • 4
  • 3
7 Comments
 
LVL 38

Expert Comment

by:Jim P.
ID: 20087647
I'm guessing what is happening is that your clients are getting to your server by going out and coming back into your network.

If you do a tracert to the server from the client you'll see it going to the external IP address. You should change the routing cost at the last switch/router before the server/firewall to make the internal IP address a lower cost than the going to the external address.
0
 

Author Comment

by:support_realtime
ID: 20091503
I suspected that this was happening -will check it and advise.
Not sure how to change the cost though - I have a sonicwall for the external firewall if you have any ideas.
0
 

Author Comment

by:support_realtime
ID: 20091568
I get the following resu;ts:
--------------------------------------------------------------------
Tracing route to 10.0.0.3 over a maximum of 30 hops
  1    <1 ms    <1 ms    <1 ms  10.0.0.3
Trace complete.
--------------------------------------------------------------------
This implies that I am going straight to the LAN card on the server as 10.0.0.3 is the IP of the card on the webserver linked to the local LAN.

However, at present I can access the helpdesk application - maybe I should retry this when the issue occurs.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 38

Expert Comment

by:Jim P.
ID: 20096464
From a windows machine at a dos prompt you can see the routes on a machine is by using the route command like route print.

Router configuration is a different animal.
0
 

Author Comment

by:support_realtime
ID: 20107393
If i disable the external network card on the server (the one used by the webserver) then all works fine. When I enable it sometimes I connetc to the database and work fine other times it may be slow and often timeout, then work again a short while lataer.

Can you confirm if I need to make the change on the server or the PC - I assume server.
Also what do I need to enter?
Thanks
0
 
LVL 38

Accepted Solution

by:
Jim P. earned 1500 total points
ID: 20108191
The routing table on the sonicwall needs to be adjusted. Anything coming internally needs to be routed through the one NIC. Anything coming form outside needs to be routed to the other one.

You should discuss it with whover manages your sonicwall.
0
 
LVL 38

Expert Comment

by:Jim P.
ID: 20186711
Glad to be of assistance. May all your days get brighter and brighter.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

809 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