Here are detailed step by step instructions on how to set gateway computer network adapters to work with HotSpot NAT, Windows RRAS, Windows DHCP Server role or ICS.
1. A static IP address is configured on NIC1, the network card connected to the Internet router/modem.
· It is recommended to set the same IP address that is already assigned dynamically by the router.
· To see which IP NIC1 has currently assigned, go to Windows Control Panel – Network and Sharing Center screen.
· Click on Change adapter settings link and double click on the NIC1 (Internet) network adapter.
· Enter IP address (e.g. 192.168.118.130)
· Click in Subnet Mask field, value will be set automatically based on IP address, be sure that is same as in Network Connection Details
· Enter IP address of the default gateway (IP of the Internet router).
· Enter DNS addresses, it is recommended to use DNS addresses of your ISP or public DNS service such as Google (184.108.40.206, 220.127.116.11).
· Click OK and close all dialog windows.
2. The static IP address should be set for NIC2, the network card used for communication with the client devices.
Please note that for this card you need to configure IP address (e.g. 192.168.9.1) and subnet mask (e.g. 255.255.255.0) but not Default Gateway IP
· To set the static IP address for NIC2, go to Windows Control Panel – Network and Sharing Center screen
· Click on Change adapter settings link and make right-click on NIC2 (Local) and select Properties from the menu.
· Note: Internet modem/router cannot be used as a DHCP server for your local network clients. The DHCP server must be configured only for the local network.
Windows 7, Windows 8.1 and Windows 10 DHCP Server can not provide more than 253 IP addresses for the local network.
If you want to use more than 253 addresses you can set it from Windows Server 2008, Windows Server 2012 or Windows Server 2016 DHCP Server role. Also, you will need to set subnet mask which will give you this ability.
Be sure that you prepare all network devices on the local network to use the same subnet mask.
Bellow are some of examples:
IP range (network – broadcast) Subnet Mask IP Quantity
192.168.137.0 – 192.168.137.255 255.255.255.0 256
192.168.136.0 – 192.168.137.255 255.255.254.0 512
192.168.136.0 – 192.168.139.255 255.255.252.0 1024
192.168.136.0 – 192.168.143.255 255.255.248.0 2048
192.168.128.0 – 192.168.143.255 255.255.240.0 4096
192.168.128.0 – 192.168.159.255 255.255.224.0 8192
192.168.128.0 – 192.168.191.255 255.255.192.0 16384
192.168.128.0 – 192.168.255.255 255.255.128.0 32768
192.168.0.0 – 192.168.255.255 255.255.0.0 65536