• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 509
  • Last Modified:

static routes for Nic connected to ADSL modem

Hi,

i want to know if i have configured my server nic's in the best way.

i have 3 servers.

each server has 2 nics
- 1 nic connects to the internal switch
- 1 nic connects to the ADSL modem so i can remote access the servers externally and for other services like inbound SMTP and HTTP

my domain IP4 settings are as follows:

nic connected to the internal switch
IP Address: 192.168.16.2
mask: 255.255.255.0
default gateway: 192.168.16.36

nic connected to the ADSL modem
IP address: 192.168.1.2
mask: 255.255.255.128
default gateway (blank as windows does not like have 2 default connectign to different networks)

[Please note that the server that has routing and remote access installed, that provides internet access to the network has the default gateway configured on the nic connected ADSL modem and the nic on the internal switch has no defautl gateway - and static routes are configured]

i then create the following static route so that inbound connections connected via the ADSL work:

route -p add 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 1

is this the right thing to do?

thanks

jack
0
jackbenson
Asked:
jackbenson
  • 8
  • 6
1 Solution
 
jakethecatukCommented:
Close...but no cigar.

Your NIC that is connected to the ADSL modem needs to have the default gatewey set whcih will be the ADSL modem itself.

Your NIC for your internal network will not need a gateway address.  The reason for this is that the server will know that any traffic for 192.168.16.0/24 has to go out of the internal NIC.  You should not need any static routes for your internal network unless you have more than one internal subnet.
0
 
jackbensonAuthor Commented:
thanks - and i will not have a problem accessing the server from other servers/clients within the 192.168.16.0/24 network?
0
 
jakethecatukCommented:
nope - all devices within the 192.168.16.0/24 subnet will have full communication with the three servers you are planning on changing.

If you do a 'route print' from a command prompt, you will see a line that covers your 192.168.16.0/24 subnet with the gateway being your 192.168.16.x IP address
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
jackbensonAuthor Commented:
last question - on the nic that connects to the ADSL Modem - should the DNS server be the ADSL Modem IP or the DNS server on my domain?
0
 
jakethecatukCommented:
You don't need a DNS server there.  All DNS queries will be handled by your internal NIC and internal servers.
0
 
jackbensonAuthor Commented:
sorry - i have removed the DNS server IP on the ADSL nic on a server that has a DNS server on. i get the following warning on that server when i try to close the TCP/IP Properties page:

"The DNS server list is empty. The local IP address will be configures as the primary DNS server address because Microsoft DNS server in installed on this machine"

I have 3 DNS servers on my network. i think i should leave these as the DNS servers for the ADSL nics only on servers that have DNS servers on?

0
 
jakethecatukCommented:
ah...you didn't say that the server had DNS installed on it.

You will need to ensure that the DNS address is the same as the IP address for that card.  Don't use 127.0.0.1 as it may cause problems.
0
 
jackbensonAuthor Commented:
i should have said - but i didnt think....

so the DNS server for the ADSL nic should be 192.168.1.2 if the IP address of the ADSL NIC is 192.168.1.2?

thanks

0
 
jakethecatukCommented:
if the server has DNS on it - that's correct.

you need to make sure that your DNS servers are listening to DNS queries on both interfaces - not just the internal interface.
0
 
jackbensonAuthor Commented:
thank you - really appreciate your help!
0
 
jackbensonAuthor Commented:
very helpful!
0
 
jackbensonAuthor Commented:
i know this question is closed.. but i have just found an issue.

the the server that has exchange server on.. the exchagne best practive analyer is saying that all nic's on the server need to have atleast 1 DNS server.

i have taken all the DNS servers of the ADSL modem nic. what is the best thing to do in this case?

thanks

jack
0
 
jakethecatukCommented:
is exchange still working as it should do Jack?  If it is, don't stress too much about it.

TBH - your whole config is a bit unusual but as long as it works :)
0
 
jackbensonAuthor Commented:
exchange seems to be fine.

what would be a better way to configure servers to access from outside the network to multiple servers?
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

  • 8
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now