Solved

static routes for Nic connected to ADSL modem

Posted on 2010-11-10
14
503 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
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
 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

734 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