Você está na página 1de 5

DOS COMMANDS

C:\>ipconfig
Windows IP Configuration Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix

. :

IP Address. . . . . . . . . . . . : 192.168.1.2 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1

C:\>ipconfig/all
Windows IP Configuration Host Name . . . . . . . . . . . . : adil-e70560ff26 Primary Dns Suffix . . . . . . . :

Node Type . . . . . . . . . . . . : Unknown IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix

. :

Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connection Physical Address. . . . . . . . . : 00-19-D1-A3-66-60 Dhcp Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes IP Address. . . . . . . . . . . . : 192.168.1.2 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1 DHCP Server . . . . . . . . . . . : 192.168.1.1 DNS Servers . . . . . . . . . . . : 192.168.1.1 Lease Obtained. . . . . . . . . . : Monday, March 21, 2011 7:35:20 PM Lease Expires . . . . . . . . . . : Tuesday, March 22, 2011 7:35:20PM

C:\>ipconfig/release Windows IP Configuration Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix

. :

IP Address. . . . . . . . . . . . : 0.0.0.0 Subnet Mask . . . . . . . . . . . : 0.0.0.0 Default Gateway . . . . . . . . . :

C:\>ipconfig/renew Windows IP Configuration Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix

. :

IP Address. . . . . . . . . . . . : 192.168.1.2 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1

C:\>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] target_name Options: -t Ping the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. -a -n count -l size -f Resolve addresses to hostnames. Number of echo requests to send. Send buffer size. Set Don't Fragment flag in packet.

-i TTL -v TOS -r count -s count -j host-list -k host-list -w timeout

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.

-f -i TTL -v TOS -r count -s count -j host-list -k host-list -w timeout

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.

C:\>hostname adil-e70560ff26

C:\>netstat Active Connections

Proto TCP

Local Address adil-e70560ff26:2817

Foreign Address 74.125.232.145:https

State ESTABLISHED

C:\>nbtstat Displays 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 -A

(adapter status) Lists the remote machine's name table given its name (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 -r -R -S -s (names) (resolved) (Reload) (Sessions) (sessions) Lists local NetBIOS names. Lists names resolved by broadcast and via WINS Purges and reloads the remote cache name table Lists sessions table with the destination IP addresses Lists sessions table converting destination IP addresses to computer NETBIOS names. -RR (ReleaseRefresh) Sends Name Release packets to WINS and then, starts Refresh

RemoteName IP address interval

Remote host machine name. Dotted decimal representation of the IP address. Redisplays selected statistics, pausing interval seconds between each display. Press Ctrl+C to stop redisplaying statistics.

C:\>tracert Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name Options: -d -h maximum_hops -j host-list Do not resolve addresses to hostnames. Maximum number of hops to search for target. Loose source route along host-list.

-w timeout

Wait timeout milliseconds for each reply.

Você também pode gostar