常用网络命令格式 - 范文中心

常用网络命令格式

11/27

Ping: 主要是验证目标主机是否存活, 及主机运行的操作系统类型。

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]

[-r count] [-s count] [[-j host-list] | [-k host-list]]

[-w timeout] destination-list

例:ping -l 65500 -t 172.16.4.154

Options:

-t

-a

-n count

-l size

-f

-i TTL

-v TOS

-r count

-s count

-j host-list

-k host-list

-w timeout

Ping the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. Resolve addresses to hostnames. Number of echo requests to send. Send buffer size. Set Don't Fragment flag in packet. Time To Live. Type Of Service. Record route for count hops. Timestamp for count hops. Loose source route along host-list. Strict source route along host-list. Timeout in milliseconds to wait for each reply.

nbtstat: 显示协议统计和当前TCP/IP连接。

Displays protocol statistics and current TCP/IP connections using NBT

(NetBIOS over TCP/IP).

NBTSTA T [ [-a RemoteName] [-A IP address] [-c] [-n]

[-r] [-R] [-RR] [-s] [-S] [interval] ]

例:nbtstat -c

-a (adapter status) Lists the remote machine's name table given its name

-A (Adapter status) Lists the remote machine's name table given its

IP 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 IP

addresses to computer NETBIOS names.

-RR (ReleaseRefresh) Sends Name Release packets to WINs and then, starts Refr esh

RemoteName Remote host machine name.

IP address Dotted decimal representation of the IP address.

interval Redisplays selected statistics, pausing interval seconds

between each display. Press Ctrl+C to stop redisplaying

statistics.

-s

specify

redisplaying Netstat: Displays protocol statistics and current TCP/IP network connections. NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval] 例:netstat -na -a Displays all connections and listening ports. -e Displays Ethernet statistics. This may be combined with the option. -n Displays addresses and port numbers in numerical form. -p proto Shows connections for the protocol specified by proto; proto may be TCP or UDP. If used with the -s option to display per-protocol statistics, proto may be TCP, UDP, or IP. -r Displays the routing table. -s Displays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP; the -p option may be used to a subset of the default. interval Redisplays selected statistics, pausing interval seconds between each display. Press CTRL+C to stop

statistics. If omitted, netstat will print the current

configuration information once.

Tracert:

Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name

Tracert

Options:

-d Do not resolve addresses to hostnames.

-h maximum_hops Maximum number of hops to search for target.

-j host-list Loose source route along host-list.

-w timeout Wait timeout milliseconds for each reply.

Nslookup:

例:Nslookup www.sina.com

At:(task scheduler )

AT 命令安排在特定日期和时间运行命令和程序。

要使用 AT 命令,计划服务必须已在运行中。

AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\\computername] time [/INTERACTIVE]

[ /EVERY:date[,...] | /NEXT:date[,...]] "command"

例: at 23:05 tini.exe

at 23:06 “c:\program file\tini.exe”

at 23:07 “net start telnet ”

\\computername 指定远程计算机。 如果省略这个参数,

会计划在本地计算机上运行命令。 id 指定给已计划命令的识别号。

/delete 删除某个已计划的命令。如果省略 id ,

计算机上所有已计划的命令都会被删

除。

日运行。

日运行。

HELP |

SESSION | /yes 不需要进一步确认时,跟删除所有作业 的命令一起使用。 time 指定运行命令的时间。 /interactive 允许作业在运行时,与当时登录的用户 桌面进行交互。 /every:date[,...] 每个月或每个星期在指定的日期运行命令。 如果省略日期,则默认为在每月的本/next:date[,...] 指定在下一个指定日期(如,下周四) 运行命令。 如果省略日期,则默认为在每月的本"command" 准备运行的 Windows NT 命令或批处理程序。 Net: NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND |

SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

NET ACCOUNTS

强制用户在时间到期之后多久必须注销?: 永不

密码最短使用期限 (天): 0

密码最长使用期限 (天): 42

密码长度下限: 0

保持的密码历史记录长度: None

锁定阈值: 永不

锁定持续时间(分): 30

锁定观测窗口(分): 30

计算机角色: SERVER

命令成功完成

net LOCALGROUP

net LOCALGROUP administrators guest /add

net LOCALGROUP administrators guest /del

此命令用于连接目标计算机或断开与目标计算机共享资源的连接,或显

示计算机的连接信息。

| *]] 例:net use \\192.168.1.67\ipc$ “123456” /user: adminstrator net use /del net use * /del net use k: 此命令的语法是: NET USE [devicename | *] [\\computername\sharename[\volume] [password

[/USER:[domainname\]username]

[/USER:[dotted domain name\]username]

[/USER:[username@dotted domain name]

[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

Net user:

此命令用于显示用户帐号信息以及添加、删除帐号、更改帐号信息。 例:net user

net user abcd 123 /add

net user guest /active:yes

net user abcd /del

用类似的帐号迷惑人,或所普通帐号提升为管理员。

此命令的语法是:

NET USER [username [password | *] [options]] [/DOMAIN]

username {password | *} /ADD [options] [/DOMAIN] username [/DELETE] [/DOMAIN]

此命令用于创建、删除或显示共享资源。

默认共享。

例:net share

net share music=c:\音乐 /remark: best music

net share music /del

此命令的语法是:

NET SHARE sharename

sharename=drive:path [/USERS:number | /UNLIMITED]

[/REMARK:"text"]

[/CACHE:Manual | Automatic | No ] sharename [/USERS:number | /UNLIMITED]

[/REMARK:"text"]

[/CACHE:Manual | Automatic | No ]

{sharename | devicename | drive:path} /DELETE

net start:

此命令的语法是:

NET START [service]

例: net start telnet

net start “task scheduler“

net stop:

此命令的语法是:

NET STOP service

例:NET STOP TELNET

NET STOP “TASK SCHEDULER”

NET VIEW :

此命令用于显示域列表、计算机列表、或指定计算机的共享资源。 此命令的语法是:

NET VIEW [\\computername [/CACHE] | /DOMAIN[:domainname]] NET VIEW /NETWORK:NW [\\computername]

例: net view

net view


相关内容

  • 高中信息技术必修知识点汇总
    主题1 信息的获取 高中信息技术必修知识点汇总 一.信息及其特征 1.信息的基本概念 "信息"一词通常是指数据.消息所包含的内容和意义.信息的表现形式有多种,如:图片.声音.动作.表情.文字等.当今世界的三大要素:物质. ...
  • 网络基础知识及常用软件 - 系统攻防 - 360论坛
    [好学者] 系统攻防版主 金币:1537 经验:8939 等级:高中二年级 功勋:14 短信 [回到顶部][奖励金币][回复此楼][引用][举报] 1 楼 2011-04-16 08:56 [心得] 网络基础知识及常用软件 一.网络基础知识 ...
  • 教师正确使用学校网络资源的几点建议
    教师正确使用学校网络资源的几点建议 在信息技术与课程整合的教改新形势下,学校有了自己的校园网络体系,电脑.电视和多媒体课件走进了课堂,给教师的授课和学生的学习注入新的活力.然而,美中不足的是,在使用校园网络资源时经常出现一些意外,如鼠标突然 ...
  • 信息技术-初中理论知识点
    第一单元 信息与信息技术 1. 信息及其特征 "信息"一词通常是指数据.消息所包含的内容和意义.语言.文字.符号.信号.指令.代码等都可以表达和传递信息. 信息的特征:普遍性.存储性.传递性.共享性.失真性.时效性.加工 ...
  • 四川省计算机一级考试试题填空题及答案详解
    填充题:1. 公式SUM (A3∶A8)/6等效于( ).解答:SUM (A3∶A8)/6的作用是求A3:A8单元格区域的平均值,可以直接用求平均函数AVERAGE(A3:A8)来表示,针对数值型数据还可以使用SUM(A3:A8)/COUN ...
  • 阿尔卡特-朗讯基站维护指导书
    阿尔卡特-朗讯基站维护指导书 第一部分 阿尔卡特朗讯基站简介 一.Modcell1.0基站 1.Modcell1.0基站外观 3 1 2 5 6 7 4 10 8 9 12 和 2.Modcell1.0板件图解 (1)FIT :提供120欧 ...
  • 网络协议分析实验报告
    课 程 设 计 课程设计题目 学 生 姓 名 : 学 号: 专 业: 2014年 6 月 29日 实验1 基于ICMP的MTU测量方法 实验目的 1) 掌握ICMP协议 2) 掌握PING程序基本原理 3) 掌握socket编程技术 4) ...
  • 电脑文件格式大全
    386 Windows虚拟设备驱动程序 CDX 复合索引文件 ABC ASCII编码格式文件 CFG 配置文件,包含系统设备和环境信息 ACM 音频压缩管理驱动程序 CGM Paint Shop Pro映象文件 ACT 文档向导 CHK 被 ...
  • 电子商务实训操作课程标准
    <电子商务综合实训>课程标准 一.性质和任务 本大纲适用于电子商务员的培训,通过实践培训使学员技能达到相当于国家职业技能四级. 二.实训目标 通过培训,学员能够掌握计算机基本操作和网络的使用方法,熟悉网页设计(FrontPage ...
  • 五年级下册信息技术知识点泰山版
    第一单元电子邮件传真情 互联网上提供电子服务的常用网站,如网易.新浪.搜狐. 邮箱密码使用大小写字母.数字和符号组合起来设置,这样更安全. 古时候通信有烽火台.驿站. 注册电子邮箱: 登陆126或其他邮箱网站. 单击"立即注册&q ...