Cmd relating to IP networks on Windows

Ping PING: Test the network connection with a remote IP address ping-t [IP or host] ping-l 1024 [IP or host] The-t option allows you to make pings continuously until Ctrl-C. If you have specified the-t option you can always have statistics without stopping the ping by pressing Ctrl + BREAK (aka Ctrl + Break) This command is also useful to generate network load by specifying the packet size with the-l and the packet size in bytes. Tracert TRACERT: Displays all IP addresses intermediaries through which passes a packet between the local machine and IP address specified. tracert [@ IP or host name] tracert-d [@ IP or host name] This command is useful if the ping does not reply, to determine at what level the connection fails. IpConfig IPCONFIG: Displays or refreshes the configuration TCP / IP ipconfig / all [/ release [adapter]] [/ renew [adapter]] / flushdns / displaydns / registerdns [-a] [-a] [-a] This command executed without options, displays the current IP address, netmask and default gateway at the network interfaces known on the local machine. / all: Displays all network configuration, including DNS, WINS, DHCP lease, etc. … / renew [map]: Renews DHCP configuration for all adapters (if an adapter is specified) or a specific map with the parameter map. The card name is the one shown with ipconfig without parameters. / release [adapter]: Sends a message DHCPRELEASE DHCP server to release the current DHCP configuration and cancel the IP address configuration for all adapters (if an adapter is specified) or a specific map with a parameter map. This parameter disables TCP / IP for adapters configured to automatically obtain an IP address. / flushdns: Empty the cache and resets the DNS client resolver. This option is useful to exclude the negative cache entries and all other entries added dynamically. / displaydns: Shows the cache of the DNS client resolver, which includes both entries preloaded from the local hosts file and all resource records recently obtained for name queries resolved by the computer. The DNS Client service uses this information to quickly resolve frequently queried names, before querying its configured DNS servers. / registerdns: Refreshes all DHCP leases and re-registers DNS names. NetStat NETSTAT: Display the state of the TCP / IP on the local machine NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]-a Displays all connections and listening ports (server-side connections are normally inhibited). -e Displays Ethernet statistics. Can be combined with the-s 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. 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 statistics by protocol. By default, statistics on TCP, UDP and IP are displayed, the-p option can be used to specify a subset of default. interval: Redisplay selected statistics, with a pause "interval" seconds between each display. Press Ctrl + C to stop displaying statistics. Poster-abnov processes that use the internet connection (local IP address, port, remote IP address and the PID of the process that uses the connection as its name). Route ROUTE: Displays or modifies the routing table ROUTE [-f] [command [destination] [MASK netmask] [gateway]-f Clears the routing tables of all gateway entries. Used in conjunction with a orders, tables are cleared before executing the command. -p Makes residual entry in the table after the reboot of the machine command Specifies one of four commands: DELETE: Deletes a route. PRINT: Prints a route. ADD: Adds a route. CHANGE: Modifies an existing route. destination Specifies the host. MASK If the MASK keyword is present, the next parameter is interpreted as the netmask parameter. netmask: Provided, it specifies the value of mask subnet to assign to this route entry. Not specified, it takes the default Gateway: Specifies the bridge. METRIC: Specifies the cost metric for the destination Arp ARP: Resolving IP addresses into MAC addresses. Displays and modifies the translation tables of IP addresses to physical addresses used by the resolution protocol ARP addresses. ARP-s adr_inet adr_eth [adr_if] ARP-d adr_inet [adr_if] ARP-a [adr_inet] [-N adr_if]-a Displays the ARP entries by interrogating the active protocol data assets. If adr_inet is specified, only IP addresses and physical the specified computer are displayed. If more than one network interface uses ARP, entries for each ARP table are displayed. -g Same as-a. adr_inet Specifies an internet address. N-adr_if Displays ARP entries for the specified network interface by adr_if. -d Deletes the host specified by adr_inet. -s Adds the host and associates the Internet address adr_inet with the physical address adr_eth. The physical address is given as 6 hexadecimal bytes separated by hyphens. The entry is permanent. adr_eth Specifies a physical address. adr_if specified, it specifies the Internet address of the interface where the translation table addresses should be amended. Not specified, the first applicable interface will be used. Nbtstat NBTSTAT: Update cache file Lmhosts. Displays protocol statistics and TCP / IP using existing NBT (NetBIOS over TCP / IP). NBTSTAT [-a remote name] [-A IP address] [-c] [-n] [-r] [-R] [-s] [S] [interval]-a (card status) List the name table of the remote machine (name unknown). -A (card status) List the name table of the remote machine (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) Purge and reload the table cache of remote names. -S (Sessions) List sessions table with the destination IP addresses. -s (sessions) List sessions table converting destination IP addresses to host names via the hosts file. An Example: nbtstat-A IP @ This command returns the NetBIOS name, system name, users connected … from the remote machine. Telnet TELNET telnet telnet The telnet command allows access in Terminal mode (Screen liabilities) to a remote host. It also check if any TCP service running on a remote server after specifying the IP address on TCP port number. Thus we can test whether the SMTP service, for example, runs on a Microsoft Exchange server using the IP address of the SMTP connector and then 25 as the port number. The ports are the most common: ftp (21) telnet (23) smtp (25) www (80) kerberos (88) pop3 (110) nntp (119) and nbt (137-139). Hostname HOSTNAME: Displays the name of the machine Ftp FTP Client File Upload ftp-s:-s this option allows to run FTP in batch mode: Specifies a text file containing FTP commands. NSLookUp Nslookup: DNS sends queries to a DNS server of your choice nslookup [domain] [dns server] The nslookup command can send requests to a DNS server. By default, if you do not put the DNS server, the command will use whatever is configured for your network interface (the one you use to surf the Internet, for example) but you can force the use of another server. For example, to ask the DNS server IP address corresponding to address nslookup you do not specify any parameters for nslookup, open a shell awaiting requests from you. NetSh NetSh: configure the network in Windows
Cet article a été publié dans Configuration - machine. Ajoutez ce permalien à vos favoris.

Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:


Vous commentez à l'aide de votre compte Déconnexion /  Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion /  Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion /  Changer )


Connexion à %s