大网数据广告活动
网络与域名解析

Default gateway route doesn't appear in Routing Table

· 52CE 我爱测

Provides a solution to an issue where default gateway route doesn't appear in the Routing Table.

This article provides a solution to an issue where default gateway route doesn't appear in the Routing Table.

Applies to:   Windows Server - all editions
Original KB number:   816905

Symptoms

When you add a network interface to a remote access server in the Routing and Remote Access utility, a default route for that interface may not appear in the routing table.

Cause

This issue may occur if both of the following conditions are true:

  • You remove a network interface from the remote access server.
  • You re-add that network interface to the remote access server.

To work around this issue, use one of the following methods.

Workaround 1: Manually add the default route for the Interface

Use the Route Add command to manually add the default route for the network interface that you added.

  1. Click Start, click Run, type cmd in the Open box, and then click OK.

  2. Type route print, and then press ENTER to view the routing table. Note the interface number of the network interface that you re-added.

  3. Type the following command, and then press ENTER route add 0.0.0.0 mask 0.0.0.0 gateway IP metric 30 if Interface number
    where gateway IP is the IP address of the default gateway for this interface, and where Interface number is the number that corresponds to the network interface that you added (for example, 2). For example, if your default gateway IP address is 192.168.1.1 and the interface number is 2, type the following command, and then press ENTER:

    route add 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 30 if 2
    
  4. Type route print to verify that the new default route appears in the routing table.

  5. Close the command prompt.

Workaround 2: Restart the remote access service

Restart the remote access service. The default route for the re-added network interface is added to the Windows routing table.

  1. Start the Routing and Remote Access utility.
  2. Under Routing and Remote Access, right-click the server where you re-added the network interface, point to All Tasks, and then click Restart.

Workaround 3: Restart the server

Restart the remote access server. The default route for the re-added network interface is added to the Windows routing table.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。