667 Posts

January 23rd, 2008 10:00

Here's my attempt at routing 101:
 
If you open a command window, you can type
 
   C:\> route print
 
This shows the routing table for all networks attached to the machine.
 
What you want is the users on the 192.1.100.x LAN to enter and exit the LAN NIC.  This NIC should see an entry
 
Destination          Netmask                Gateway                        Interface
192.1.100.0         255.255.255.0               
 
This requires all users of the server be on the 192.1.100.x subnet.  Are they?  If you have other subnets in the network, you'll have to setup routing for those manually. Enter the command:
 
    C:\> route ?
 
to see all the switches and options for the route command.  Assuming there is another subnet of 10.200.7.x (with a mask of 255.255.255.0), you would enter the command:
 
    C:\>route -p add 10.200.7.0 mask 255.255.255.0
 
Only the external interface should have the default route 0.0.0.0.  This routes all addresses not already defined out to the Internet.  You do want access to the Internet, right?
 
Also, you're not directly connecting the server to the Internet, right?  You do have a firewall with all the ports closed except only what's necessary, right?  Connecting a database server directly to the Internet is really risky.
 
Lastly,
 
Make sure TCP/IP is enabled in SQL Server.  If you're using the Express Edition, it comes with TCP/IP disabled by default.
 

21 Posts

January 23rd, 2008 21:00

You don't want multiple default gateways.  You need to declare the routes and gateways.  Default gateways are what your machine uses when the route isn't known. 
 
ie: route -p ADD 157.7.0.0 MASK 255.255.0.0 157.7.99.254
 
Also, make sure you do this on the other side as well, as the traffic needs to know how to get back.


Message Edited by scheesman on 01-23-2008 06:26 PM
No Events found!

Top