Discussion Locked

Routing problem

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm adding DSL to a remote office. That office had Internet via WAN to the home office. I'm using a LinkSys DSL router, but have DHCP turned off. DHCP must come from our SQL server because of a SQL App we are runing. IP addresses are DSL router 10.50.10.89 mask 255.255.255.0, SQL server 10.50.3.2 mask 255.255.0.0, issuing IP range 10.50.10.1-100, WAN router 10.50.1.1. The problem is the only way to get to the internet via DSL router is to specify a workstation IP addr instead of accepting DHCP.The Default Route on SQL is 10.50.1.1. If I change the Default Route to 10.50.10.89 the SQL App stops working. I have added a gateway addr of 10.50.10.89 to the SQL box.

7 replies

by stillatit

For a start, if the mask on the server is 255.255.0.0, then it will regard anything with the same first two octets as being on its own segment, which is wrong and will cause much grief. A station, using the 255.255.255.0 mask, will go to the router to get to the server, but the server, thinking the station is on the same segment, will not reply through the router.

Second, since SQL, and (at least) Microsoft SQL Server do not know or care about IP addresses, the SQL issue is more likely to beone of being on the same segment as actually using DHCP. If so, this is probably enforced by the client application. If this is actually the case, you could use the DHCP in the DSL router to give out a proper (small) range of addresses. The key would be having the right address range, not where you got the address.

One way out might be to have each workstation get a DHCP address from the DSL router (192.168.x.x), and then each station set up a vpn to your home office, getting a seperate DHCPaddress from the VPN server (which could be the SQL server machine) in the process. You probably want to be using vpn anyway so that your data does not go over the internet unencrypted.

Good luck.

by shanghai sam

I may have confused the issue with SQL, it was only for reference. The app is requiring the settings I discribed. We need a mask of 255.255.0.0 to accomodated more 254 addresses on a segment. The DSL router will only allow a max mask of 255.255.255.0. The VPN idea is "left field" because access to all SQL servers is via the WAN. I'm just trying to add a route to 10.50.10.89 and next hop to the DSL ISP. That is my problem.
Thank you for your analysis,
Mike

by eyounes

heelo,
sorry to tell you thatyour question is not understandable. but from what i understood, why don't u use NAT on both the DSL Router and the Router. Create 1 connection network and then connect your network to that network.
What I mean is creat a network for the routers make sure that they are working perfrectly and then and the network behind each one and use NAT for that purpose. I know It works. I hope that was your question.

by mckaytech

What OS are you running on the desktop? If you're running NT or W2K, you should be able to create a static route to your SQL/WAN connection and then assign the default gateway to the DSL router.

However, the 16-bit subnet mask is going to be a problem with the Linksys unit and I can't say for sure how it would work. However, using the same concept with a more capable router (e.g. Cisco 2500 series or equivalent) would permit you to maintain the 16-bit subnet mask on both network segments.
I was sorry to see you dismiss so quickly the idea of a VPN for the WAN circuit because a VPN with split tunneling would also be a possible solution. All the SQL traffic would go through the tunnel and the local traffic would go to the DSL gateway.

One other idea that's kind of "right-field" would be to use Netswitcher to permit the users to rapidly switch networks between SQL and Internet. Although it wasn't designed for this application, it might be worth a try if you don't consider ittoo hokey.

Or, one final idea, you could multi-home the SQL server with one NIC on the 10.50.x.x subnet and the other NIC connected to the DSL router (presumably with an IP of 192.168.1.1 or something like that). Enable IP routing on the server and be done with it.

paul

This discussion is closed to new replies.