0% found this document useful (0 votes)
11 views6 pages

CMD Commands: CONTROL NETCONNECTIONS or NCPA - CPL: Shows The Network Connections

This document provides a guide to CMD and NETSH commands for managing networks and network interfaces in Windows. It includes commands to check connectivity and network status such as PING, TRACERT, and NETSTAT, as well as commands to configure the ARP table, network routes, IP addresses, DNS ports, and network interface parameters using NETSH. It also covers commands for managing services, users, computers, and shared network resources.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views6 pages

CMD Commands: CONTROL NETCONNECTIONS or NCPA - CPL: Shows The Network Connections

This document provides a guide to CMD and NETSH commands for managing networks and network interfaces in Windows. It includes commands to check connectivity and network status such as PING, TRACERT, and NETSTAT, as well as commands to configure the ARP table, network routes, IP addresses, DNS ports, and network interface parameters using NETSH. It also covers commands for managing services, users, computers, and shared network resources.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

CMD COMMANDS

CONTROL NETCONNECTIONS or NCPA.CPL: shows the network connections

INETCPL.CPL: opens Internet properties

FIREWALL.CPL: opens the Windows firewall

WF.MSC: opens the advanced functions of the Windows firewall (only for Vista).

NETSETUP.CPL: opens the network setup wizard (for XP only)

PING COMMAND

Ping: informs us of the status of a host. It is necessary to allow ICMP packets for it.
functioning.

Ping # IP: To connect to another PC

Ping -t: it pings until we press Ctrl+C to stop the transmissions.

Ping -a: returns the hostname.

Ping -l: sets the buffer size. By default, the value is 32.

Ping -f: prevents packets from being fragmented.

Ping -n (value): performs the ping test a specified number of times.

Ping -i TTL: allows you to change the TTL value. TTL would be replaced by the new value.

Ping -r (number of hops): indicates the hosts that our ping passes through. (maximum 9)

Ping -v TOS: is used in advanced networks to know the quality of service.

TRACERT: INDICATES THE ROUTE THROUGH WHICH OUR REQUEST PASSES UNTIL
ARRIVE AT THE DESTINATION HOST.

Tracert -d does not resolve domain names.


Tracert -h (value): sets a maximum number of hops.

PATCHPING: A MIX BETWEEN THE PING COMMAND AND TRACERT.

PatchPing -h:(number of hops): maximum number of hops.

PatchPing -n: host names are not resolved.

PatchPing -6: forces the use of IPV6

IPCONFIG: PROVIDES INFORMATION ABOUT TCP/IP, ADAPTERS, ETC


ETC.
arp: Displays the address resolution cache.

hostname: Shows the name of the computer.

Ipconfig: displays general information about the network.

ipconfig/all:Displays detailed information about the configuration of the connections


red.

ipconfig/displaydns: Shows the configuration of the network's DNS.

ipconfig/flushdns: Clears the DNS cache on the network.

ipconfig/release: Deletes the IP of all network connections.

ipconfig/renew: Renews the IP of all network connections.

ipconfig /registerdns: Refreshes DHCP and re-registers the DNS

ipconfig/showclassid: Displays information about the DHCP class.

ipconfig/setclassid: Change/modify the DHCP class ID.

Open Network Connections.

netsetup.cpl: Opens Network Connection Wizard.

net config: View and control workstations.

netstat: Shows all active connections on the computer.

nbtstat: Shows statistics of the current TCP/IP protocol and connections using NBT
(NetBIOS over TCP/IP).

net view: View the list of all the computer names on the network.
netsh: It can be used among other things to change the network parameters from the command line.
of commands.

net use: Displays all shared drives on your computer.

patchping: Mixture between the Ping command and Tracert.

ping dominio.tld: Check connectivity to a server.

route: Displays and modifies the information about the IP routes of the device.

tftp: transfers files from one site to another, it requires a server on one of the two
computers.

tracert: Trace the route of an IP address (Indicates the path our request takes)
until reaching the destination host)

NET VARIOUS FUNCTIONS

Net Send: Send a message through the messaging service

Net Start: Starts a Windows service

Net Stop: Stops a Windows service

Net Share: Indicates which resources the machine shares

Net View: Indicates which machines are accessible via the network

Net Sessions: Indicates who has accessed our shared resources

Net Time * /SET:Synchronizes the time with a network machine

Net User: Create or delete users

Net Localgroup: Create or delete groups

Netstat: Displays all active connections on the computer.

Netstat -a shows us all the connections and ports.

Netstat -e: displays Ethernet statistics

Netstat -n: shows addresses and ports in numerical form.

Netstat -o: shows which program is associated with the active connection
Netstat - p:(protocol): allows you to specify which protocol you want to see. TCP/UDP

Netstat -s shows statistics classified by protocol.

Nbtstat: a tool to resolve issues between IPs and NetBIOS.

Nbtstat -c: lists the NetBIOS names and associates them with an IP.

ARP: SAMPLES AND MODIFIES DATA FROM THE TRANSLATION TABLE OF


IP ADDRESSES TO MAC ADDRESSES (ARP TABLE)

Arp -a (also -g): displays the ARP table for each of the interfaces

Arp -s(dir_ip) (dir_MAC) [dir_interface]: adds a specific entry to the ARP table. If
there are several network interfaces, adding at the end the IP address of the interface, it adds it in the
table corresponding to that interface

Arp -d(dir_ip) [dir_interface]: removes a specific entry from the ARP table. They can be
use wildcards in the IP address. If there are multiple network interfaces, add at the end the
IP address of the interface, removes it from the corresponding table for that interface.

Route: displays and modifies the IP routing information of the device.

Route PRINT: shows the complete table of routes

Route ADD(red_destination) MASK (subnet_mask) (gateway) [METRIC metric]


Add a route. With the -p modifier (route add -p ...) makes the route
persistent, so it will remain even after the device is restarted.

Route DEL(destination_red) MASK (destination_mask) [gateway]: Deletes the route


specified. Allows wildcard characters.

Route CHANGE(red_destination) MASK (destination_mask) (next_hop_IP/output)


Modify the metric, or the gateway in a route
existing

NOTE: Parameters in parentheses () are mandatory and in square brackets [] are optional.

For Cardoomx TFTP, what it does is transfer files from one site to another, a
server on one of the two computers and it works more or less like this.

TFTP [-i] host [GET | PUT] source It works both on local networks and over the internet.
(opening clear port). In my opinion, it is a very very good utility when you connect by
Shell a PC to manage it. Of course, not everyone uses it for good purposes.

NETSH COMMAND

It can be used among other things to change the network parameters from the command line.
commands...

example of operation:

netsh interface ip set address name=LAN source=static addr=192.168.1.4


255.255.255.0
netsh interface ip set dns name=LAN source=static addr=80.58.0.33
netsh interface ip add dns name=LAN addr=80.58.32.97

SHUTDOWN COMMAND and OTHER

shutdown -i -> To shut down or restart any computer on the network, including your own

To cancel the shutdown of your computer if it is in process

To hibernate the computer

To restart the computer

(shutdown to show more options)

Open the task manager

Open Paint

Open On-Screen Keyboard

Open the Sound Recorder

Open a New WordPad Document

Open the Narrator

Open Notepad

Open Windows Explorer

Open the CMD

Close the CMD


cmd -> Shows the version of Windows

You can see many things about your system: the date you installed it, time zone
schedule, physical memory, etc.

tasklist -> Shows all open programs and applications.

You might also like