首页 | DV动态 | 数码产品 | 视频采编 | 网站建设 |
【收藏DV】
  最近3月排行
·赤马劫
·985、211、双一流
·上了大学也没体面工作,我们是否还要上大学- 附一组数据
·许小年:碎片化信息让人变得无知,要少看手机多读书
·许小年:浅析日本失去的30年——兼评“资产负债表衰退”
·高中英语-单词表
·常用网管软件下载,持续更新中...
Win32环境下命令行模式下禁用或启用网卡
2007/5/9 14:18:50
 

如何在XP的命令行模式下禁用或启用网卡

先看show interface 的结果, 然后选择你要disable的interface. 注意带空格的名称需要用引号.

netsh interface show interface

Admin State State Type Interface Name
-------------------------------------------------------------------------
Enabled Unreachable Dedicated Local Area Connection 2
Enabled Unreachable Dedicated Local Area Connection
Enabled Unreachable Internal Internal
Enabled Unreachable Loopback Loopback

netsh interface set interface name="Local Area Connection" admin=DISABLED



在中文win2000下出现错误:
一个或多个基本参数没有指定
此命令提供的语法不正确。请查看帮助以获取正确的语法信息。

用法 set interface [name = ] IfName
[ [admin = ] ENABLED|DISABLED
[connect = ] CONNECTED|DISCONNECTED
[newname = ] NewName ]

设置接口参数。

IfName - 接口名称
admin - 接口是否被启用 (仅用于非 LAN)。
connect - 是否连接接口 (仅用于非 LAN)。
newname - 接口的新名称 (仅用于非 LAN)。

注意:
- 除名称外,还必须至少指定一个选项。
- 如果 connect = CONNECTED 被指定,那么接口被自动
启用,甚至在 admin = DISABLED 选项被指定时也是如
此。


netsh interface set interface name="本地连接" admin=DISABLED






Win32环境下命令行模式下禁用或启用网卡

先看show interface 的结果, 然后选择你要disable的interface. 注意带空格的名称需要用引号.

运行如下命令:
netsh interface show interface

将显示类似下面的画面:
Admin State State Type Interface Name
-------------------------------------------------------------------------
Enabled Unreachable Dedicated Local Area Connection 2
Enabled Unreachable Dedicated Local Area Connection
Enabled Unreachable Internal Internal
Enabled Unreachable Loopback Loopback

运行如下命令禁用名称为"Local Area Connection"的网卡:
netsh interface set interface name="Local Area Connection" admin=DISABLED
把结尾的"DISABLED"改为"ENABLED"为开启指定的网卡. (DVOL本文转自:中国DV传媒 http://www.dvol.cn)

欢迎关注微信公众账号:手机烟台(mYantai)

 

  上一篇:绝妙招数 轻松避免IP地址被非法修改
  下一篇:电池电量的两种测试方法
      更多...
::打印本页 ::      ::关闭窗口::


版权所有© 数码在线网站 DV OnLine©  鲁ICP备12016322号-1