Avatar of jackbenson
jackbensonFlag for United Kingdom of Great Britain and Northern Ireland asked on

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
Windows Server 2003Networking

Avatar of undefined
Last Comment
jackbenson

8/22/2022 - Mon
jakethecatuk

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.
ASKER
jackbenson

thanks - and i will not have a problem accessing the server from other servers/clients within the 192.168.16.0/24 network?
jakethecatuk

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
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER
jackbenson

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

You don't need a DNS server there.  All DNS queries will be handled by your internal NIC and internal servers.
ASKER
jackbenson

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?

Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
jakethecatuk

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.
ASKER
jackbenson

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

ASKER CERTIFIED SOLUTION
jakethecatuk

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
jackbenson

thank you - really appreciate your help!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER
jackbenson

very helpful!
ASKER
jackbenson

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
jakethecatuk

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 :)
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
jackbenson

exchange seems to be fine.

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