Module 11: Configuring Internet Access for a Windows Server Network: NAT, DHCP, and Routing Setup
Configuring internet access for a network in Windows Server involves setting up routing, NAT (Network Address Translation), and DHCP so that internal devices can connect to the internet securely and efficiently through a single server gateway.
Step-by-Step Guide to Configuring Internet Access
✅ 1. Server Requirements
Two NICs (Network Interface Cards):
Internal NIC (e.g., 192.168.10.1)
External NIC (connected to modem/ISP with public IP or DHCP)
Windows Server with RRAS role installed
✅ 2. Install and Configure RRAS (Routing and Remote Access Service)
▶️ Install Remote Access Role
Install-WindowsFeature Routing
Configure RRAS:
Open:
Server Manager → Tools → Routing and Remote Access
Right-click server → Configure and Enable Routing and Remote Access
Choose:
NAT and LAN Routing
Complete the wizard and start the service
3. Configure NAT
In RRAS Console, expand:
IPv4 → NAT
Right-click the external interface → Properties
✅ Check: “Enable this interface for internet sharing (NAT)”
Right-click the internal interface → Properties
🔘 Select: “Private interface connected to private network”
4. Set DHCP on Clients (Optional)
Configure the Windows Server DHCP role or assign static IPs manually
Default gateway for clients:
192.168.10.1
(internal NIC of server)DNS server: Public DNS (e.g.,
8.8.8.8
) or local DNS
5. Test Internet Access
Use a client on the internal network:
Ping:
8.8.8.8
Browse websites
Use
tracert
oripconfig
to verify routing
Options for Connecting a Network to the Internet
- Connecting to the Internet by Using a Router
- Optimizes network performance
- Enables all users in your network to share a single connection to the Internet
- Is the easiest method for connecting your network to the Internet
- Securing Internet Connections by Using a Firewall
- Prevents unauthorized access to your network
- Enables you to specify the type of traffic that is allowed into and out of your network
- Connecting to the Internet by Using NAT
- The client sends the packet to the computer running NAT
- The computer running NAT changes the packet header and sends the packet over the Internet to the Web server
- The Web server sends a reply to the computer running NAT
- The computer running NAT determines the destination, changes the packet header, and sends the packet to the client
- Connecting to the Internet by Using Internet Connection Sharing
- Simplifies the process of configuring NAT
- Enables small-office and home-office networks to share a single connection to the Internet
- Connecting to the Internet by Using a Proxy Server
- NAT vs. Routing
- NAT vs. Proxy Server
- Internet Connection Sharing vs. NAT
How to Configure Internet Access Using a Router in Windows Server Networks
Configuring internet access using a router involves connecting the local network to the internet through a physical or software-based router, assigning correct IP addressing, and configuring NAT and DNS so that client devices can browse the web securely and efficiently.
Step-by-Step Guide: Configuring Internet Access Using a Router
1. Connect the Router to the Network
WAN port → Connects to the internet (e.g., DSL/Cable modem)
LAN ports → Connects to the internal switch or server
2. Access Router Configuration Panel
Open browser on a connected device
Go to:
http://192.168.0.1
orhttp://192.168.1.1
(default gateway)Login using admin credentials (usually on the router label)
3. Configure WAN Settings
Choose DHCP, Static IP, or PPPoE depending on ISP
Save and test connectivity
4. Configure LAN Settings
Assign router LAN IP: e.g.,
192.168.10.1
Enable DHCP Server:
IP range:
192.168.10.100 – 192.168.10.200
Subnet mask:
255.255.255.0
DNS:
8.8.8.8
and8.8.4.4
or local DNS server
Save settings
5. Connect Windows Server and Clients
Assign static IP to Windows Server if required:
IP:
192.168.10.2
Gateway:
192.168.10.1
(router)
Clients can use DHCP or static IP with the same gateway
6. Test Internet Access
On any client or server:
Run
ping 8.8.8.8
Check internet browsing
Use
ipconfig
andtracert
for verification
Configuring Internet Access Using NAT in Windows Server (RRAS Setup Guide)
Network Address Translation (NAT) allows multiple devices on a private network to access the internet through a single public IP. In Windows Server, NAT can be configured using RRAS to share internet access efficiently and securely.
Step-by-Step Guide: Configuring NAT in Windows Server
1. System Requirements
Windows Server (2016/2019/2022)
Two network interfaces:
Internal NIC: Connected to LAN (e.g., 192.168.10.1)
External NIC: Connected to ISP or public internet (DHCP/static)
2. Install RRAS Role
Use Server Manager or PowerShell:
3. Configure NAT Using RRAS
➤ Open RRAS:
Go to
Server Manager → Tools → Routing and Remote Access
➤ Configure RRAS:
Right-click the server → Configure and Enable Routing and Remote Access
Choose:
NAT and LAN Routing
Complete the wizard and start the RRAS service
4. Configure NAT Interfaces
➤ External Interface (Connected to Internet):
Expand
IPv4 → NAT
Right-click → New Interface
Choose the external NIC
Select:
Public interface connected to the internet
Enable NAT on this interface
➤ Internal Interface (LAN):
Add the internal NIC to NAT as well
Choose:
Private interface connected to private network
5. Configure Clients
Assign static IP or DHCP in the LAN
Set gateway to internal server IP (e.g.,
192.168.10.1
)Set DNS to
8.8.8.8
or local DNS
6. Test Connectivity
On a client machine:
Run
ping 8.8.8.8
— should succeedOpen a browser — internet should work
Use
ipconfig
andtracert
to verify routes
- Installing NAT
- Configuring NAT
- Installing the Router Interface for NAT
Add comment