Windows 2003 routing / DNS issue
Discussion
Morning PHers,
I have inherited a badly mismanaged LAN with an obscure problem that has me scratching my head and about to throw my server through the nearest window.
Briefly.
I have a single windows 2003 server, complete with 2 network cards.
I have 30 PC's all with statically assigned IP addresses and gateways etc.
I have an Internet router
I have several hubs that are currently daisy chained together.
I need to get the network set up so that one of the lan cards (NIC1) connects to the first hub in the chain, and the other (NIC2)connects to the Internet router.
I then need to make sure that all the PCs can access the Internet and the server drives.
As I understand it, I need to assign NIC1 an address is the same range as all the workstations. What about the default gateway??
I need to assign the workstations the IP address of NIC1 as their default gateway.
What do I need to do in order to get the Internet to work across all the PCs?
Any more information needed, please ask.
Thanks for any help
I have inherited a badly mismanaged LAN with an obscure problem that has me scratching my head and about to throw my server through the nearest window.
Briefly.
I have a single windows 2003 server, complete with 2 network cards.
I have 30 PC's all with statically assigned IP addresses and gateways etc.
I have an Internet router
I have several hubs that are currently daisy chained together.
I need to get the network set up so that one of the lan cards (NIC1) connects to the first hub in the chain, and the other (NIC2)connects to the Internet router.
I then need to make sure that all the PCs can access the Internet and the server drives.
As I understand it, I need to assign NIC1 an address is the same range as all the workstations. What about the default gateway??
I need to assign the workstations the IP address of NIC1 as their default gateway.
What do I need to do in order to get the Internet to work across all the PCs?
Any more information needed, please ask.
Thanks for any help
This should be fairly trivial!
Assuming
PCs <-> LAN-HUB <-> SERVER-NIC1/SERVER-NIC2 <-> LAN-HUB <-> ROUTER <-> INTERNET
Get the Internet connection working on the server first!
Disable SERVER-NIC1 whilst you do this
If we assume that the Internet side LAN is a 192.168.0.x network
e.g.
Router LAN settings
IP Address 192.168.0.1/255.255.255.255.0
Gateway - interface to ISP
Server Settings Internet LAN Settings
IP Address 192.168.0.2/255.255.255.255.0
Gateway 192.168.0.1 (ie the Router LAN IP)
DNS 1: ISP DNS
DNS 2: ISP DNS
Make sure you can ping and traceroute out onto the internet/check the DNS works
Now for the PCs LAN side of things lets assume a 192.168.1.x network
For the server setup the NIC maybe as follows:
IP 192.168.1.1/255.255.255.0
Gateway - I'm pretty sure you leave this blank 0.0.0.0
DNS 1: ISP DNS - or leave blank
DNS 2: ISP DNS - or leave blank
Now, go to one of the PCs that is on the 192.168.1.x network
Check it can ping the server on the 192.168.1.1 address (internal LAN)
Check it can ping the server on the 192.168.0.2 address (Internet LAN)
This shows that the server is correctly routing between it's two NICs
Check the PC can ping the Router - 192.168.0.1
Check the PCs DNS settings are correct for your ISP
Voila - you should be able to browse the web from the PC.
Note: I think there is a check box somewhere in the network settings on the server to say 'Act as Router' - and I'm pretty certain you leave the efault gateway on the Server NIC1 blank, the OS should see packets on this internal NIC1 that are destined for the Internet and route them over to the other LAN towards the router.
If you can't get it working like this then google 'bridging' - that will join the two netowrks together for you.
HTH
Assuming
PCs <-> LAN-HUB <-> SERVER-NIC1/SERVER-NIC2 <-> LAN-HUB <-> ROUTER <-> INTERNET
Get the Internet connection working on the server first!
Disable SERVER-NIC1 whilst you do this
If we assume that the Internet side LAN is a 192.168.0.x network
e.g.
Router LAN settings
IP Address 192.168.0.1/255.255.255.255.0
Gateway - interface to ISP
Server Settings Internet LAN Settings
IP Address 192.168.0.2/255.255.255.255.0
Gateway 192.168.0.1 (ie the Router LAN IP)
DNS 1: ISP DNS
DNS 2: ISP DNS
Make sure you can ping and traceroute out onto the internet/check the DNS works
Now for the PCs LAN side of things lets assume a 192.168.1.x network
For the server setup the NIC maybe as follows:
IP 192.168.1.1/255.255.255.0
Gateway - I'm pretty sure you leave this blank 0.0.0.0
DNS 1: ISP DNS - or leave blank
DNS 2: ISP DNS - or leave blank
Now, go to one of the PCs that is on the 192.168.1.x network
Check it can ping the server on the 192.168.1.1 address (internal LAN)
Check it can ping the server on the 192.168.0.2 address (Internet LAN)
This shows that the server is correctly routing between it's two NICs
Check the PC can ping the Router - 192.168.0.1
Check the PCs DNS settings are correct for your ISP
Voila - you should be able to browse the web from the PC.
Note: I think there is a check box somewhere in the network settings on the server to say 'Act as Router' - and I'm pretty certain you leave the efault gateway on the Server NIC1 blank, the OS should see packets on this internal NIC1 that are destined for the Internet and route them over to the other LAN towards the router.
If you can't get it working like this then google 'bridging' - that will join the two netowrks together for you.
HTH
Thanks Adrian, YHM
Looking at the server, both of my network cards (the one connected to the LAN hub and the one connected directly to the router) have an address in the same 192.168.1.* range and also the same default gateway - could this be the route of all my issues?
Looking at the server, both of my network cards (the one connected to the LAN hub and the one connected directly to the router) have an address in the same 192.168.1.* range and also the same default gateway - could this be the route of all my issues?
Edited by K50 DEL on Sunday 28th October 10:43
Edited by K50 DEL on Sunday 28th October 11:15
Yes, each nic needs it's own subnet, and IP forwarding/routing needs to be enabled. Pick random subnets, not 0 or 1 if poss as if you need to do vpn stuff later there's less chance that you'll have to change it again.
Ps, if it was me, I'd set a DNS service up on the server and point everything at that (in fact if you have an active directory this is the way you *have* to do it). Then configure the DNS server on the server to forward to the ISP's DNS.
HTH
Neil
Ps, if it was me, I'd set a DNS service up on the server and point everything at that (in fact if you have an active directory this is the way you *have* to do it). Then configure the DNS server on the server to forward to the ISP's DNS.
HTH
Neil
Edited by buggalugs on Sunday 28th October 11:24
buggalugs said:
Yes, each nic needs it's own subnet, and IP forwarding/routing needs to be enabled. Pick random subnets, not 0 or 1 if poss as if you need to do vpn stuff later there's less chance that you'll have to change it again.
Ps, if it was me, I'd set a DNS service up on the server and point everything at that (in fact if you have an active directory this is the way you *have* to do it). Then configure the DNS server on the server to forward to the ISP's DNS.
HTH
Neil
You lost me at IP forwarding needs to be enabled - any chance of a step by step?Ps, if it was me, I'd set a DNS service up on the server and point everything at that (in fact if you have an active directory this is the way you *have* to do it). Then configure the DNS server on the server to forward to the ISP's DNS.
HTH
Neil
Edited by buggalugs on Sunday 28th October 11:24
K50 DEL said:
buggalugs said:
Yes, each nic needs it's own subnet, and IP forwarding/routing needs to be enabled. Pick random subnets, not 0 or 1 if poss as if you need to do vpn stuff later there's less chance that you'll have to change it again.
Ps, if it was me, I'd set a DNS service up on the server and point everything at that (in fact if you have an active directory this is the way you *have* to do it). Then configure the DNS server on the server to forward to the ISP's DNS.
HTH
Neil
You lost me at IP forwarding needs to be enabled - any chance of a step by step?Ps, if it was me, I'd set a DNS service up on the server and point everything at that (in fact if you have an active directory this is the way you *have* to do it). Then configure the DNS server on the server to forward to the ISP's DNS.
HTH
Neil
Edited by buggalugs on Sunday 28th October 11:24
Neil is absolutely correct here, for the setup you have with two NICs they should ideally be on separate networks, and the server needs to be told to route between them.
As said in my mail, first thing to try is plug the router into the office lan, changes te default gateway on the Server's NIC1 to point to the router (192.168.1.102 I think you said).
Likely everything will work - the PCs will be told by the Server that the gateway is actually at the Router and not the Server.
best
Ade
Edited by mystomachehurts on Sunday 28th October 13:13
I'd forget about the routing side of it for just a minute and try to establish the correct network settings for each network card. Then once you get to a position where you can access both networks from the server (i.e. you can browse the net *and* ping the client PCs) then you can enable routing between those networks. There are two ways to do this in Windows (2003 I presume), either using the Windows Firewall / Internet Connection Sharing service, or using the Remote Access Service (RAS). Which method you use depends on whether you wish (or need) to use the Windows Firewall to protect the server, or alternatively if you want additional RAS functionality such as VPN termination. Bottom line is that the ICS service is very simple to setup for basic 'Internet Connection Sharing', but is more restrictive and less featured than RAS.
Also can you confirm if your server acting as an AD domain controller, as if so (as pointed out by other posters) this will significantly affect the way that you must configure DNS.
ETA I should also emphasise the security risks - if you don't know anything about your internet router (e.g. whether it uses private or publicly routable address ranges on the LAN side) I would suggest experimenting with the WAN cable unplugged, as you may inadvertently expose your server to the internet. As you probably know, if you were to do this, it may potentially not take long to get completely
ed up, for want of a better phrase.
Also can you confirm if your server acting as an AD domain controller, as if so (as pointed out by other posters) this will significantly affect the way that you must configure DNS.
ETA I should also emphasise the security risks - if you don't know anything about your internet router (e.g. whether it uses private or publicly routable address ranges on the LAN side) I would suggest experimenting with the WAN cable unplugged, as you may inadvertently expose your server to the internet. As you probably know, if you were to do this, it may potentially not take long to get completely
ed up, for want of a better phrase.Edited by theboss on Monday 29th October 19:40
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


