Solved

static routes for Nic connected to ADSL modem

Posted on 2010-11-10
14
497 Views
Last Modified: 2012-05-10
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
Comment
Question by:jackbenson
  • 8
  • 6
14 Comments
 
LVL 23

Expert Comment

by:jakethecatuk
ID: 34100472
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
 
LVL 1

Author Comment

by:jackbenson
ID: 34101488
thanks - and i will not have a problem accessing the server from other servers/clients within the 192.168.16.0/24 network?
0
 
LVL 23

Expert Comment

by:jakethecatuk
ID: 34101511
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
 
LVL 1

Author Comment

by:jackbenson
ID: 34101608
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
 
LVL 23

Expert Comment

by:jakethecatuk
ID: 34101621
You don't need a DNS server there.  All DNS queries will be handled by your internal NIC and internal servers.
0
 
LVL 1

Author Comment

by:jackbenson
ID: 34101659
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
 
LVL 23

Expert Comment

by:jakethecatuk
ID: 34101687
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 1

Author Comment

by:jackbenson
ID: 34101779
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
 
LVL 23

Accepted Solution

by:
jakethecatuk earned 125 total points
ID: 34101793
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
 
LVL 1

Author Comment

by:jackbenson
ID: 34101840
thank you - really appreciate your help!
0
 
LVL 1

Author Closing Comment

by:jackbenson
ID: 34101842
very helpful!
0
 
LVL 1

Author Comment

by:jackbenson
ID: 34104266
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
 
LVL 23

Expert Comment

by:jakethecatuk
ID: 34104311
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
 
LVL 1

Author Comment

by:jackbenson
ID: 34104407
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
LAN or WAN ? 11 66
ADMT Intra Forest migration questions 7 78
Security Alert 2 45
How computer Arp Table gets populated. 21 36
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now