netsh
1.查看网口的Idx值
netsh i i show in

2.绑定IP/MAC
netsh -c “i i” add ne Idx值 iP地址 mac
netsh -c “i i” add ne 为netsh -c “interface ipv4”
add ne 为add neighbors的缩写。

3.查看是否绑定成功
arp -a

4.删除绑定的IP/MAC
netsh -c “i i” delete neighbors 16

使用Netsh命令管理网络配置
本文介绍如何利用Netsh命令进行网络配置管理,包括查看网口Idx值、绑定IP与MAC地址、检查绑定状态及解除绑定等操作步骤。Netsh是一个强大的网络配置工具,通过本文,读者可以掌握其基本用法。
netsh
1.查看网口的Idx值
netsh i i show in

2.绑定IP/MAC
netsh -c “i i” add ne Idx值 iP地址 mac
netsh -c “i i” add ne 为netsh -c “interface ipv4”
add ne 为add neighbors的缩写。

3.查看是否绑定成功
arp -a

4.删除绑定的IP/MAC
netsh -c “i i” delete neighbors 16


被折叠的 条评论
为什么被折叠?