禁止网卡和启动网卡的DOS命令?急!在线等......

飞天诚信-丁丁 2003-10-21 11:03:31
我想试问一下,有没有一些dos命令可以实现禁止和启动网卡功能!!
...全文
613 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
由于昨天我的 网络 出了点问题 所以 昨天下午一直登陆不到 论坛!今天结贴!
派发 分数!
niyh 2003-10-21
  • 打赏
  • 举报
回复
net stop

net start
  • 打赏
  • 举报
回复
我的系统是windows2000 想在 系统中 通过 dos命令 来 禁止网卡运行!请 各位大侠帮小弟一把!我在这谢过了 !!在线等...比较急!!
wwsz 2003-10-21
  • 打赏
  • 举报
回复
唉~~~~~~~~~~~~楼上的我们的英文不是太好你能不能给反译一下呀每一部分的解释不胜感谢:(
  • 打赏
  • 举报
回复
sungod8(琤) 大侠谢谢了!!
我赶紧试试!再次感谢!

sungod8 2003-10-21
  • 打赏
  • 举报
回复
D:\tools>ifconfig

usage: ifconfig <interface> | -a | -au | -ad
[ renew | release ]
[ dhcp ] [dhcpMac <mac>] |
[ <address> netmask <mask> [ gw <address> ] ]
[ add | del [ persist ] ]

examples:
ifconfig -au
[lists all up interfaces and settings]

ifconfig if0 release
[releases dhcp acquired address on interface 0]

ifconfig if1 dhcp dhcpMac 1234abcd persist
[enables dhcp on if1 for next boot and sets mac used in request]

ifconfig if2 169.254.0.4 netmask 255.255.0.0 add persist
[adds address/netmask to if2 and persists the change]
[if iterface was previously dhcp see notes above]

ifconfig if2 169.254.0.4 netmask ffff0000 gw 169.254.0.1 add
[adds default gateway to if2 but does not persist the change]

D:\tools>ifconfig -au

if65540:spd=100Mbps<up,static,Intel(R) PRO/1000 MTW Network Connection> mtu 1500
inet xxx.xx.xx.xx netmask ffffffe0 broadcast xxx.xx.xx.xx
gateway xxx.xx.xx.xx netmask ffffffe0
ether 00:08:74:4F:B2:79

if65539: spd=100Mbps<up,static,D-Link DFE-530TX PCI Fast Ethernet Adapter (rev.C
)> mtu 1500
inet 192.168.7.3 netmask ffffff00 broadcast 192.168.7.0
inet 192.168.6.3 netmask ffffff00 broadcast 192.168.6.0
gateway 0.0.0.0 netmask 00000000
ether 00:40:05:15:4F:C1

D:\tools>
sungod8 2003-10-21
  • 打赏
  • 举报
回复
网上有个IFCONFIG.EXE程序,可以达到你的要求,WINDOWS自带的命令没有这个功能!
  • 打赏
  • 举报
回复
netsh 好像也是只能停止什么 服务的吧!我最根本的 目的就是相当于 把网卡从机子上 拔掉!达到这个效果!就是中断网络连接!断掉它!谢谢 dshunp 的热情解答!
等待 高人继续解答!!等待中...
客户有话说 2003-10-21
  • 打赏
  • 举报
回复
netsh
  • 打赏
  • 举报
回复
谢谢yztgx(静风) 大侠的 解答!
小弟 无能 能能给个明确的答复哪??
ipconfig /? 使用来配置ip的!有没有 纯粹的 命令哪?
?等待您的解答!!
  • 打赏
  • 举报
回复
请问 就这么简单么?
我已经试过了,但这个命令只能停止网络服务,网络连接还是停止不了!能不能
找一个命令 不用重起计算机,输入之后 就可以 断开网卡连接,输入命令就可以恢复
网卡连接哪???继续期待解答!! 感谢 niyh(倪)的解答!!!谢谢!!
yztgx 2003-10-21
  • 打赏
  • 举报
回复
C:\>ipconfig /?

Windows 2000 IP Configuration


USAGE:
ipconfig [/? | /all | /release [adapter] | /renew [adapter]
| /flushdns | /registerdns
| /showclassid adapter
| /setclassid adapter [classidtoset] ]

adapter Full name or pattern with '*' and '?' to 'match',
* matches any character, ? matches one character.
Options
/? Display this help message.
/all Display full configuration information.
/release Release the IP address for the specified adapter.
/renew Renew the IP address for the specified adapter.
/flushdns Purges the DNS Resolver cache.
/registerdns Refreshes all DHCP leases and re-registers DNS names
/displaydns Display the contents of the DNS Resolver Cache.
/showclassid Displays all the dhcp class IDs allowed for adapter.
/setclassid Modifies the dhcp class id.

不知道这个可不可以实现类似的功能
yztgx 2003-10-21
  • 打赏
  • 举报
回复
niyh(倪)说的好像不对吧,那个是停止开启服务的,而没有是禁止网卡的功能

6,185

社区成员

发帖
与我相关
我的任务
社区描述
windows网络管理与配置
社区管理员
  • 网络管理与配置社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧