Windows 2000XP2003 常用的网络命令
- 格式:doc
- 大小:81.00 KB
- 文档页数:10
shutdown命令定时关机全攻略(2000/XP/2003)用系统自带指令实现Windows XP/2003 定时自动关机今天有人问到如何实现定时自动关机,给出了用at和shutdown指令实现的方法,我自己常用的是PowerOff软件来实现,试了下at指令,发现还是挺方便的。
先说下系统自带的关机指令,很多人应该已经知道了,就是shutdown,不带参数执行将会列出它的参数,常用参数为:-s 关闭计算机-r 关闭并重启动计算机-f 强制正在运行的应用程序关闭而不事先警告用户-t xxx 设置关闭前的超时为xxx 秒,默认为30另外,在倒计时过程输入shutdown /a可以取消关机或重启,不加/t参数执行则倒计时30秒。
一般需要立即关机可以这样写:(将/s参数换成/r参数就是立即重启)shutdown -f -s -t 0shutdown支持对远程计算机进行操作,需要使用-m参数,如:shutdown -f -s -m \\\\test在30秒后强制将局域网中名为test的计算机关闭再说下at指令,它的作用是计划在指定时间和日期在计算机上运行命令和程序。
在命令行下输入at /?将列出它的帮助信息,在“帮助和支持中心”里有更详细的解释及示例。
假设想实现晚上23:30自动关机,可以这么写:at 23:30 shutdown -f -s -t 0成功的话会有类似这样的信息回应:新加了一项作业,其作业ID = 1要取消这个定时关机的话,有两种方法方法一、命令行不带任何参数执行at,将会列出已经设定的内容,记下状态ID号,比如本例为1,然后输入:at 1 /delete也可以简写为:at 1 /d不加序列号使用/d参数将会删除所有设定的内容,如果想不经确认删除所有设定的内容,可用:at /d /y方法二、任务计划用at指令设定的定时执行指令可在“控制面板”的“任务计划”中看到,要取消的话删除就行了。
如果你只是临时用用,比如只是当天需要定时自动关机,用上述指令就行了。
实验二熟悉常用的网络命令实验报告姓名:陈津生班级:12级数字媒体技术2班学号:2012329700056指导教师:张芳1.实验目的:学会使用常用ping ,ipconfig, nslookup, arp ,tracert等常用网络测试命令检测网络连通、了解网络的配置状态,跟踪路由诊断域名系统等相关网络问题。
2实验环境:(1)运行windows 2000/2003/xp操作系统的PC一台(2)每台PC机具有一块网卡,通过双绞线与局域网网相连。
(3)局域网能连接Internet3.实验步骤:ftp://10.16.23.2用户名:1234567891234密码:01234561、ARP: 显示和修改IP地址与物理地址之间的转换表C:\Documents and Settings\ligong>ARP -aInterface: 10.16.24.18 --- 0x10003Internet Address Physical Address Type192.168.1.3 00-00-00-00-00-00 invalidC:\Documents and Settings\ligong>ARP -gInterface: 10.16.24.18 --- 0x10003Internet Address Physical Address Type192.168.1.3 00-00-00-00-00-00 invalidC:\Documents and Settings\ligong>ARP -dC:\Documents and Settings\ligong>ARP -sDisplays and modifies the IP-to-Physical address translation tables used by address resolution protocol (ARP).ARP -s inet_addr eth_addr [if_addr]ARP -d inet_addr [if_addr]ARP -a [inet_addr] [-N if_addr]-a Displays current ARP entries by interrogating the currentprotocol data. If inet_addr is specified, the IP and Physical addresses for only the specified computer are displayed. Ifmore than one network interface uses ARP, entries for each ARP table are displayed.-g Same as -a.inet_addr Specifies an internet address.-N if_addr Displays the ARP entries for the network interface specified by if_addr.-d Deletes the host specified by inet_addr. inet_addr may bewildcarded with * to delete all hosts.-s Adds the host and associates the Internet address inet_addrwith the Physical address eth_addr. The Physical address is given as 6 hexadecimal bytes separated by hyphens. The entry is permanent.eth_addr Specifies a physical address.if_addr If present, this specifies the Internet address of theinterface whose address translation table should be modified. If not present, the first applicable interface will be used. Example:> arp -s 157.55.85.212 00-aa-00-62-c6-09 .... Adds a static entry.> arp -a .... Displays the arp table.2、ftp:(功能就不用描述了,请参看下面的具体用法)ftp> open 10.16.23.2Connected to 10.16.23.2.220 欢迎登陆计算机基础教研室FTP服务器User (10.16.23.2:(none)): 1234567891234331 User name okay, need password.Password:230 User logged in, proceed.ftp> -vInvalid command.ftp> ftp -vInvalid command.ftp> ftp [-v]Invalid command.ftp> cdRemote directory ftp !550 /ftp: No such file or directory.ftp> !Microsoft Windows XP [版本 5.1.2600](C) 版权所有 1985-2001 Microsoft Corp.3、IpconfigC:\Documents and Settings\ligong>ipconfigWindows IP ConfigurationEthernet adapter 本地连接 2:Connection-specific DNS Suffix . :IP Address. . . . . . . . . . . . : 192.168.1.119Subnet Mask . . . . . . . . . . . : 255.255.255.0Default Gateway . . . . . . . . . : 192.168.1.1C:\Documents and Settings\ligong>4、Nbtstat.exeC:\Documents and Settings\ligong>nbtstat.exeDisplays protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP).NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n][-r] [-R] [-RR] [-s] [-S] [interval] ]-a (adapter status) Lists the remote machine's name table given its name-A (Adapter status) Lists the remote machine's name table given itsIP address.-c (cache) Lists NBT's cache of remote [machine] names and their IP addresses-n (names) Lists local NetBIOS names.-r (resolved) Lists names resolved by broadcast and via WINS-R (Reload) Purges and reloads the remote cache name table-S (Sessions) Lists sessions table with the destination IP addresses -s (sessions) Lists sessions table converting destination IPaddresses to computer NETBIOS names.-RR (ReleaseRefresh) Sends Name Release packets to WINS and then, starts Refr eshRemoteName Remote host machine name.IP address Dotted decimal representation of the IP address.interval Redisplays selected statistics, pausing interval secondsbetween each display. Press Ctrl+C to stop redisplayingstatistics.C:\Documents and Settings\ligong>nbtstat -CDisplays protocol statistics and current TCP/IP connections u(NetBIOS over TCP/IP).NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n][-r] [-R] [-RR] [-s] [-S] [interval] ]-a (adapter status) Lists the remote machine's name table-A (Adapter status) Lists the remote machine's name tableIP address.-c (cache) Lists NBT's cache of remote [machine]addresses-n (names) Lists local NetBIOS names.-r (resolved) Lists names resolved by broadcast and-R (Reload) Purges and reloads the remote cache n-S (Sessions) Lists sessions table with the destina-s (sessions) Lists sessions table converting destiaddresses to computer NETBIOS names.-RR (ReleaseRefresh) Sends Name Release packets to WINS aneshRemoteName Remote host machine name.IP address Dotted decimal representation of the IP addresinterval Redisplays selected statistics, pausing intervbetween each display. Press Ctrl+C to stop redstatistics.C:\Documents and Settings\ligong>nbtstat -n本地连接 2:Node IpAddress: [192.168.1.119] Scope Id: []NetBIOS Local Name TableName Type Status---------------------------------------------H16 <00> UNIQUE RegisteredH16 <20> UNIQUE Registered2HJF <00> GROUP Registered2HJF <1E> GROUP RegisteredC:\Documents and Settings\ligong>nbtstat -s本地连接 2:Node IpAddress: [192.168.1.119] Scope Id: []No Connections5、net:C:\Documents and Settings\ligong>net此命令的语法是:NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION | SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ] C:\Documents and Settings\ligong>C:\Documents and Settings\ligong>net此命令的语法是:NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILEHELPMSG | LOCALGROUP | NAME | PAUSE | PRINT |SHARE | START | STATISTICS | STOP | TIME | USEC:\Documents and Settings\ligong>netstat.exeActive ConnectionsProto Local Address Foreign AddressTCP H16:1455 localhost:ftpTCP H16:2078 125.77.199.30:8000 TCP H16:2085 localhost:4809TCP H16:2086 localhost:netbios-ss TCP H16:2088 localhost:netbios-ss TCP H16:2090 localhost:netbios-ss TCP H16:2091 localhost:microsoft-C:\Documents and Settings\ligong>netstat -asIPv4 StatisticsPackets Received = 188648Received Header Errors = 0Received Address Errors = 41385Datagrams Forwarded = 0Unknown Protocols Received = 0Received Packets Discarded = 1636Received Packets Delivered = 158463Output Requests = 11606Routing Discards = 0Discarded Output Packets = 0Output Packet No Route = 0Reassembly Required = 0Reassembly Successful = 0Reassembly Failures = 0Datagrams Successfully Fragmented = 0Datagrams Failing Fragmentation = 0Fragments Created = 0ICMPv4 StatisticsReceived SentMessages 36 37Errors 0 0Destination Unreachable 3 4Time Exceeded 0 0Parameter Problems 0 0Source Quenches 0 0Redirects 0 0Echos 31 2Echo Replies 2 31Timestamps 0 0Timestamp Replies 0 0Address Masks 0 0Address Mask Replies 0 0TCP Statistics for IPv4Active Opens = 415Passive Opens = 57Failed Connection Attempts = 145Reset Connections = 29Current Connections = 3Segments Received = 1888Segments Sent = 2228Segments Retransmitted = 276UDP Statistics for IPv4Datagrams Received = 213179No Ports = 4718Receive Errors = 95Datagrams Sent = 90466、Netstat.exeC:\Documents and Settings\ligong>netstat.exeActive ConnectionsProto Local Address Foreign Address StateTCP H16:1455 localhost:ftp CLOSE_WAITTCP H16:2166 localhost:4809 SYN_SENTTCP H16:2167 125.77.199.30:8000 ESTABLISHED7、Ping.exeC:\Documents and Settings\ligong>ping.exeUsage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS][-r count] [-s count] [[-j host-list] | [-k host-list]][-w timeout] target_nameOptions:-t Ping the specified host until stopped.To see statistics and continue - type Control-Break To stop - type Control-C.-a Resolve addresses to hostnames.-n count Number of echo requests to send.-l size Send buffer size.-f Set Don't Fragment flag in packet.-i TTL Time To Live.-v TOS Type Of Service.-r count Record route for count hops.-s count Timestamp for count hops.-j host-list Loose source route along host-list.-k host-list Strict source route along host-list.-w timeout Timeout in milliseconds to wait for each reply.8、Route.exeC:\Documents and Settings\ligong>route.exeManipulates network routing tables.ROUTE [-f] [-p] [command [destination][MASK netmask] [gateway] [METRIC metric] [IF interface]-f Clears the routing tables of all gateway entries. If this isused in conjunction with one of the commands, the tables arecleared prior to running the command.-p When used with the ADD command, makes a route persistent across boots of the system. By default, routes are not preservedwhen the system is restarted. Ignored for all other commands,which always affect the appropriate persistent routes. Thisoption is not supported in Windows 95.command One of these:PRINT Prints a routeADD Adds a routeDELETE Deletes a routeCHANGE Modifies an existing routedestination Specifies the host.MASK Specifies that the next parameter is the 'netmask' value.netmask Specifies a subnet mask value for this route entry.If not specified, it defaults to 255.255.255.255.gateway Specifies gateway.interface the interface number for the specified route.METRIC specifies the metric, ie. cost for the destination.All symbolic names used for destination are looked up in the network database file NETWORKS. The symbolic names for gateway are looked up in the host name database file HOSTS.If the command is PRINT or DELETE. Destination or gateway can be a wildcard, (wildcard is specified as a star '*'), or the gateway argument may be omitted.If Dest contains a * or ?, it is treated as a shell pattern, and onlymatching destination routes are printed. The '*' matches any string,and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*. Diagnostic Notes:Invalid MASK generates an error, that is when (DEST & MASK) != DEST.Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1The route addition failed: The specified mask parameter is invalid. (Destination & Mask) != Destination.Examples:> route PRINT> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2destination^ ^mask ^gateway metric^ ^Interface^If IF is not given, it tries to find the best interface for a given gateway.> route PRINT> route PRINT 157* .... Only prints those matching 157*> route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2CHANGE is used to modify gateway and/or metric only.> route PRINT> route DELETE 157.0.0.0> route PRINTC:\Documents and Settings\ligong>9、Telnet.exe欢迎使用 Microsoft Telnet ClientEscape 字符是 'CTRL+]'Microsoft Telnet> displayEscape 字符是 'CTRL+]'将验证身份(NTLM Authentication)关闭本地回显新行模式 - return 键发送 CR 和 LF当前模式: 控制台Will 终端类型优选的终端类型为 ANSIMicrosoft Telnet> status没有连接Microsoft Telnet> ?/help命令可以缩写。
网络命令行操作Windows 2k/2003 Server1.最基本,最常用的,测试物理网络的ping 192.168.10.88 -t ,参数-t是等待用户去中断测试2.查看DNS、IP、Mac等A.Win98:winipcfgB.Win2000以上:Ipconfig/allC.NSLOOKUP:如查看河北的DNSC:\>nslookupDefault Server: Address: 202.99.160.68>server 202.99.41.2 则将DNS改为了41.2> Server: Address: 202.99.160.68Non-authoritative answer:Name: Address: 202.99.160.2123.网络信使Net send 计算机名/IP|* (广播) 传送内容,注意不能跨网段net stop messenger 停止信使服务,也可以在面板-服务修改net start messenger 开始信使服务4.探测对方对方计算机名,所在的组、域及当前用户名ping -a IP -t ,只显示NetBios名nbtstat -a 192.168.10.146 比较全的stat -a 显示出你的计算机当前所开放的所有端口netstat -s -e 比较详细的显示你的网络资料,包括TCP、UDP、ICMP 和 IP的统计等6.探测arp绑定(动态和静态)列表,显示所有连接了我的计算机,显示对方IP和MAC地址arp -a7.在代理服务器端捆绑IP和MAC地址,解决局域网内盗用IP:ARP -s 192.168.10.59 00-50-ff-6c-08-75解除网卡的IP与MAC地址的绑定:arp -d 网卡IP8.在网络邻居上隐藏你的计算机net config server /hidden:yesnet config server /hidden:no 则为开启9.几个net命令A.显示当前工作组服务器列表 net view,当不带选项使用本命令时,它就会显示当前域或网络上的计算机上的列表。
1. gpedit.msc—–组策略2. sndrec32——-录音机3. Nslookup——-IP地址侦测器,是一个监测网络中DNS 服务器是否能正确实现域名解析的命令行工具。
它在Windows NT/2000/XP 中均可使用, 但在Windows 98 中却没有集成这一个工具。
4. explorer——-打开资源管理器5. logoff———注销命令6. shutdown——-60秒倒计时关机命令7. lusrmgr.msc—-本机用户和组8. services.msc—本地服务设置9. oobe/msoobe /a—-检查XP是否激活10. notepad——–打开记事本11. cleanmgr——-垃圾整理12. net start messenger—-开始信使服务13. compmgmt.msc—计算机管理14. net stop messenger—–停止信使服务15. conf———–启动netmeeting16. dvdplay——–DVD播放器17. charmap——–启动字符映射表18. diskmgmt.msc—磁盘管理实用程序19. calc———–启动计算器20. dfrg.msc——-磁盘碎片整理程序21. chkdsk.exe—–Chkdsk磁盘检查22. devmgmt.msc—设备管理器23. regsvr32 /u *.dll—-停止dll文件运行24. drwtsn32——系统医生25. rononce -p—-15秒关机26. dxdiag———检查DirectX信息27. regedt32——-注册表编辑器28. Msconfig.exe—系统配置实用程序29. rsop.msc——-组策略结果集30. mem.exe——–显示内存使用情况31. regedit.exe—-注册表32. winchat——–XP自带局域网聊天33. progman——–程序管理器34. winmsd———系统信息35. perfmon.msc—-计算机性能监测程序36. winver———检查Windows版本37. sfc /scannow—–扫描错误并复原38. taskmgr—–任务管理器(2000/xp/200340. wmimgmt.msc—-打开windows管理体系结构(WMI)41. wupdmgr——–windows更新程序42. wscript——–windows脚本宿主设置43. write———-写字板45. wiaacmgr——-扫描仪和照相机向导46. winchat——–XP自带局域网聊天49. mplayer2——-简易widnows media player50. mspaint——–画图板51. mstsc———-远程桌面连接53. magnify——–放大镜实用程序54. mmc————打开控制台55. mobsync——–同步命令57. iexpress——-木马捆绑工具,系统自带58. fsmgmt.msc—–共享文件夹管理器59. utilman——–辅助工具管理器61. dcomcnfg——-打开系统组件服务62. ddeshare——-打开DDE共享设置63. osk————打开屏幕键盘64. odbcad32——-ODBC数据源管理器65. oobe/msoobe /a—-检查XP是否激活68. ntbackup——-系统备份和还原69. narrator——-屏幕“讲述人”70. ntmsmgr.msc—-移动存储管理器71. ntmsoprq.msc—移动存储管理员操作请求72. netstat -an—-(TC)命令检查接口73. syncapp——–创建一个公文包74. sysedit——–系统配置编辑器75. sigverif——-文件签名验证程序76. ciadv.msc——索引服务程序77. shrpubw——–创建共享文件夹78. secpol.msc—–本地安全策略79. syskey———系统加密,一旦加密就不能解开,保护windows xp系统的双重密码80. services.msc—本地服务设置81. Sndvol32——-音量控制程序82. sfc.exe——–系统文件检查器83. sfc /scannow—windows文件保护84. ciadv.msc——索引服务程序85. tourstart——xp简介(安装完成后出现的漫游xp程序)86. taskmgr——–任务管理器87. eventvwr——-事件查看器88. eudcedit——-造字程序89. compmgmt.msc—计算机管理90. packager——-对象包装程序91. perfmon.msc—-计算机性能监测程序92. charmap——–启动字符映射表93. cliconfg——-SQL SERVER 客户端网络实用程序94. Clipbrd——–剪贴板查看器95. conf———–启动netmeeting96. certmgr.msc—-证书管理实用程序97. regsvr32 /u *.dll—-停止dll文件运行98. regsvr32 /u zipfldr.dll——取消ZIP支持99. cmd.exe——–CMD命令提示符。
Windows系统常用的网络测试命令1. winipcfg(ipconfig)winipcfg和ipconfig都是用来显示主机内IP协议的配置信息。
只是winipcfg适用于Windows 95/98,而ipconfig适用于Windows NT/2000/XP。
winipcfg不使用参数,直接运行它,它就会采用Windows窗口的形式显示具体信息。
这些信息包括:网络适配器的物理地址、主机的IP地址、子网掩码以及默认网关等,点击其中的"其他信息",还可以查看主机的相关信息如:主机名、DNS服务器、节点类型等。
其中网络适配器的物理地址在检测网络错误时非常有用。
ipconfig的命令格式如下:ipconfig [/? | /all | /release [adapter] | /renew [adapter]]其中的参数说明如下:/? 显示ipconfig的格式和参数的英文说明;/all 显示所有的配置信息;/release 为指定的适配器(或全部适配器)释放IP地址(只适用于DHCP);/renew 为指定的适配器(或全部适配器)更新IP地址(只适用于DHCP)。
使用不带参数的ipconfig命令可以得到以下信息(如图二):IP地址、子网掩码、默认网关。
而使用ipconfig /all,则可以得到更多的信息:主机名、DNS服务器、节点类型、网络适配器的物理地址、主机的IP地址(IP Address)、子网掩码(Subnet Mask)以及默认网关(Default Gateway)等。
2. ping这个程序用来检测一帧数据从当前主机传送到目的主机所需要的时间。
它通过发送一些小的数据包,并接收应答信息来确定两台计算机之间的网络是否连通。
当网络运行中出现故障时,采用这个实用程序来预测故障和确定故障源是非常有效的。
如果执行ping不成功,则可以预测故障出现在以下几个方面:网线是否连通,网络适配器配置是否正确,IP地址是否可用等;如果执行ping成功而网络仍无法使用,那么问题很可能出在网络系统的软件配置方面,ping成功只能保证当前主机与目的主机间存在一条连通的物理路径。
实验1 网络基础与应用1.1 网络命令及应用【实验目的】通过实验,了解IP/TCP/UDP/ICMP等协议的结构及工作原理;熟悉并掌握常用网络命令的格式和使用方法。
【实验环境】两台以上装有Windows 2000/XP/2003操作系统的计算机。
【实验原理】本实验主要熟悉并使用常用的网络命令,包括:ping、ipconfig、netstat、tracert、net、at、nslookup等。
(1)pingping是使用频率极高的用来检查网络是否畅通或者网络连接速度快慢的网络命令,目的是通过改善特定形式的ICMP包来请求主机的回应,进而获得主机的一些属性。
用于确定本地主机是否能与另一主机交换数据包。
如果ping运行正确,就可以相信基本的连通性和配置参数没有问题。
通过ping命令,可以探测目标主机是否活动,可以查询目标主机的机器名,还可以配合arp命令查询目标主机的MAC地址,可以进行DDoS攻击,有时也可以推断目标主机操作系统,还可以直接ping一个域名来解析得到该域名对应的IP地址。
(2)ipconfig执行ipconfig/all,就会看到所有网络配置的基本信息,这些信息一般用来检测手工配置TCP/IP参数设置的正确性。
如果计算机和所在的局域网使用了DHCP(动态主机配置协议),那么执行ipconfig/all,可以了解计算机是否成功的租用到IP地址,如果租用到IP地址,则可以了解IP地址、子网掩码和默认网关等信息。
(3)netstatnetstat是一个功能强大的命令,用来显示计算机上网时与其他计算机之间详细的连接情况和统计信息(与IP、TCP、UDP和ICMP协议相关的统计数据)。
netstat命令一般用来检测本机各端口的网络连接情况。
(4)tracert用法:tracert IP地址或域名该命令用来显示数据包达到目的主机或经过每一个路由或网关的IP地址,并显示到达每个路由或网关所用的时间。
(二〇一六年 四月《计算机网络》课内练习题 目:常用网络命令详解 学生姓名:蔡 楠 学 院:理学院 系 别:数学系 专 业:信息与计算科学 班 级:信计14-1 任课教师:杜雅娟学校代码: 10128 学 号: 201420905013常用网络命令详解一、实验目的在操作Windows2000/XP/2003系统的过程中,都会或多或少会遇到这样或那样的问题;特别是网管员在维护单位的局域网或广域网时候,如果能掌握一些Windows系统的网络命令使用技巧,常常会给工作带来极大的方便,有时能起到事倍功半的效果,所以要详细了解Windows常用网络命令详解。
二、实验任务掌握LAN中常用的几种网络命令的使用三、实验设备实验所需设备有5类双绞线,计算机等。
四、相关基本知识计算机网络的基础知识及其网络命令的使用。
五、实验步骤1>ping步骤:1.ping IP地址,此命令被送到本计算机的IP软件,如果TCP/IP正常,该命令永不退出计算机。
2.ping本机IP,这个命令被送到计算机所配置的IP地址,计算机始终都应该对此ping命令做出回答,如果没有,则表示本地配置或安装存在问题。
此问题出现时,将局域网用户断开网络电缆的连接,然后重新发送该命令,如果断开后本命令正确,则表示另一台计算机可能配置了相同的IP。
3.ping局域网的其他IP,这个命令应该离开此计算机,经过网卡及网络电缆到达其他计算机,再返回。
收到回应表明本地网络中的网卡和载体运行正确。
但如果没有收到回应,表示子网掩码不正确或网卡配置错误或电缆系统有问题。
4.ping网关IP,这个命令如果应答正确,表示局域网中的网关路由器正在运行并能做出应答。
5.Ping远程IP,如果收到4个应答,表示成功的使用了缺省网关。
6.ping系统网络别名,每台计算机都有将别名转换为地址的功能,如果没做到这一点,说明主机文件中存在问题。
7.ping域名,通常是通过DNS服务器,如果这里出现故障,则表明DNS服务器的IP地址的配置不正确或DNS服务器有故障。
计算机综合知识:运行命令其实就是windows/system32下面的文件,去那里双击看看!在运行里->cmd->help 你会看到你想要的一切!把电脑里C:\WINDOWS\Help\ntcmds.chm这个文件提取出来,这是操作系统自带的命令帮助,所有命令都有的。
开始>运行>输入CMD回车>输入help 回车选择想要知道的命令!一般administrator就是超级管理员!administrator可以删掉其他用户,其他用户不能删重启按F8进入安全模式,里面有个Administrator的帐户。
用它登陆可以任意修改其它帐户的权限。
超级管理员通常指的都是admin或administrator,指的是拥有最高权限的账号,它可以赋于其它账号所有权限,但其它账号就算有了最高权限也无法对超级管理员管理及操作.administrator可以是超级管理员,但超级管理员又未必会是administrator,就如你自己开发了一套软件,你要设定谁是最高管理员,那谁就是最高管理员.在系统里面,一般分为下面几种权限,Administrators(管理员组)、Power Users(高级用户组)、Users(普通用户组)、Guests(来宾组)、Everyone(所有的用户)。
administrator,超级管理员用户,密码如果没有设置的话为空,不过这样是很不安全的。
安全模式只启动系统必须服务,不会加载启动项,在正常模式下点运行,输入msconfig,也可以管理启动项的加载。
杀毒的时候在安全模式下杀会比较好。
一、基本系统进程:Csrss.exe:这是子系统服务器进程,负责控制Windows创建或删除线程以及16位的虚拟DOS环境。
System Idle Process:这个进程是作为单线程运行在每个处理器上,并在系统不处理其它线程的时候分派处理器的时间。
Smss.exe:这是一个会话管理子系统,负责启动用户会话。
Windows 2003/XP/2003 常用的网络命令如果你玩过路由器的话,就知道路由器里面那些很好玩的命令缩写。
例如,"sh int" 的意思是"show interface"。
现在Windows 2003 也有了类似界面的工具,叫做netsh。
我们在Windows 2003 的cmd shell 下,输入netsh就出来:netsh> 提示符,输入int ip 就显示:interface ip>然后输入dump ,我们就可以看到当前系统的网络配置:# ----------------------------------# Interface IP Configuration# ----------------------------------pushd interface ip# Interface IP Configuration for "Local Area Connection"set address name = "Local Area Connection" source = static addr = 192.168.1.168mask = 255.255.255.0add address name = "Local Area Connection" addr = 192.1.1.111 mask = 255.255.255.0set address name = "Local Area Connection" gateway = 192.168.1.100 gwmetric = 1set dns name = "Local Area Connection" source = static addr = 202.96.209.5 set wins name = "Local Area Connection" source = static addr = nonepopd# End of interface IP configuration上面介绍的是通过交互方式操作的一种办法。
我们可以直接输入命令:"netsh interface ip add address "Local Area Connection" 10.0.0.2255.0.0.0"来添加IP 地址。
如果不知道语法,不要紧的哦!在提示符下,输入? 就可以找到答案了。
方便不方便啊?原来微软的东西里面,也有那么一些让人喜欢的玩意儿。
可惜,之至者甚少啊!Windows网络命令行程序这部分包括:使用ipconfig /all 查看配置使用ipconfig /renew 刷新配置使用ipconfig 管理DNS 和DHCP 类别ID使用Ping 测试连接使用Arp 解决硬件地址问题使用nbtstat 解决NetBIOS 名称问题使用netstat 显示连接统计使用tracert 跟踪网络连接使用pathping 测试路由器使用ipconfig /all 查看配置发现和解决TCP/IP 网络问题时,先检查出现问题的计算机上的TCP/IP 配置。
可以使用ipconfig 命令获得主机配置信息,包括IP 地址、子网掩码和默认网关。
注意,对于Windows 95 和Windows 98 的客户机,请使用winipcfg 命令而不是ipconfig 命令。
使用带/all 选项的ipconfig 命令时,将给出所有接口的详细配置报告,包括任何已配置的串行端口。
使用ipconfig /all,可以将命令输出重定向到某个文件,并将输出粘贴到其他文档中。
也可以用该输出确认网络上每台计算机的TCP/IP 配置,或者进一步调查TCP/IP 网络问题。
例如,如果计算机配置的IP 地址与现有的IP 地址重复,则子网掩码显示为0.0.0.0。
下面的范例是ipconfig /all 命令输出,该计算机配置成使用DHCP 服务器动态配置TCP/IP,并使用WINS 和DNS 服务器解析名称。
Windows 2003 IP ConfigurationNode Type.. . . . . . . . : HybridIP Routing Enabled.. . . . : NoWINS Proxy Enabled.. . . . : NoEthernet adapter Local Area Connection:Host Name.. . . . . . . . : DNS Servers . . . . . . . : 10.1.0.200Description. . . . . . . : 3Com 3C90x Ethernet AdapterPhysical Address. . . . . : 00-60-08-3E-46-07DHCP Enabled.. . . . . . . : YesAutoconfiguration Enabled.: YesIP Address. . . . . . . . . : 192.168.0.112Subnet Mask. . . . . . . . : 255.255.0.0Default Gateway. . . . . . : 192.168.0.1DHCP Server. . . . . . . . : 10.1.0.50Primary WINS Server. . . . : 10.1.0.101Secondary WINS Server. . . : 10.1.0.102Lease Obtained.. . . . . . : Wednesday, September 02, 1998 10:32:13 AM Lease Expires.. . . . . . : Friday, September 18, 1998 10:32:13 AM如果TCP/IP 配置没有问题,下一步测试能够连接到TCP/IP 网络上的其他主机。
使用ipconfig /renew 刷新配置解决TCP/IP 网络问题时,先检查遇到问题的计算机上的TCP/IP 配置。
如果计算机启用DHCP 并使用DHCP 服务器获得配置,请使用ipconfig /renew 命令开始刷新租约。
使用ipconfig /renew 时,使用DHCP 的计算机上的所有网卡(除了那些手动配置的适配器)都尽量连接到DHCP 服务器,更新现有配置或者获得新配置。
也可以使用带/release 选项的ipconfig 命令立即释放主机的当前DHCP 配置。
有关DHCP 和租用过程的详细信息,请参阅客户机如何获得配置。
注意:对于启用DHCP 的Windows 95 和Windows 98 客户,请使用winipcfg 命令的release 和renew 选项,而不是ipconfig /release 和ipconfig /renew 命令,手动释放或更新客户的IP 配置租约。
使用ipconfig 管理DNS 和DHCP 类别ID也可以使用ipconfig 命令:显示或重置DNS 缓存。
详细信息,请参阅使用ipconfig 查看或重置客户解析程序缓存。
刷新已注册的DNS 名称。
详细信息,请参阅使用ipconfig 更新DNS 客户注册。
显示适配器的DHCP 类别ID。
详细信息,请参阅显示客户机上的DHCP 类别ID 信息。
设置适配器的DHCP 类别ID。
详细信息,请参阅设置客户机上的DHCP 类别ID 信息。
使用Ping 测试连接Ping 命令有助于验证IP 级的连通性。
发现和解决问题时,可以使用Ping 向目标主机名或IP 地址发送ICMP 回应请求。
需要验证主机能否连接到TCP/IP 网络和网络资源时,请使用Ping。
也可以使用Ping 隔离网络硬件问题和不兼容配置。
通常最好先用Ping 命令验证本地计算机和网络主机之间的路由是否存在,以及要连接的网络主机的IP 地址。
Ping 目标主机的IP 地址看它是否响应,如下:ping IP_address使用Ping 时应该执行以下步骤:Ping 环回地址验证是否在本地计算机上安装TCP/IP 以及配置是否正确。
ping 127.0.0.1Ping 本地计算机的IP 地址验证是否正确地添加到网络。
ping IP_address_of_local_hostPing 默认网关的IP 地址验证默认网关是否运行以及能否与本地网络上的本地主机通讯。
2006-4-12 22:55 yansyping IP_address_of_default_gatewayPing 远程主机的IP 地址验证能否通过路由器通讯。
ping IP_address_of_remote_hostPing 命令用Windows 套接字样式的名称解析将计算机名解析成IP 地址,所以如果用地址成功,但是用名称Ping 失败,则问题出在地址或名称解析上,而不是网络连通性的问题。
详细信息,请参阅使用Arp 解决硬件地址问题。
如果在任何点上都无法成功地使用Ping,请确认:安装和配置TCP/IP 之后重新启动计算机。
“Internet 协议(TCP/IP) 属性”对话框“常规”选项卡上的本地计算机的IP 地址有效而且正确。
启用IP 路由,并且路由器之间的链路是可用的。
您可以使用Ping 命令的不同选项来指定要使用的数据包大小、要发送多少数据包、是否记录用过的路由、要使用的生存时间(TTL) 值以及是否设置“不分段”标志。
可以键入ping -? 查看这些选项。
下例说明如何向IP 地址172.16.48.10 发送两个Ping,每个都是1,450 字节:C:\>ping -n 2 -l 1450 172.16.48.10Pinging 172.16.48.10 with 1450 bytes of data:Reply from 172.16.48.10:bytes=1450 time<10ms TTL=32Reply from 172.16.48.10:bytes=1450 time<10ms TTL=32Ping statistics for 157.59.8.1:Packets:Sent = 2, Received = 2, Lost = 0 (0% loss),Approximate roundtrip times in milli-seconds:Minimum = 0ms, Maximum = 10ms, Average = 2ms默认情况下,在显示“请求超时”之前,Ping 等待1,000 毫秒(1 秒)的时间让每个响应返回。