Problem with using Server as gateway
Hi guys, i have this configuration: Win 2008 R2 Standard: - 2 network adapters (one directly to router, the other one to a network) - DHCP configured and working (the computers from the network get an IP [192.168.100.x], subnet [255.255.255.0], default gateway and primary dns server (both 192.168.100.1 = the windows 2k8r2 server) - DNS server installed and configurated so now the problem: Any PC connected to the server via the networkadapter which doesn't have any internet connection will get all their DNS queries resolved BUT they are not able to connect to them. For example a lookup for google.com to 74.125.39.105 works but they are not able to connect to them. For me it looks as if the Server doesnt work as a gateway. If you e.g. simply share a internet connection on non-server-os'es like Win7 you can set the sharing computer as gateway and dns-server without even installing software like this on this computer. Can someone help me to get the server working like a gateway?
September 5th, 2010 11:32pm

That is not supposed to work. What exactly are you trying to do? Why do you have two NICs in the server? A machine can only have one active default gateway, and that gateway must have Internet access. Bill
Free Windows Admin Tool Kit Click here and download it now
September 6th, 2010 4:35am

Im trying to share internet. I have 2 ICS becaues with one has direct access to a router (for internet) and the other one is connected the the Local Network. Lets suppose latter is connected to any windows client. The client gets all his internet information via DHCP (so primary dns, and gateway is the server, ip and subnet also correct). Now e.g. lookup for google.com works (so the DNS-Server is working well) but i cant connect with the clients (ping google.com no answer from ...). This is because the gateway i think. This gateway is the windows server which IS connected to the internet. For testing i have the server connected in my Home network with this TCP/IP configuration: NIC 1 (connected with internet): IP: 192.168.178.38 Subnet: 255.255.255.0 Gateway: 192.168.178.1 DNS: 192.168.100.1 NIC 2 (connected the LAN = clients) IP: 192.168.100.1 Subnet: 255.255.255.0 Gateway: 192.168.178.1 DNS: 192.168.100.1 NIC of any client: IP: 192.168.100.x (x >= 2) Subnet: 255.255.255.0 Gateway: 192.168.100.1 DNS: 192.168.100.1 DNS and DHCP server (192.168.100.1) working correct.
September 6th, 2010 9:51am

If you want to share an Internet connection, you must run some software on the server to do that. I would recommend that you set up RRAS as a NAT router. (ICS is an option, but it does not allow you to run your own DNS and DHCP, which you obviously want). A gateway address must be "reachable", which means that it must be in the same network and the same IP subnet as the clients. So machines in 192.168.100 cannot have a gateway in 192.168.178 . This will work. Internet | gateway router 192.168.178.1 | LAN machines 192.168.178.x dg 192.168.178.1 | 192.168.178.38 dg 192.168.178.1 RRAS/NAT 192.168.100.1 dg blank | clients 192.168.100.x dg 192.168.100.1 You are in fact doing NAT twice, but it works. To get it working without NAT requires modifying the routing on the whole network, including the gateway router. Bill
Free Windows Admin Tool Kit Click here and download it now
September 6th, 2010 10:55am

Thanks for the info. I've done this already due to a research on the internet. The problem is: I can ping every domain (dns lookup and connect works) but i can't connect to some servers with the browser (IE, Chrome, Firefox). Do you know what to do?
September 6th, 2010 11:00am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics