Akzium
  • Home
  • Solutions
    • Distributed File Systems
    • Security
    • Cloud Computing >
      • Enterprise File Sync and Sharing
    • SD-WAN
    • Secure Internet
    • Virtualization
    • Backup and Replication >
      • AS400 Backup and Replication
      • DICOM Image Backup and Archival
    • Disaster Recovery
  • Services
    • Cloud Migration Services
  • About
  • Blog

Multiple Gateway Routes in Windows OS

11/21/2024

0 Comments

 
Picture
There can only be ONE (1) DEFAULT GATEWAY in Windows, but there can be MULTIPLE network gateways via the Windows ROUTE command.

If you need to have access to two separate networks via two different network adapters the Windows OS network adapter settings GUI will give an ERROR message if you attempt to set a default gateway on the second adapter. Why? Well, there can only be one "default" gateway. However, you CAN have multiple networks each with their own individual gateway setting. The "default" gateway is the one used LAST by Windows, i.e. if all other gateways fail, use this "default gateway". The trick to setting this up properly is the use of the Windows ROUTE command. You must open an elevated command prompt to run this command via Run As Administrator.

*note: I've used , in stead of . in the IP addresses so that browsers won't create hyperlinks. Substitute . for , in replicating the commands.

Example:
ROUTE PRINT
this gives you the current status of all routes on your system

ROUTE ADD 192,168,1,0 MASK 255,255,255,0 192,168,1,99
this command will add 192,168,1,99 as the gateway for the 192,168,1,0/24 network

ROUTE -p ADD 192,168,1,0 MASK 255,255,255,0 192,168,1,99
by adding the -p this makes the added route PERSISTENT, meaning it will survive a system reboot

ROUTE DELETE 192,168,1,0
this will delete the added route for the 192,168,1,0 network along with its associated gateway

The order of route processing is determined by the METRIC value assigned to the route, with lower value numbers being processed before higher value numbers. If you want your newly added route to be processed before other routes, change the route metrics to manually determine route order processing.
0 Comments

    Author

    Akzium team blog

    Archives

    May 2025
    April 2025
    March 2025
    January 2025
    December 2024
    November 2024
    October 2024
    July 2024
    November 2022
    September 2022
    August 2022
    July 2022

    Categories

    All
    Alias Gmail
    Apache Log4J
    AWS EC2 IIS File Share
    BypassNRO
    Chrome Browser GPU
    Default Gateway
    DHCP
    DHCP Backup
    DHCP Restore
    DiskPart
    Endpoint Security
    File Server Migrations
    File Server Registry Key
    File Server Resource Manager
    File Shares Registry Key
    Ghost Network Adapters
    Gmail Alias
    Gmail Email Alias
    IBM 5250 Terminal
    IBM BOMC
    IBM Firmware Updater
    IBM FlashSystem Firmware Update
    IIS
    Internet Information Services
    Lenovo BOMC
    Lenovo Firmware Updater
    NTP
    RaspberryPi 4b
    RaspberryPi 4b 5250
    Recovery Partition Relocate
    Security Registry Edits
    Self Signed SSL
    Set Chrome To Use GPU
    Time Server Change
    Uptime Kuma
    Uptime Kuma Ubuntu Install
    Virus Scanner
    VMware
    Windows 11
    Windows 11 Developer Console
    Windows File Server
    Windows IIS File Sharing
    Windows Quick Assist
    Windows Route Command
    Windows Sandbox
    Windows Script Host
    Windows Server 2022 Recovery Partition
    Windows Shared Experiences
    Windows Time

    RSS Feed

Akzium, LLC | 601-841-2499     .     [email protected]
Copyright 2011-2025, Akzium, LLC.  All rights reserved.