Assigning a public IP on Windows Server 2008 R2

internetnetworkingwindows-server-2008windows-server-2008-r2

We've recently acquired a Dell PowerEdge r420 server (2 NICs). After installing the OS (Windows Server 2008 R2), we've installed SQL Server 2008 and IIS. Now we have a public IP given to us by the ISP. The aim is to make this a public facing server.

I'd like to know how to assign the public IP to this server. One NIC has been given a private IP for internal access.

Directly assigning the public IP to the other NIC doesn't work. Question is do I need to configure NAT and RRAS. Most of my search online leads to these results.

On a separate note: ping was disabled by deafult which I enabled using "netsh firewall set icmpsetting 8". Now I can ping the server internally. But while assigning the public IP to the second NIC, it can't be pinged from outside. Is there some other service which needs to be enabled?

Best Answer

Assign your IP to the external nic and make sure only the external nic has a default gateway assigned. The internal nic should only have an IP assigned, no default gateway, or your routing will be broken.

You can check that the default route 0.0.0.0 is going over the external nic to the correct default gateway by typing "route print" in a cmd or powershell prompt.

You don't need to install the RRAS role or enable NAT or anything on the server. Make sure the firewall profile on the external nic don't block the traffic you want to let through (by default it is set to the public profile).

Related Topic