skip to content
Logo 三七の小站

Windows 指点网卡为网络出入口

/ 1 min read

1. 查看接口信息

Terminal window
ipconfig
===========================================================================
接口列表
16...d4 93 90 22 69 f1 ......Intel(R) Ethernet Connection (22) I219-V
49...00 15 5d 27 5e 8f ......Hyper-V Virtual Ethernet Adapter #3
5...f4 c8 8a 30 e9 86 ......Intel(R) Wi-Fi 6E AX211 160MHz
10...00 e0 4c 99 08 10 ......Realtek USB GbE Family Controller
35...f4 c8 8a 30 e9 87 ......Microsoft Wi-Fi Direct Virtual Adapter
53...f6 c8 8a 30 e9 86 ......Microsoft Wi-Fi Direct Virtual Adapter #2
8...f4 c8 8a 30 e9 8a ......Bluetooth Device (Personal Area Network)
1...........................Software Loopback Interface 1
===========================================================================

2. 设置指定网段指定网关

Terminal window
route -p add 192.168.37.0 MASK 255.255.255.0 192.168.36.1 IF 10

3、删除

Terminal window
route delete 192.168.37.0 MASK 255.255.255.0 192.168.36.1 IF 10