Noen nyttige nettkommandoer.




Viser forbindelsen (eller mangel på forbindelse) til en node (Host)

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


Options:        -t                                      Ping the specifed host until interrupted.

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



Viser forbindelsen (eller mangel på forbindelse) til en node (Host) og de mellomliggende noder.

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

 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.




Manipulates network routing tables.


ROUTE [-f] [command [destination] [MASK netmask] [gateway]]


                      -f                       Clears the routing tables of all gateway entries.  If this is used in conjunction with one of the commands, the tables are cleared prior to running the command.

command   Specifies one of four commands:

                                                         PRINT          Prints a route

                                                         ADD             Adds a route

                                                         DELETE       Deletes a route

                                                         CHANGE     Modifies an existing route

                      destination        Specifies the host to send command.

                      MASK             If the MASK keyword is present, the next parameter is interpreted as the netmask parameter.

                      netmask            If provided, specifies a sub-net mask value to be associated with this route entry.  If not specified, if defaults to

                      gateway            Specifies gateway.


All symbolic names used for destination or gateway are looked up in the network and host name database files NETWORKS and HOSTS, respectively.  If the command is print or delete, wildcards may be used for the destination and gateway, or the gateway argument may be omitted.



Transfers files to and from a computer running an FTP server service (sometimes called a daemon).

Ftp can be used interactively.

FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [host]

                      -V                        Suppresses display of remote server responses.

                      -n                         Suppresses auto-login upon initial connection.

                      -i                          Turns off interactive prompting during multiple file transfers.

                      -d                         Enables debugging.

                      -9                         Disables filename globbing (see GLOB command).

                                -s:filename.             Specifies a text file containing FTP commands; the commands will

                                   automatically run after FTP starts.

                      -host                    Specifies the host name or IP address of the remote host to connect to.



Displays protocol statistics and current TCP/IP network connections.


NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]


-a                         Displays all connections and listening ports. (Server-side connections are normally not shown).

-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 contents of 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 specif a subset of the default.

interval                Redisplays selected statistics, pausing interval seconds between each display.  Press CTRL+C to stop redisplaying statistics.  If omitted, netstat will print the current configuration information once.


Displays protocol statistics and current TCP/IP connections using NBT(NetBIOS)

NBTSTAT [-a RemoteNamel [-A IP address] [-c] [-n] [-r] [-R] [-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 its

                                                               IP address.

                      -C      (cache)                    Lists the remote name cache including the 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 host names via the hosts file.

                      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.


Displays 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 current protocol data.  If inet-addr is specified, the IP and Physical addresses for only the specified computer are displayed.  If more 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.

                   -s                            Adds the host and associates the Internet address inet_addr with 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 the interface whose address translation table should be modified. If not present, the first applicable interface will be used.



Du får flere opplysninger om en gitt Microsoft NET-kommando ved å skrive kommandonavnet fulgt av /?

(for eksempel NET VIEW /?).


                   NET CONFIG          Viser gjeldende arbeidsgruppeinnstillinger.

                   NET DIAG               Kjører programmet Microsoft Network Diagnostics for å vise diagnose-informasjon om nettverket.

                   NET HELP                Gir mer informasjon om kommandoer og feilmeldinger.

                   NET INIT                 Laster drivere for protokoller og nettverkskort uten å binde dem til Protokollbehandling.

                   NET LOGOFF          Bryter forbindelsen mellom maskinen din og den delte ressursen den er koblet til.

                   NET LOGON           Identifiserer deg som et medlem av en arbeidsgruppe.

                   NET PASSWORD    Endrer påloggingspassordet.

                   NET PRINT              Viser informasjon om utskriftsk›er og kontrollerer utskriftsjobber.

                   NET START             Starter tjenester.

                   NET STOP                Avbryter tjenester.

                   NET TIME               Viser klokkeslettet eller synkroniserer klokken p† maskinen med klokken på en Microsoft Windows for Workgroups-, Windows NT-, Windows 95- eller NetWare tidsserver.

                   NET USE                  Kobler til eller fra en delt ressurs, eller viser informasjon om tilkoblinger.

                   NET VER                  Viser type og versjonnummer til arbeidsgruppe-omadressereren du bruker.

                   NET VIEW                Viser en liste over maskiner som deler ressurser, eller en liste over delte ressurser på en gitt maskin.