• Home
  • IT-Courses
    • Installing and Upgrading Microsoft Window Server
    • Designing Network Infrastructure Window Server
    • Design and Configure Active Directory Window Server
    • Implementing and Administering Active Director
    • Install, Configure and Migrate Domain DNS Services
    • Designing a Secure Microsoft Windows-Based Network
  • Training Videos
  • Forum
  • Career
  • About us
  • Contacts
  • Home
  • IT-Courses
    • Installing and Upgrading Microsoft Window Server
    • Designing Network Infrastructure Window Server
    • Design and Configure Active Directory Window Server
    • Implementing and Administering Active Director
    • Install, Configure and Migrate Domain DNS Services
    • Designing a Secure Microsoft Windows-Based Network
  • Training Videos
  • Forum
  • Career
  • About us
  • Contacts
Log in / Sign in
What are you looking for?
Trending Searches: Javascript Database Photoshop
Popular categories
Uncategorized

Uncategorized

13 products
View all categories
0 0
0 Shopping Cart

No products in the cart.

Return To Shop
Shopping cart (0)
Subtotal: $0.00

View cartCheckout

Module 10: Configuring a Windows Server as a Router: Enable Routing, NAT & LAN-to-WAN Access

Configuring a Windows-based server as a router allows the server to forward traffic between multiple network interfaces using RRAS (Routing and Remote Access Service). It enables routing, NAT, and firewall functionality, effectively turning the server into a basic software-based router.

Steps to Configure a Windows Server as a Router (RRAS):
1. Install the Remote Access Role
  • Go to:
    Server Manager → Add Roles and Features

  • Select:

    • Remote Access

    • Subcomponents:

      • Routing

      • DirectAccess and VPN (RAS)


2. Enable Routing and NAT in RRAS
  1. Open RRAS from Administrative Tools

  2. Right-click your server → Configure and Enable Routing and Remote Access

  3. Choose Network Address Translation (NAT) or Custom Configuration

  4. Select:

    • LAN Routing

    • NAT if you want Internet sharing


3. Add and Configure Routing
  • Go to IPv4 > Static Routes in RRAS

  • Add custom routes as needed to manage inter-subnet traffic

  • Use Routing Protocols (RIP) if dynamic routing is required


4. Enable NAT (Optional)
  • Go to IPv4 > NAT

  • Right-click External Interface → Properties

    • Check Enable NAT on this interface

  • Right-click Internal Interface → Properties

    • Select Private interface connected to private network

Overview of Routers and Routing Tables

  • Router Functions
RRAS LAN to WAN setup
  • Routing Tables
  • To Display the IP Routing Table on a Computer Running Windows 2018, Use the Route Print Command
configure Windows server routing and NAT

Configuring Network Connections in Windows Server: IP Settings, Interfaces & Advanced Options

Configure Network Interfaces
  • Ensure the server has at least two NICs:

    • One for internal (LAN)

    • One for external (Internet/WAN)

  • Assign static IPs:

    • External: Public IP or connected to ISP/modem

    • Internal: Private IP (e.g., 192.168.x.x)

Steps to Configure Network Connections in Windows Server:
1. Open Network Settings
  • Go to:
    Control Panel → Network and Sharing Center → Change adapter settings
    (Or use ncpa.cpl in Run)


2. Assign Static IP Address
  • Right-click your network adapter → Properties

  • Select:

    • Internet Protocol Version 4 (TCP/IPv4) → Click Properties

  • Choose:

    • 🔘 “Use the following IP address”

      • IP address: e.g., 192.168.1.10

      • Subnet mask: 255.255.255.0

      • Default gateway: e.g., 192.168.1.1

    • 🔘 “Use the following DNS server addresses”

      • Preferred: 8.8.8.8

      • Alternate: 8.8.4.4


3. Rename Network Interfaces (Optional for Clarity)
  • Go to adapter settings

  • Right-click > Rename (e.g., LAN, Internet, DMZ)


4. Enable or Disable Adapters
  • Right-click adapter → Disable or Enable

  • Useful for configuring redundant paths or isolating networks

  • Configuring Network Connection Names
configure static IP Windows Server
  • Configuring Network Connection Names
  • To Display the IP Routing Table on a Computer Running Windows 2018, Use the Route Print Command
configure Windows server routing and NAT
  • Configuring IP Settings for a Network Adapter
  • Configuring Settings for a Network Connected to the Internet
  • Configuring Settings for a Private Network
  • Verifying the Address Relationship

Enabling Routing Using RRAS in Windows Server: Static Routes, NAT & LAN-WAN Connectivity

Enabling routing using Routing and Remote Access (RRAS) in Windows Server allows the server to forward network traffic between interfaces. It supports static routing, NAT, VPN, and dynamic routing protocols for internal and external connectivity.

  • To Configure Routing
  • Configuring Settings for a Network Connected to the Internet
  • Select the Network router configuration option
  • Verify that the network protocols required for routing are available
  • Select the demand-dial option, if applicable
  • Select the method for assigning IP addresses to remote clients
Configuring Static Routes in Windows Server: Step-by-Step Using RRAS & PowerShell

Configuring static routes in Windows Server allows network traffic to be manually directed through specified gateways. It’s useful for multi-network environments, internal routing, and traffic optimization when using Routing and Remote Access (RRAS) or PowerShell.

How to Configure Static Routes in Windows Server:

Method 1: Using RRAS (Routing and Remote Access Service)
Prerequisite:

Ensure RRAS is installed and configured for LAN routing.

Steps:
  1. Open: Routing and Remote Access (RRAS) console

  2. Go to: IPv4 → Static Routes

  3. Right-click → New Static Route

  4. Enter:

    • Interface: Choose correct NIC (e.g., “LAN”)

    • Destination: e.g., 10.0.0.0

    • Network Mask: e.g., 255.255.255.0

    • Gateway: e.g., 192.168.1.1

    • Metric: e.g., 1 (lower = higher priority)

  5. Click OK and verify route is added.


Method 2: Using PowerShell

Run PowerShell as Administrator and use the following:

powershell New-NetRoute -DestinationPrefix "10.0.0.0/24" -InterfaceAlias "Ethernet" -NextHop "192.168.1.1"
  • Replace:

    • 10.0.0.0/24 with your destination network

    • "Ethernet" with the correct interface name

    • 192.168.1.1 with the next-hop/gateway


Method 3: Using Command Prompt (Legacy Option)
CMD/Bash c:/route add 10.0.0.0 mask 255.255.255.0 192.168.1.1 metric 1 if 13
    • Find interface number via route print

    • Add -p to make the route persistent across reboots:

CMD/Bash c:/route -p add 10.0.0.0 mask 255.255.255.0 192.168.1.1
  • Examining a Static Routing Table
Windows Server 2019 routing setup
  • Adding a Static Route
route add command Windows Server
Lab A: Configuring a Routing Interface
  • Routing Interfaces in Routing and Remote Access
  • LAN Interfaces
  • Demand-Dial Interfaces
  • IP-in-IP Tunnel Interfaces
  • Packet Filtering
PowerShell static routing example
  • Packet Filtering
  • LAN Interfaces
  • Demand-Dial Interfaces
  • IP-in-IP Tunnel Interfaces
  • Configuring Filters on an IP Routing Interface
  • Select an interface
  • Specify an input or output filter
  • Specify a filter action
  • Configuring Filter Settings on an IP Routing Interface
  • Identify the source network
  • Identify the destination network
  • Select the protocol
Implementing Demand-Dial Routing
  • Overview of Demand-Dial Routing
add static route in RRAS Windows
  • Configuring Demand-Dial Connections
  • Configuring Connection Settings
  • Configuring Ports to Allow Demand-Dial Connections
  • Creating a Demand-Dial Interface
Demand-Dial Interface
  • Configuring IP Addressing for Inbound Demand-Dial Connections
Configuring IP Address
  • Configuring IP Address
  • Configuring Demand-Dial Filtering
  • Configuring Dial-Out Hours
  • Configuring Static Routes for a Demand-Dial Interface
  • Adding Static Routes
  • Testing Static Routes
Configuring the Routing Information Protocol
  • Routing Protocols
RIPOSPF
Routing Protocols
For small to medium internetworksFor large, heterogeneous internetworks
Uses a routing tableUses a link state database
Easier to configure and manageComplex to configure and manage
Does not scale wellOperates efficiently in large networks
 Contains a reference to an installation point where product files reside
  • RIP Operation
RIP Operation
  • Adding the RIP Protocol
RIP Protocol
  • Adding an Interface to Support RIP
Interface
  • Configuring Route Filtering
Configuring Route Filtering
  • Configuring RIP for a Non-Broadcast Network
Configuring RIP for a Non-Broadcast Network
Lab: Configure Windows Server 2019 as a LAN Router Using RRAS

This lab demonstrates how to configure Windows Server 2019 as a router using Routing and Remote Access (RRAS) to route traffic between two networks or provide NAT for internet access.

Lab Requirements:
  • Windows Server 2019 installed

  • Two configured NICs:

    • NIC 1: Connected to Internal LAN (e.g., 192.168.10.1)

    • NIC 2: Connected to External network or second subnet (e.g., 10.0.0.1 or internet)

  • Administrator privileges


Lab Steps:
Step 1: Assign Static IP Addresses
  1. Go to Control Panel → Network and Sharing Center → Change Adapter Settings

  2. Assign:

    • NIC 1: IP 192.168.10.1, subnet 255.255.255.0

    • NIC 2: IP 10.0.0.1, subnet 255.255.255.0 or auto from ISP/DHCP


Step 2: Enable IP Routing
  1. Open PowerShell as Administrator:

This is an Alert Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "IPEnableRouter" -Value 1

Restart the server or use:

This is an Alert Restart-Service RemoteAccess
Step 3: Install RRAS Role
  1. Open Server Manager → Add Roles and Features

  2. Select:

    • Role-based installation

    • Remote Access

      • Under Role Services, select:

        • ✅ Routing

        • ✅ (Optional) NAT, VPN (RAS)


Step 4: Configure Routing in RRAS
  1. Open: Routing and Remote Access

  2. Right-click server name → Configure and Enable Routing and Remote Access

  3. Choose:

    • Custom Configuration

    • Check LAN Routing (and NAT if needed)

  4. Finish and start the RRAS service


Step 5: Test Static Routing
  • On a PC in 192.168.10.x subnet:

    • Set gateway to 192.168.10.1 (the server)

  • Ping a PC in 10.0.0.x (or the internet if NAT is configured)


Step 6: (Optional) Configure NAT for Internet Access
  1. In RRAS console, go to IPv4 → NAT

  2. Right-click the external interface → Properties

    • ✅ Enable NAT

  3. Right-click internal interface → Properties

    • 🔘 Mark as private

Extending Remote Access Capabi...
Extending VPN access with IAS
configure NAT Windows Server internet sharing
Configuring Internet Access fo...

Add comment Cancel reply

Your email address will not be published. Required fields are marked

Quick Links

    • Career

    • Live Discussion

    • Certification

    • Sitemap

    • Help & Support

ADDITIONAL LINKS

    • About Us

    • Terms & Condition

    • Privacy Policy

    • Forum

    • Contact Us

Categories

    • Phone: (+92) 333-6522806

    • Email: info@skillpointit.com

    • Address: Lahore, Pakistan

    • Email: shahzad@skillpointit.com

Subscribe Now!

get 20% Off on courses collection Now!

Facebook Twitter Whatsapp Youtube Telegram

© 2024 SkillPoint IT. All rights reserved.