Introduction
This weekend, I was trying out to setup a Windows server 2008 with TP-Link wireless router. The purpose was I should be able to connect to the server through static IP from anywhere, at the same time, I wanted a wireless network in the office. It took me few hours and I thought that it could be a nice blog article. Instead of TP-Link router, you can use any other router.
Steps to setup static IP in a server and share its internet connection on a wireless router of TP-Link:
Server Setup
- Provide two lan cards in server as Lan1, Lan2.
- In LAN 1 card, plug in the static IP cable provided by your ISP.
- In Lan 1 card properties, set the static IP configurations as provided by your service provider.
- In Lan 1 properties, share internet connection.
- Check and confirm that in your server you can browse the internet.
- In Lan 2 properties, set the IPs as follows:
- 192.168.137.1
- Subnet mask: 255.255.255.0
- Rest everything is blank
Please note that you have no choice. When you share internet connection in Windows, then automatically an IP 192.168.137.1 is provided as static IP to another LAN card. This ends up server-side setup.
TP-Link Router Setup
- Default LAN address IP of TP-Link router is 192.168.0.1. Let it be the same.
- TP-Link router has one WAN port and four LAN port. In this setup, only the Lan port will be used.
- Connect a different computer to TP-LINK LAN port through a network cable.
- In the computer lan card properties, set “Obtain an IP address automatically” and “obtain DNS server address automatically”.
- Browse at 192.168.0.1 and login as admin / admin.
- In Network –> WAN select Dynamic IP
- In Network –> LAN leave it at 192.168.0.1
- In Wireless –> Wireless settings, give “Wireless Network Name” as name of your company which will appear as WIFI in other computers.
- Set wireless security passwords which is simple.
- Save your settings.
This completes router setup.
Client Computers Setup
In all the client computers, IPs need to be setup specifically. Computers in the LAN connected on WIFI or connected through wire with the router will not take IPs automatically.
Following is the IP setup in all computers:
IP: 192.168.137.X
Subnet: 255.255.255.0
Default gateway: 192.168.137.1
DNS server Address: 192.168.137.1
Wire Connections
- Server LAN 2 card to one out of four LAN ports of TP-LINK wireless router
- ISP cable to LAN 1 of server computer
- WAN port of TP-LINK will be unused
Setup of TP-Link WIFI Router without Internet Sharing
- Connect a computer to LAN port of TP-LINK. In computer, set lan setting as “Obtain IP address dynamically”.
- Browse at 192.168.0.1 and login as admin / admin.
- Set Network WAN as static IP and provide IP settings provided by your ISP.
- Set wireless for company name and password.
- Save.
- Now unplug the wire from the computer and Connect ISP cable directly to WAN port of TP-LINK router.
- In all other computers, you can set “Obtain IP address dynamically”.
- You will be able to use internet in all computers.
Setup for DHCP Server in TP-link When No Specific IPs Need to be Provided to Each Client Computer
You need to activate DHCP server in router. The purpose of DHCP server is to provide automatic IP addresses to each computer in network.
- Connect the TP-link LAN port (not WAN port) to a fresh computer through a LAN cable with computer having set a) Obtain an IP address automatically, Obtain a DNS server address automatically
- Login to the TP-link at its default IP which is factory default as 192.168.0.1 unless you have changed it.
- Go to Network ->LAN. You need to change the TP-LINK default IP address which is 192.168.0.1. This is because in your server you have done internet sharing which defaults to server second LAN IP as 192.168.137.1. So to be in same network, you need to change the default LAN IP address of your router to 192.168.137.2. So in the LAN setup of TP-Link, set the IP address to 192.168.137.2. and save. From now on, while connecting to TP-LINK, you need to use this IP. You have changed the default.
- Go to DHCP DHCP settings.
- Enable DHCP server.
- Start IP address as 192.168.137.3.
- End IP address: 192.168.137.20. I do not have more than 15 computers in the network.
- Default gateway: 192.168.137.1
- Primary DNS: 192.168.137.1
- In Network WAN, I did (not sure if required or not)
- Checked use these DNS servers
- Primary DNS: 192.168.137.1