??xml version="1.0" encoding="utf-8" standalone="yes"?>久久国产成人精品麻豆,99久久99这里只有免费的精品,久久久不卡国产精品一区二区http://www.shnenglu.com/ivy-jie/category/10663.htmlprogress ...zh-cnSun, 24 May 2009 09:06:44 GMTSun, 24 May 2009 09:06:44 GMT60Windows|络命o行程?/title><link>http://www.shnenglu.com/ivy-jie/articles/85571.html</link><dc:creator>ivy-jie</dc:creator><author>ivy-jie</author><pubDate>Sun, 24 May 2009 01:24:00 GMT</pubDate><guid>http://www.shnenglu.com/ivy-jie/articles/85571.html</guid><wfw:comment>http://www.shnenglu.com/ivy-jie/comments/85571.html</wfw:comment><comments>http://www.shnenglu.com/ivy-jie/articles/85571.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/ivy-jie/comments/commentRss/85571.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/ivy-jie/services/trackbacks/85571.html</trackback:ping><description><![CDATA[<div> <p>Windows|络命o行程?<br>q部分包括:</p> <p>使用 ipconfig /all 查看配置 <br>使用 ipconfig /renew h配置 <br>使用 ipconfig 理 DNS ?DHCP cd ID <br>使用 Ping 试q接 <br>使用 Arp 解决g地址问题 <br>使用 nbtstat 解决 NetBIOS 名称问题 <br>使用 netstat 昄q接l计 <br>使用 tracert 跟踪|络q接 <br>使用 pathping 试路由?<br>使用 ipconfig /all 查看配置 <br>发现和解?TCP/IP |络问题Ӟ先检查出现问题的计算Z?TCP/IP 配置。可?<br>使用 ipconfig 命o获得L配置信息Q包?IP 地址、子|掩码和默认|关? <p>注意 <p>对于 Windows 95 ?Windows 98 的客hQ请使用 winipcfg 命o而不?ipconfi <br>g 命o?<br>使用?/all 选项?ipconfig 命oӞ给出所有接口的详细配置报告Q包括Q?<br>已配|的串行端口。?ipconfig /allQ可以将命o输出重定向到某个文gQƈ?<br>输出_脓到其他文中。也可以用该输出认|络上每台计机?TCP/IP 配置Q或 <br>者进一步调?TCP/IP |络问题? <p>例如Q如果计机配置?IP 地址与现有的 IP 地址重复Q则子网掩码昄?0.0.0 <br>.0? <p>下面的范例是 ipconfig /all 命o输出Q该计算机配|成使用 DHCP 服务器动态配|?<br>TCP/IPQƈ使用 WINS ?DNS 服务器解析名U? <p>Windows 2000 IP Configuration <p>Node Type.. . . . . . . . : Hybrid <br>IP Routing Enabled.. . . . : No <br>WINS Proxy Enabled.. . . . : No <p>Ethernet adapter Local Area Connection: <p>Host Name.. . . . . . . . : corp1.microsoft.com <br>DNS Servers . . . . . . . : 10.1.0.200 <br>Description. . . . . . . : 3Com 3C90x Ethernet Adapter <br>Physical Address. . . . . : 00-60-08-3E-46-07 <br>DHCP Enabled.. . . . . . . : Yes <br>Autoconfiguration Enabled.: Yes <br>IP Address. . . . . . . . . : 192.168.0.112 <br>Subnet Mask. . . . . . . . : 255.255.0.0 <br>Default Gateway. . . . . . : 192.168.0.1 <br>DHCP Server. . . . . . . . : 10.1.0.50 <br>Primary WINS Server. . . . : 10.1.0.101 <br>Secondary WINS Server. . . : 10.1.0.102 <br>Lease Obtained.. . . . . . : Wednesday, September 02, 1998 10:32:13 AM <br>Lease Expires.. . . . . . : Friday, September 18, 1998 10:32:13 AM <p><br>如果 TCP/IP 配置没有问题Q下一步测试能够连接到 TCP/IP |络上的其他L? <p>使用 ipconfig /renew h配置 <br>解决 TCP/IP |络问题Ӟ先检查遇到问题的计算Z?TCP/IP 配置。如果计机 <br>启用 DHCP q?DHCP 服务器获得配|,请?ipconfig /renew 命o开始刷新租 <br>U? <p>使用 ipconfig /renew Ӟ使用 DHCP 的计机上的所有网卡(除了那些手动配置?<br>适配器)都尽量连接到 DHCP 服务器,更新现有配置或者获得新配置? <p>也可以用带 /release 选项?ipconfig 命o立即释放L的当?DHCP 配置。有 <br>?DHCP 和租用过E的详细信息Q请参阅客户机如何获得配|? <p>注意 <p>对于启用 DHCP ?Windows 95 ?Windows 98 客户Q请使用 winipcfg 命o?rel <br>ease ?renew 选项Q而不?ipconfig /release ?ipconfig /renew 命oQ手?<br>释放或更新客L IP 配置U约?<br>使用 ipconfig 理 DNS ?DHCP cd ID <br>也可以?ipconfig 命oQ? <p>昄或重|?DNS ~存?<br>详细信息Q请参阅使用 ipconfig 查看或重|客戯析程序缓存? <p>h已注册的 DNS 名称?<br>详细信息Q请参阅使用 ipconfig 更新 DNS 客户注册? <p>昄适配器的 DHCP cd ID?<br>详细信息Q请参阅昄客户Z?DHCP cd ID 信息? <p>讄适配器的 DHCP cd ID?<br>详细信息Q请参阅讄客户Z?DHCP cd ID 信息? <p>使用 Ping 试q接 <br>Ping 命o有助于验?IP U的q通性。发现和解决问题Ӟ可以使用 Ping 向目标主 <br>机名?IP 地址发?ICMP 回应h。需要验证主否连接到 TCP/IP |络和网l?<br>资源Ӟ请?Ping。也可以使用 Ping 隔离|络g问题和不兼容配置? <p>通常最好先?Ping 命o验证本地计算机和|络L之间的\由是否存在,以及要连 <br>接的|络L?IP 地址。Ping 目标L?IP 地址看它是否响应Q如下: <p>ping IP_address <p>使用 Ping 时应该执行以下步骤: <p>Ping 环回地址验证是否在本地计机上安?TCP/IP 以及配置是否正确?<br>ping 127.0.0.1 <p>Ping 本地计算机的 IP 地址验证是否正确地添加到|络?<br>ping IP_address_of_local_host <p>Ping 默认|关?IP 地址验证默认|关是否q行以及能否与本地网l上的本C机?<br>讯?<br>ping IP_address_of_default_gateway <p>Ping q程L?IP 地址验证能否通过路由器通讯?<br>ping IP_address_of_remote_host <p>Ping 命o?Windows 套接字样式的名称解析计机名解析成 IP 地址Q所以如?<br>用地址成功Q但是用名称 Ping p|Q则问题出在地址或名U解析上Q而不是网l连 <br>通性的问题。详l信息,请参阅?Arp 解决g地址问题? <p>如果在Q何点上都无法成功C?PingQ请认Q? <p>安装和配|?TCP/IP 之后重新启动计算机?<br>“Internet 协议 (TCP/IP) 属?#8221;对话?#8220;常规”选项卡上的本地计机?IP 地址 <br>有效而且正确?<br>启用 IP 路由Qƈ且\由器之间的链路是可用的?<br>您可以?Ping 命o的不同选项来指定要使用的数据包大小、要发送多数据包?<br>是否记录用过的\由、要使用的生存时?(TTL) g及是否设|?#8220;不分D?#8221;标志。可 <br>以键?ping -? 查看q些选项? <p>下例说明如何?IP 地址 172.16.48.10 发送两?PingQ每个都?1,450 字节Q? <p>C:\>ping -n 2 -l 1450 172.16.48.10 <br>Pinging 172.16.48.10 with 1450 bytes of data: <p>Reply from 172.16.48.10:bytes=1450 time<10ms TTL=32 <br>Reply from 172.16.48.10:bytes=1450 time<10ms TTL=32 <p>Ping statistics for 157.59.8.1: <br>Packets:Sent = 2, Received = 2, Lost = 0 (0% loss), <br>Approximate roundtrip times in milli-seconds: <br>Minimum = 0ms, Maximum = 10ms, Average = 2ms <br>默认情况下,在显C?#8220;h时”之前QPing {待 1,000 毫秒Q? U)的时间让?<br>个响应返回。如果通过 Ping 探测的远E系l经q长旉延迟的链路,如卫星链路, <br>则响应可能会花更长的旉才能q回。可以?-w Q等待)选项指定更长旉的超 <br>时? <p>使用 Arp 解决g地址问题 <br>“地址解析协议 (ARP)”允许L查找同一物理|络上的L的媒体访问控制地址Q?<br>如果l出后者的 IP 地址。ؓ?ARP 更加有效Q每个计机~存 IP 到媒体访问控?<br>地址映射消除重复?ARP q播h? <p>可以使用 arp 命o查看和修Ҏ地计机上的 ARP 表项。arp 命o对于查看 ARP ~?<br>存和解决地址解析问题非常有用? <p>详细信息Q请参阅查看“地址解析协议 (ARP)”~存和添加静?ARP ~存目? <p>使用 nbtstat 解决 NetBIOS 名称问题 <br>TCP/IP 上的 NetBIOS (NetBT) ?NetBIOS 名称解析?IP 地址。TCP/IP ?NetBI <br>OS 名称解析提供了很多选项Q包括本地缓存搜索、WINS 服务器查询、广播、DNS ?<br>务器查询以及 Lmhosts 和主机文件搜索? <p style="COLOR: red">Nbtstat 是解?NetBIOS 名称解析问题的有用工兗可以?nbtstat 命o删除?<br>更正预加载的目Q? <p style="COLOR: red">nbtstat -n 昄由服务器或重定向器之cȝE序在系l上本地注册的名U?<br>nbtstat -c 昄 NetBIOS 名称~存Q包含其他计机的名U对地址映射?<br>nbtstat -R 清除名称~存Q然后从 Lmhosts 文g重新加蝲?<br>nbtstat -RR 释放?WINS 服务器上注册?NetBIOS 名称Q然后刷新它们的注册?<br>nbtstat -a name ?name 指定的计机执行 NetBIOS 适配器状态命令。适配器状?<br>命o返回计机的本?NetBIOS 名称表,以及适配器的媒体讉K控制地址?<br>nbtstat -S 列出当前?NetBIOS 会话及其状态(包括l计Q,如下例所C: <br>NetBIOS connection table <p>Local name State   In/out Remote Host  Input  Output <br>------------------------------------------------------------------ <br>CORP1 <00> Connected Out  CORPSUP1<20>  6MB   5MB <br>CORP1 <00> Connected Out  CORPPRINT<20> 108KB  116KB <br>CORP1 <00> Connected Out  CORPSRC1<20>  299KB  19KB <br>CORP1 <00> Connected Out  CORPEMAIL1<20> 324KB  19KB <br>CORP1 <03> Listening <br>使用 netstat 昄q接l计 <br>可以使用 netstat 命o昄协议l计信息和当前的 TCP/IP q接。netstat -a 命o <br>显C所有连接,?netstat -r 昄路由表和zdq接。netstat -e 命o显C?<br>Ethernet l计信息Q?netstat -s 昄每个协议的统计信息。如果?netstat <br>-nQ则不能地址和端口号转换成名U。下面是 netstat 的输出示例: <p>C:\>netstat -e <br>Interface Statistics <p>Received   Sent <br>Bytes         3995837940  47224622 <br>Unicast packets    120099    131015 <br>Non-unicast packets  7579544    3823 <br>Discards        0       0 <br>Errors         0       0 <br>Unknown protocols   363054211 <p>C:\>netstat -a <p>Active Connections <p>Proto Local Address   Foreign Address    State <br>TCP CORP1:1572    172.16.48.10:nbsession  ESTABLISHED <br>TCP CORP1:1589    172.16.48.10:nbsession  ESTABLISHED <br>TCP CORP1:1606    172.16.105.245:nbsession ESTABLISHED <br>TCP CORP1:1632    172.16.48.213:nbsession ESTABLISHED <br>TCP CORP1:1659    172.16.48.169:nbsession ESTABLISHED <br>TCP CORP1:1714    172.16.48.203:nbsession ESTABLISHED <br>TCP CORP1:1719    172.16.48.36:nbsession  ESTABLISHED <br>TCP CORP1:1241    172.16.48.101:nbsession ESTABLISHED <br>UDP CORP1:1025    *:* <br>UDP CORP1:snmp    *:* <br>UDP CORP1:nbname   *:* <br>UDP CORP1:nbdatagram *:* <br>UDP CORP1:nbname   *:* <br>UDP CORP1:nbdatagram *:* <p>C:\>netstat -s <br>IP Statistics <p>Packets Received       = 5378528 <br>Received Header Errors    = 738854 <br>Received Address Errors   = 23150 <br>Datagrams Forwarded     = 0 <br>Unknown Protocols Received  = 0 <br>Received Packets Discarded  = 0 <br>Received Packets Delivered  = 4616524 <br>Output Requests       = 132702 <br>Routing Discards       = 157 <br>Discarded Output Packets   = 0 <br>Output Packet No Route    = 0 <br>Reassembly Required     = 0 <br>Reassembly Successful       = 0 <br>Reassembly Failures        = <br>Datagrams Successfully Fragmented = 0 <br>Datagrams Failing Fragmentation  = 0 <br>Fragments Created         = 0 <p>ICMP Statistics <br>Received Sent <br>Messages         693    4 <br>Errors          0     0 <br>Destination Unreachable 685    0 <br>Time Exceeded      0     0 <br>Parameter Problems    0     0 <br>Source Quenches     0     0 <br>Redirects        0     0 <br>Echoes          4     0 <br>Echo Replies       0     4 <br>Timestamps        0     0 <br>Timestamp Replies    0     0 <br>Address Masks      0     0 <br>Address Mask Replies   0     0 <p>TCP Statistics <p>Active Opens         = 597 <br>Passive Opens        = 135 <br>Failed Connection Attempts  = 107 <br>Reset Connections      = 91 <br>Current Connections     = 8 <br>Segments Received      = 106770 <br>Segments Sent        = 118431 <br>Segments Retransmitted    = 461 <p>UDP Statistics <p>Datagrams Received  = 4157136 <br>No Ports       = 351928 <br>Receive Errors    = 2 <br>Datagrams Sent    = 13809 <p>使用 tracert 跟踪|络q接 <br>TracertQ跟t\由)是\pt实用程序,用于定 IP 数据报访问目标所采取的\ <br>径。Tracert 命o?IP 生存旉 (TTL) 字段?ICMP 错误消息来确定从一个主机到 <br>|络上其他主机的路由? <p>Tracert 工作原理 <br>通过向目标发送不?IP 生存旉 (TTL) 值的“Internet 控制消息协议 (ICMP)”?<br>应数据包QTracert 诊断E序定到目标所采取的\由。要求\径上的每个\由器?<br>转发数据包之前至将数据包上?TTL 递减 1。数据包上的 TTL 减ؓ 0 Ӟ路由?<br>应该?#8220;ICMP 已超?#8221;的消息发回源pȝ? <p>Tracert 先发?TTL ?1 的回应数据包Qƈ在随后的每次发送过E将 TTL 递增 1Q?<br>直到目标响应?TTL 辑ֈ最大|从而确定\由。通过查中间\由器发回?#8220;ICM <br>P 已超?#8221;的消息确定\由。某些\由器不经询问直接丢弃 TTL q期的数据包Q这?<br>Tracert 实用E序中看不到? <p>Tracert 命o按顺序打印出q回“ICMP 已超?#8221;消息的\径中的近端\由器接口列表 <br>。如果?-d 选项Q则 Tracert 实用E序不在每个 IP 地址上查?DNS? <p>在下例中Q数据包必须通过两个路由器(10.0.0.1 ?192.168.0.1Q才能到达主?<br>172.16.0.99。主机的默认|关?10.0.0.1Q?92.168.0.0 |络上的路由器的 IP ?<br>址?192.168.0.1? <p>C:\>tracert 172.16.0.99 -d <br>Tracing route to 172.16.0.99 over a maximum of 30 hops <br>1  2s  3s  2s 10,0.0,1 <br>2  75 ms  83 ms  88 ms 192.168.0.1 <br>3  73 ms  79 ms  93 ms 172.16.0.99 <br>Trace complete. <br>?tracert 解决问题 <br>可以使用 tracert 命o定数据包在|络上的停止位置。下例中Q默认网关确?19 <br>2.168.10.99 L没有有效路径。这可能是\由器配置的问题,或者是 192.168.10. <br>0 |络不存在(错误?IP 地址Q? <p>C:\>tracert 192.168.10.99 <p>Tracing route to 192.168.10.99 over a maximum of 30 hops <p>1 10.0.0.1 reports:Destination net unreachable. <p>Trace complete. <p>Tracert 实用E序对于解决大网l问题非常有用,此时可以采取几条路径到达同一?<br>炏V? <p>Tracert 命o行选项 <br>Tracert 命o支持多种选项Q如下表所C? <p>tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name <p>选项 描述  <br>-d 指定不将 IP 地址解析C机名U?<br>-h maximum_hops 指定跃点C跟踪到称?target_name 的主机的路由?<br>-j host-list 指定 Tracert 实用E序数据包所采用路径中的路由器接口列表?<br>-w timeout {待 timeout 为每ơ回复所指定的毫U数?<br>target_name 目标L的名U或 IP 地址? <p>详细信息Q请参阅使用 tracert 命o跟踪路径? <p>使用 pathping 试路由?<br>pathping 命o是一个\pt工P它将 ping ?tracert 命o的功能和q两个工 <br>h不提供的其他信息l合h。pathping 命o在一D|间内数据包发送到到达最 <br>l目标的路径上的每个路由器,然后Z数据包的计算机结果从每个跃点q回。由?<br>命o昄数据包在Ml定路由器或链接上丢qE度Q因此可以很Ҏ地确定可?<br>D|络问题的\由器或链接。某些选项是可用的Q如下表所C? <p>选项 名称 功能 <br>-n Hostnames 不将地址解析成主机名?<br>-h Maximum hops 搜烦目标的最大跃Ҏ?<br>-g Host-list 沿着路由列表释放源\由?<br>-p Period ?ping 之间{待的毫U数?<br>-q Num_queries 每个跃点的查询数?<br>-w Time-out 为每ơ回复所{待的毫U数?<br>-T Layer 2 tag 第 2 层优先标记Q例如,对于 IEEE 802.1pQ连接到数据包ƈ <br>它发送到路径中的每个|络讑֤。这有助于标识没有正配|第 2 层优先的网l?<br>讑֤?T 开关用于测试服务质?(QoS) q通性?<br>-R RSVP test Che查以定路径中的每个路由器是否支?#8220;资源保留协议 (RSVP)” <br>Q此协议允许L为数据流保留一定量的带宽?-R 开关用于测试服务质?(QoS) q?<br>通性? <p>默认的跃Ҏ?30Qƈ且超时前的默认等待时间是 3 U。默认时间是 250 毫秒Qƈ <br>且沿着路径Ҏ个\由器q行查询的次数是 100? <p>以下是典型的 pathping 报告。跃点列表后所~辑的统计信息表明在每个独立路由?<br>上数据包丢失的情c? <p><br>D:\>pathping -n msw <p>Tracing route to msw [7.54.1.196] <br>over a maximum of 30 hops: <br>0 172.16.87.35 <br>1 172.16.87.218 <br>2 192.68.52.1 <br>3 192.68.80.1 <br>4 7.54.247.14 <br>5 7.54.1.196 <p>Computing statistics for 125 seconds... <br>     Source to Here  This Node/Link <br>Hop RTT  Lost/Sent = Pct Lost/Sent = Pct Address <br>0                      172.16.87.35 <br>               0/ 100 = 0%  | <br>1  41ms   0/ 100 = 0%   0/ 100 = 0% 172.16.87.218 <br>              13/ 100 = 13%  | <br>2  22ms  16/ 100 = 16%   3/ 100 = 3% 192.68.52.1 <br>               0/ 100 = 0%  | <br>3  24ms  13/ 100 = 13%   0/ 100 = 0% 192.68.80.1 <br>               0/ 100 = 0%  | <br>4  21ms  14/ 100 = 14%   1/ 100 = 1% 10.54.247.14 <br>               0/ 100 = 0%  | <br>5  24ms  13/ 100 = 13%   0/ 100 = 0% 10.54.1.196 <p>Trace complete. <p>当运?pathping Ӟ在测试问题时首先查看路由的结果。此路径?tracert 命o所 <br>昄的\径相同。然?pathping 命o对下一?125 毫秒昄忙消息(此时间根据跃 <br>点计数变化)。在此期_pathping 从以前列出的所有\由器和它们之间的链接之间 <br>攉信息。在此期间结束时Q它昄试l果? <p>最双的两?This Node/Link Lost/Sent=Pct ?Address 包含的信息最有用?72 <br>.16.87.218Q跃?1Q和 192.68.52.1Q跃?2Q丢?13% 的数据包?所有其他链 <br>接工作正常。在跃点 2 ?4 中的路由器也丢失d到它们的数据包(?This Node <br>/Link 栏中所C)Q但是该丢失不会影响转发的\径? <p>寚w接显C的丢失率(在最双的栏中标Cؓ |Q表明沿路径转发丢失的数据包。该 <br>丢失表明链接d。对路由器显C的丢失率(通过最双栏中?IP 地址昄Q表?<br>q些路由器的 CPU 可能负药行。这些阻塞的路由器可能也是端对端问题的一个因 <br>素,其是在软g路由器{发数据包时?/p> </div> <img src ="http://www.shnenglu.com/ivy-jie/aggbug/85571.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/ivy-jie/" target="_blank">ivy-jie</a> 2009-05-24 09:24 <a href="http://www.shnenglu.com/ivy-jie/articles/85571.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MCSE :TCP/IP 考题http://www.shnenglu.com/ivy-jie/articles/85495.htmlivy-jieivy-jieSat, 23 May 2009 01:58:00 GMThttp://www.shnenglu.com/ivy-jie/articles/85495.htmlhttp://www.shnenglu.com/ivy-jie/comments/85495.htmlhttp://www.shnenglu.com/ivy-jie/articles/85495.html#Feedback0http://www.shnenglu.com/ivy-jie/comments/commentRss/85495.htmlhttp://www.shnenglu.com/ivy-jie/services/trackbacks/85495.htmlQuestion 1. Under Windows NT, what command would you use if you wanted to trace a packet from its source host to a destination host?

    A. TRACERT

    B. ROUTE

    C. NBTSTAT

    D. IPCONFIG

    The TRACERT utility is Microsoft's own, used to trace a packet from its source ( your computer ) to a destination host ( a remote computer ).

    Question 2. If you wanted to display all entries in the ARP cache, which of the following utilities would you use?

    A . ARP - G

    B. ARP - E

    C. ARP - D

    D. ARP - S

    To display all entries in the ARP ( Address Resolution Protocol ) cache, you would use the ARP utility with the -G or - A switch. They are the same thing. To get the answer type "arp /?" at the command prompt.

    ARP ( Address Resolution Protocol ) is used to obtain hardware ( MAC = Media Access Control ) addresses for communications with a destination host.

    Question 3. You notice that the subnet mask is 0.0.0.0 on your Windows NT computer while using the IPCONFIG utility at the command prompt to check for IP address configuration. What does it mean when the IPCONFIG utility displays a subnet mask of 0.0.0.0?

    A. The default gateway on your computer does not match the default gateway of the network.

    B. Your computer has the same subnet mask as another computer on the network.

    C. Your computer does not have the correct IP address class specified for it.

    D. Your computer has the same IP address as another computer on the network.

    The most likely cause in this scenario is that your computer has the same IP address as another computer in the network. When this happens, running IPCONFIG will yield an IP address of 0.0.0.0.
 
    Question 4. If you want to copy files from one Windows NT computer to another, what TCP / IP utility would you use?

    A . RCP

    B. REXEC

    C. TELNET

    D. TRACERT

    The RCP ( Remote Copy ) is Microsoft's own TCP / IP utility. It is used to copy files from a source Windows NT computer to a destination ( remote ) Windows NT computer, or vice-versa. Type "rcp /?" at the command prompt to get the command's full syntax.
  
    Question 5. Use the following diagram to answer this question : 

   You are working on your Windows NT workstation, SMALLNT, and you would like to communicate with another Windows NT computer, BIGNT. If both computers are on the same local subnet , where does SMALLNT look for the hardware address of the destination host? ( BIGNT in this case )

    A. In its own ARP cache.

    B. In the ARP cache of the destination host, BIGNT in this case.

    C. If there is a DHCP server present , then in the ARP cache of the DHCP server.

    D. In the LMHOSTS or HOSTS file of the source computer.

    The ARP protocol ( and NOT the ARP command ) is used to map IP addresses to hardware addresses ( MAC addresses ). Anytime you communicate with a destination host that is on the same subnet ( locally ), then the hardware address of the destination host is obtained from the source host's LOCAL ARP cache. In this scenario, BIGNT's hardware address is obtained from SMALLNT's own ARP cache since both computers are on the same network.

Question 6. You have a print device connected to a server running the LPD service. From your Windows NT computer, you would like to obtain the status of the print device. What utility would you use to achieve the task?

    A. LPD

    B. NET USE

    C. LPQ

    D. GETDAEMON

 

    The LPD ( Line Printer Daemon ) is a TCP / IP printing service. A print server that has a TCP / IP print device connected to it must have the LPD service installed on it. However, to obtain the status of a TCP / IP print device ( or print queue as it is often called in the TCP / IP circle ), you would use the LPQ command.

    Type "lpq /?" at the command prompt to get the proper syntax. Pay close attention to the "-S" and "-P" switches. For the "-S" switch, you can specify the NAME or IP address of the print server running the LPD service.

    Question : Under Windows NT Server 4.0, how do you install the LPD service?

    Answer : Under Windows NT, the LPD service is known as "Microsoft TCP / IP Printing" ===> right-click Network Neighborhood | Properties | Services tab | Add... | "Microsoft TCP / IP Printing" service.
 
    Question 7. Let's say that you want to run a process on a remote host that is using the REXEC service, what Microsoft TCP / IP utility would you use?

    A. RCP

    B. REXEC

    C. TELNET

    D. FTP

    The REXEC ( Remote Execute ) command is Microsoft's home-grown utility used to run processes on a remote computer that is also running the REXEC service. Type "rexec /?" at the command prompt to get the full syntax.
 
    Question 8. If you want to retrieve system information from a remote host running the Finger service, what TCP / IP utility would you use?

    A. REXEC

    B. PING

    C. RCP

    D. FINGER

    The FINGER utility is used to obtain system information from a remote host that is using the Finger service. To get the proper syntax, type "finger" at the command prompt.
 
    Question 9. Let's say that you want a DHCP client to give up its lease with a DHCP server, what command would you use to accomplish the task?

    A. ipconfig / endlease

    B. ipconfig / release

    C. route / release

    D. route / endlease

    The IPCONFIG / RELEASE command is used to send a DHCPRELEASE message from a DHCP client to a DHCP server. The DHCPRELEASE message specifies that a client wishes to give up its current lease with the DHCP server. Type, "ipconfig /?" at the command prompt to display all the switches of the utility.
 
    Question 10. You would like to see a list of NetBIOS computer names that have been resolved into IP addresses on your Windows NT computer. Which of the following utilities would you use?

    A. ARP

    B. NetBIOS

    C. NETSTAT

    D. NBTSTAT

    You can use the "nbtstat" utitliy to view all NetBIOS computer names that have been resolved into IP addresses. To see the NetBIOS local name table of your workstation, use "nbtstat -n."



ivy-jie 2009-05-23 09:58 发表评论
]]>
NetBIOS函数http://www.shnenglu.com/ivy-jie/articles/85491.htmlivy-jieivy-jieSat, 23 May 2009 01:34:00 GMThttp://www.shnenglu.com/ivy-jie/articles/85491.htmlhttp://www.shnenglu.com/ivy-jie/comments/85491.htmlhttp://www.shnenglu.com/ivy-jie/articles/85491.html#Feedback0http://www.shnenglu.com/ivy-jie/comments/commentRss/85491.htmlhttp://www.shnenglu.com/ivy-jie/services/trackbacks/85491.html1  Win32应用E序可以使用Network Basic Input/Output SystemQNetBIOSQ接口与|络中的其他计算Z的应用程序进行通讯。NetBIOS接口包括一pd昑ּ命oQ由一个被UCؓ|络控制块(NCBQ的l构提供。应用程序可以对M支持NetBIOS接口的协议发出NetBIOS命o?br>2  netbios   函数用来解释q执行一个专有的NCB块结? 
   
  UCHAR   Netbios(  
      PNCB   pncb       //   指向|络控制块的指针  
  );  
   
  q回?  
  <1>作ؓ同步h,q回值就是NCB的返回代?同时q个q回代码也包含在NCB的ncb_retcode成员? 
  <2>作ؓ异步h有下面几U情?  
        1.如果异步命o在netbios()q回q回他的调用者之前已l完?情况?lt;1>  
        2.?.相反,q回值就?  
  <3>如果pncb指针无效q回值是NRC_BADNCB  
  <4>如果ncb_length成员的g正确或者是ncb_buffer区域被写保护q回gؓNRC_BUFLEN  
   
  下面讲讲NCB控制块的l构:  
  typedef   struct   _NCB   {  
          UCHAR     ncb_command;    
          UCHAR     ncb_retcode;    
          UCHAR     ncb_lsn;    
          UCHAR     ncb_num;    
          PUCHAR   ncb_buffer;    
          WORD       ncb_length;    
          UCHAR     ncb_callname[NCBNAMSZ];    
          UCHAR     ncb_name[NCBNAMSZ];    
          UCHAR     ncb_rto;    
          UCHAR     ncb_sto;    
          void   (*ncb_post)   (struct   _NCB   *);    
          UCHAR     ncb_lana_num;    
          UCHAR     ncb_cmd_cplt;    
          UCHAR     ncb_reserve[10];    
          HANDLE   ncb_event;    
  }   NCB;            
3  ncb_command:指定一个命令码和一个该NCB是同步还是异步处理的标志,如果ASYNCH帔R通过"|"q?  符与命令码l合的话,那么q个NCB块将会异步执行? 
    .NCBACTION:用于   Win   NT非标准的Netbios   3.0的标准命? 
    .NCBADDGRNAME:d一个组名字到本地名字表,q个名称不能被网l上的其他进E作Z个唯一?  名字来用但是他可以被其他进E作为组名字来添? 
    .NCBADDNAME:d一个唯一名字到本地名字表,TDI驱动E序保证q个名字在网l中的唯一? 
    .NCBASTAT:q回一个本地或者远E适配器的状?当用这个命令的时?ncb_buffer   成员指向一个ADAPTER_STATUSl构后面紧跟着一个NAME_BUFFERl构数组  
    .NCBCALL:用另外一个名字开启一个会? 
    .NCBCANCEL:l止前一个未执行完的命o  
    .NCBCHAINSEND:发送两份数据缓冲到指定的会话伙? 
    .NCBCHAINSENDNA:发送两份数据缓冲到指定的会话伙?但不{待Ҏ应答q卌? 
    .NCBDELNAME:从本地名字表中删除一个名? 
    .NCBDGRECV:接收来自宁一个名字的数据? 
    .NCBDGRECVBC:接收来自宁一个名字的以广播方式发送的数据? 
    .NCBDGSEND:发送一个数据包C个指定的名字(q程)  
    .NCBDGSENDBC:发送一个数据包到局域网中的每一C? 
    .NCBENUM:用于WinNT,非标准的Netbios3.0的命? 
    .NCBFINDNAME:定位一个名字在|络中的位置,此时ncb_buffer指向FIND_NAME_HEADERl构,同时后面紧跟着一个或者多个FIND_NAME_BUFFERl构  
    .NCBHANGUP:关闭一个指定的会话  
    .NCBLISTEN:允许一个会话以另外一个名字打开(本地或者远E的会话都可?  
    .NCBRECV:从一个指定的会话伙伴接收数据  
    .NCBRECVANY:从Q何一个其他的以一个指定的名字通信的会话接收数? 
    .NCBRESET:复位一个网l适配?在他接收M命o(与ncb_lana_num成员有相同的数字)之前必须q行复位操作????  
    .NCBSEND:发送数据到指定的会话伙? 
    .NECBSENDNA:发送数据到指定的会话伙伴后不等待应{立卌? 
    .NCBSSTAT:q回某个会话的状?指定q个命o以后ncb_buffer成员指向一个SESSION_HEADER   l构,后面紧接着一个或多个SESSION_BUFFER   l构  
    .NCBUNLINK:断开一个适配器的q接,该命令的讄是处于兼Ҏ的考虑,在Win32中不支持该命?/p>

ivy-jie 2009-05-23 09:34 发表评论
]]>
պƷھþ| ҹƷþþþ9999| ٸþþþþñŪ߳| ŷۺϾþþ| պƷþĻ | 97Ʒ˾þþô߽| ҹƷþþþ| 91Ʒþþþþio| þù| AVþþƷ| ߳߳þþ91 | þùƵ| þþƷAV͵| ҹƷƬþ| þƵվ| þþþAVۿ| ƷһþþƷ | ޾ƷŮþ777777| ɫۺϾþۺۿ| ӰȷŮAV³ɫԴþ | þ޴ɫĻþþ| 69Ʒþþþ99| պAVþһ| ޹˾Ʒþþþþۺ| ݺɫݺɫۺϾþ| 㽶þӰԺ| þþþAV| ݺɫþþۺϲ| Ĺ˾Ʒþò| Ʒþþþ| ƷžžþþƷŮͬŷպۺ| ˾þav| һŮȫƾþƬ| Ʒþþþ| þþƷ˵| ҹþӰԺ| ɫۺϺϾþۺӿ| 99þþƷѾƷһ| ҹҹݺݾþAV| ԭƷ99þþƷ66| ŮþþŮ|