> For AI agents: the complete documentation index is available at https://www.tteam.icu/llms.txt, the full documentation bundle is available at https://www.tteam.icu/llms-full.txt.

# route

通过配置 Windows 路由表，可以实现电脑同时连接内外网。

## 实现内外网通联

### 删除掉默认的配置

```powershell
route delete 0.0.0.0
```

### 增加内网路由

```powershell
# route add <需要通内网的网段> mask <电子掩码> <内网的网关> -p

route add 10.10.10.0 mask 255.255.255.0 10.10.10.1 -p
```

### 增加外网路由

```powershell
# route add <需要通外网的网段> mask <电子掩码> <外网的网关> -p

route add 0.0.0.0 mask 0.0.0.0 192.168.1.1 -p
```

## 外网修改网关

### 查看当前的路由

```powershell
route print
```

### 删除外网路由

```powershell
route delete 0.0.0.0
```

### 增加新的外网路由

```powershell
# route add <需要通外网的网段> mask <电子掩码> <外网的网关> -p

route add 0.0.0.0 mask 0.0.0.0 192.168.1.1 -p
```
