Académique Documents
Professionnel Documents
Culture Documents
There are also a variety of switches for ipconfig that add functions. These are invoked by
entering "ipconfig /{switch}". To obtain a list of switches, enter "ipconfig /?" or
"ipconfig -?". These are shown in the figure below. The switches of most interest to
everyday use are "release" and "renew". Note that IP addresses are typically assigned or
"leased" for a period of time, often a day or more. It sometimes happens that IP addresses
are no longer valid or are in conflict. Problems can often be solved by first releasing the
IP address and then renewing it. Sometimes cable or DSL modems that seem to be
disabled can be restored this way. If you travel and use broadband connections elsewhere,
you will often find this procedure of releasing and renewing the IP address to be
necessary.
Tracert
Tracert (traceroute) is another old tool borrowed from Unix. The actual path between two
computers on the Internet is not a straight line but consists of numerous segments or
"hops" from one intermediate computer to another. Tracert shows each step of the path
taken. It can be interesting to see just how convoluted it is. The times for each hop and
the IP addresses for each intermediate computer are displayed. Tracert shows up to 30
hops. It is convenient for finding if there is one particular segment that is causing a slow
or bad connection. A typical command might be "tracert dell.com".
Netstat
Netstat displays the active TCP connections and ports on which the computer is listening,
Ethernet statistics, the IP routing table, statistics for the IP, ICMP, TCP, and UDP
protocols. It comes with a number of switches for displaying a variety of properties of the
network and TCP connections. (One tricky point: the switches must be prefixed with a
minus, not a slash.) More detail is at this page. One possible use for Netstat is to
determine if spyware or Trojans have established connections that you do not know
about. The command "netstat -a" will display all your connections. The command "netstat
-b" will show the executable files involved in creating a connection. A figure showing all
the switches and syntax is given below.
Nslookup
This command helps diagnose the Domain Name System (DNS) infrastructure and comes
with a number of sub-commands. These are mainly for systems administrators. The
primary interest for average PC users is its use to find the computer name corresponding
to a numeric IP. For example, if you want to know who is "216.109.112.135" , enter
"nslookup 216.109.112.135" and you will find that it is (or was anyway) a Yahoo
computer. My firewall keeps a log of the IPs involved in the attempts to probe my
computer and I sometimes look a few up to see who they are. (There are also Whois
search sites available on the Web as mentioned in the Ipconfig section.)
ARP
Short for Address Resolution Protocol, ARP is a protocol used with the IP protocol for
mapping a 32-bit Internet Protocol address to a MAC address that is recognized in the
local network specified in RFC 826. Once recognized, the server or networking device
returns a response containing the required address.
FINGER
The finger command available in Unix / Linux variants allows a user to find sometimes
personal information about a user. This information can include the last time the user
logged in, when they read their e-mail, etc... If the user creates a .PLAN or other related
file the user can also display additional information.
HOSTNAME
The hostname command displays the host name of the Windows XP computer currently
logged into.
PATHPING
Pathping is a MS-DOS utility available for Microsoft Windows 2000 and Windows XP
users. This utility enables a user to find network latency and network loss.
NET
The net command is available in MS-DOS / Windows and is used to set, view and
determine network settings.
[SERVER | WORKSTATION]
NET Continues the use of service.
CONTINUE
[service]
NET FILE Display opened shared files on the server.
[id [/CLOSE]]
NET GROUP Add, delete, view, and otherwise manage network workgroups.
[service]
NET PRINT Manage network print jobs.
\\computername\sharename
[\\computername] job# [/HOLD | /RELEASE | /DELETE]
NET SEND Sends messages to other users, computers, or messaging names on
the network. The Messenger service must be running to receive
messages.
[\\computername] [/DELETE]
NET SHARE Create and manage a local network share.
sharename
sharename=drive:path [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents| Programs | None ]
sharename [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents | Programs | None]
{sharename | devicename | drive:path} /DELETE
NET START Start the specified network service.
[service]
NET Display network statistics of the workstation or server.
STATISTICS
[WORKSTATION | SERVER]
NET STOP Stop the specified network service.
service
NET TIME Display the time and date of another network computer.
[\\computername | /DOMAIN[:domainname] |
/RTSDOMAIN[:domainname]] [/SET]
[\\computername] /QUERYSNTP
[\\computername] /SETSNTP[:ntp server list]
NET USE Connects or disconnects your computer from a shared resource or
displays information about your connections.
[devicename | *] [\\computername\sharename[\volume]
[password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]
command /?
NET HELP [suffix]
NET HELP errornum
The first syntax line above is for changing the password for your
password-list file. The second syntax line above is for changing your
password on a Windows NT or LAN Manager server or domain.
NET PRINT Displays information about print queues and controls print jobs.
When you specify the name of a computer by using the NET PRINT
command, you receive information about the print queues on each of
the shared printers that are connected to the computer.
NET SEND NET SEND {name | * | /DOMAIN[:name] | /USERS} message
NET VER
NET VIEW Displays a list of computers in a specified workgroup or the shared
resources available on a specified computer.