无线(Wireless)网络现在已经大部分取代了有线局域网(LAN),你会发现到处都有大量的无线网络。Windows 11/10 提供了多种使用任务栏、控制面板、设置应用程序和命令提示符(Command Prompt)来管理无线网络的方法。
在提到的所有选项中,命令提示符(Command Prompt)有助于有效地管理和控制您的无线网络。命令行实用程序有助于执行高级功能、排除故障并解决Windows 11/10中的主要无线网络问题。
用于管理无线(Wireless)网络的命令行工具
在本文中,我们列出了一些在Windows 11/10命令提示符(Command Prompt)管理无线网络的有用命令:
- 平
- 示踪剂
- 铺路
- IPCONFIG
- GETMAC
- NSLOOKUP
- NETSH
- 路线
- 网络统计
- ARP。
让我们简要地看一下它们的功能。
1]平
Ping 是用于测试网络连接的命令行实用程序。ping 命令通过网络向特定域名或目标 IP 地址发送数据包,并检查是否成功接收到来自目标地址的响应。此外,它估计数据包到达目的地地址并返回所需的大致往返时间。键入ping www.google.com(或键入您要测试的 Internet 服务器)
您还可以使用带有高级开关的 ping 命令进行故障排除。要了解高级选项,请在CMD(CMD)中执行以下操作:
command ping /?
例如,键入 以下内容( the following )(或键入要发送的 Internet 服务器和数据包大小)以增加数据包数量:
ping www.google.com - n 10
2] 示踪剂
Tracert是一个命令行实用程序,用于跟踪通过网络发送的数据包的路由。与 ping 一样,Tracert(Just)用于(Tracert)测试网络连接问题。该命令跟踪数据包到达目的地的路线,并告诉您它遇到了多少个节点才能到达目的地服务器。如果您遇到网络连接问题,此命令会告诉您问题发生在哪一跳。
键入以下内容(或键入您要测试的 Internet 服务器)-
tracert www.google .com
输出显示每个跃点的详细列表以及节点的 IP 地址以及Windows与该特定跃点之间的延迟。
3] 路径
Pathping 是用于解决网络连接问题的命令行实用程序。该命令在功能上与 Tracert 类似,但更详细的数据包路由信息。
该命令将数据包发送到目标地址并详细分析路由。它以每跳为基础计算数据包丢失,并帮助找出有问题的跳。
执行以下命令(或键入要测试的域服务器):
pathping www.google.com
4] IP配置
Ipconfig是一种流行的命令行实用程序,用于测试TCP/IP网络上的网络连接问题。它提供了有关IPv4地址、WLAN 适配器(WLAN Adapter)和以太网适配器(Ethernet Adapter)的详细信息。它通常与开关一起使用以执行某些任务。
执行以下操作以查看连接配置 -
ipconfig/all
执行以下操作以了解有关高级开关的更多信息-
ipconfig /?
阅读(Read):解决 Windows Server 网络连接问题(Troubleshoot Windows Server Network connectivity issues)。
5] GETMAC
Getmac是一个命令行实用程序,用于检索您的计算机以及远程计算机的 mac 地址。(retrieve the mac address)在Windows中,MAC地址只不过是用于识别连接到计算机网络的设备的物理地址。您可以使用 mac 地址来限制连接到网络的硬件设备。
键入命令以获取连接到网络的每个硬件的 MAC 地址:
getmac
6] NSLOOKUP
Nslookup是一个命令行实用程序,用于查找域名系统(Domain Name System)以获取域名、IP 地址或DNS记录等信息。该命令主要用于查找某个主机的 IP 地址。
例如,输入这个(或输入您要查询的主机名)-
nslookup www.google.com
7] NETSH
Netsh是一个命令实用程序,用于显示系统中每个网络适配器的网络配置。将此命令与开关一起使用,您可以修改本地和远程计算机上的网络设置。
要了解所有命令类型:
netsh /?
阅读(Read):高级命令提示符或 CMD 技巧(Advanced Command Prompt or CMD Tricks)。
8] 路线
Route命令用于查看、添加或删除路由表的行内容。route 命令用于与其他交换机一起查看路由、添加路由、删除路由或修改现有路由。
在命令提示符( i)下键入此命令以了解更多信息:
route /?
9] 网络统计
Netstat是一个网络实用程序命令,用于显示网络和协议统计信息。它列出了有关TCP/UDP端点、路由表和网络接口的信息。它显示您计算机上所有活动的TCP/UDP 连接,并帮助您了解哪些端口地址为任务打开。
在命令提示符中键入此命令以查看TCP/UDP连接正在运行的所有端口地址 -
netstat /?
阅读(Read):每个 Windows 10 用户都应该知道的基本 PowerShell 命令。
10] ARP
ARP是一个命令行实用程序,用于显示已解析的Mac地址。它将 IP 地址显示并修改为地址解析协议使用的物理地址转换表。每次您的计算机使用ARP查找 IP 地址的Mac地址并将映射存储在 arp 缓存中以供将来查找时使用。
此命令可用于查找是否有任何重复的 IP 分配。要显示缓存条目类型:
arp -a
就这样。
Manage Wireless Networks using Command Prompt in Windows 11/10
Wireless networks have now mostly replaced wired LAN and you will find an abundance of wirеless networks everywhere. Windows 11/10 оffers various ways to managе your wireless networks using the tаskbar, control panеl, settings app, and Command Prompt.
Of all the options mentioned, the Command Prompt helps to efficiently manage and control your wireless networks. The command-line utility helps perform advanced functions, troubleshoot, and solve major wireless network issues in Windows 11/10.
Command-line tools to manage Wireless networks
In this article, we list some of the useful commands to manage wireless networks using Command Prompt in Windows 11/10:
- PING
- TRACERT
- PATHPING
- IPCONFIG
- GETMAC
- NSLOOKUP
- NETSH
- ROUTE
- NETSTAT
- ARP.
Let us take a look at their functions in brief.
1] PING
Ping is a command-line utility used to test network connectivity. The ping command sends a data packet to a specific domain name or a destination IP address over the network and checks if it receives a response successfully from the target address. Additionally, it estimates the approximate round trip time it takes for the data packets to travel destination address and return back. Type ping www.google.com (or type internet server you want to test )
You can also use the ping command with advanced switches for troubleshooting. To know the advanced options execute the following in CMD:
command ping /?
For example, type the following (or type the internet server and packet size you want to send ) to increase the number of packets:
ping www.google.com - n 10
2] TRACERT
Tracert is a command-line utility used to trace the route of the data packets sent over the network. Just like ping, Tracert is used to test network connectivity issues. The command traces the route of the data packets to reach the destination and tells you how many nodes it encountered to reach the destination server. If you are facing network connectivity issues, this command tells you on which hop the problem is occurring.
Type the following (or type internet server you want to test)-
tracert www.google .com
The output shows the detailed list of each hop along with the IP address of the node and latency between your Windows and that particular hop.
3] PATHPING
Pathping is a command-line utility used to troubleshoot network connectivity issues. This command is similar to Tracert in function but more detailed information of the data packet route.
The command sends data packets to a destination address and analyzes the route in detail. It computes packet loss on a per-hop basis and helps find out the problematic hop.
Execute the following (or type domain server you want to test):
pathping www.google.com
4] IPCONFIG
Ipconfig is a popular command-line utility used to test network connectivity issues on a TCP/IP network. It gives detailed information about the IPv4 address, WLAN Adapter, and Ethernet Adapter. It is often used with switches to execute certain tasks.
Execute the following to view connection configurations-
ipconfig/all
Execute the following to know more about the advanced switches-
ipconfig /?
Read: Troubleshoot Windows Server Network connectivity issues.
5] GETMAC
Getmac is a command-line utility used to retrieve the mac address of your computer as well as remote computers. In Windows, MAC address is nothing but a physical address used to identify devices connected to your computer network. You can use a mac address to limit the hardware devices connected to the network.
Type the command to get mac addresses of each hardware connected to the network:
getmac
6] NSLOOKUP
Nslookup is a command-line utility for finding out the Domain Name System to obtain information like domain name, IP address or DNS records. This command is basically used to find the IP address of a certain host.
For example, type this (or type the hostname you want to query)-
nslookup www.google.com
7] NETSH
Netsh is a command utility used to display the network configuration of every network adapter in your system. Using this command with switches you can modify the network settings on a local as well as a remote computer.
To know all the commands type:
netsh /?
Read: Advanced Command Prompt or CMD Tricks.
8] ROUTE
Route command is used to view, add, or delete the row contents of the routing table. The route command is used with other switches to view the route, add the route, delete route, or modify the existing route.
Type this command in the command prompt to know more:
route /?
9] NETSTAT
Netstat is a networking utility command used to display the network and protocol statistics. It lists the information about endpoints of TCP/UDP, routing table and network interface. It displays all the active TCP/UDP connections on your computer and helps you know on which port address are open for tasks.
Type this in the command prompt to view all the port addresses on which TCP/UDP connections are running-
netstat /?
Read: Basic PowerShell commands that every Windows 10 user should know.
10] ARP
ARP is a command-line utility used to display a resolved Mac address. It displays and modifies the IP address to physical address translation tables used by address resolution protocol. Every time your computer uses ARP to find out the Mac address for an IP address and stores the mapping in arp cache for future lookups.
This command is useful to find if there is any duplicate IP assignment. To display the cache entry type:
arp -a
That’s all.