0% found this document useful (0 votes)
9 views8 pages

Lab 1

The document provides a comprehensive list of basic Windows network commands used for viewing configurations, diagnosing connectivity issues, and managing network settings. Each command is accompanied by its purpose, syntax, and expected output. Key commands include ipconfig, ping, tracert, and netstat, among others.
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)
9 views8 pages

Lab 1

The document provides a comprehensive list of basic Windows network commands used for viewing configurations, diagnosing connectivity issues, and managing network settings. Each command is accompanied by its purpose, syntax, and expected output. Key commands include ipconfig, ping, tracert, and netstat, among others.
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/ 8

LAB 1: LIST OF DIFFERENT NETWORK COMMANDS

Objectives: To learn and apply basic Windows network commands for viewing configurations, diagnosing
connectivity issues, and managing network settings.

Theory:
The different Network Commands are:
1. ipconfig:
It is used to show network configuration. It is used to display basic TCP/IP settings.
Syntax: ipconfig
Output:

2. ipconfig/all
It is used to show detailed IP information. It is used when we need full details of MAC, DHCP,
DNS, lease info.
Syntax: ipconfig /all
Output:

3. ipconfig /release
It is used to release current IP address. It is used when you want to disconnect from the current
network.
Syntax: ipconfig /release
Output:

4. ipconfig /renew
It is used to get a new IP address. It is used after release, or to fix DHCP issues.
Syntax: ipconfig /renew
Output:
5. ipconfig /flushdns
It is used to clear DNS resolver cache. It is used when there is DNS issues, or wrong IP is being cached.
Syntax: ipconfig /flushdns
Output:

6. ping [IP/domain]
It is used to test network connectivity. It is used to check if host/server is reachable.
Syntax: ping [IP/domain]
Output:

7. tracert [IP/domain]
It is used to trace route to destination. It is used to troubleshoot routing path or latency.
Syntax: ipconfig [IP/domain]
Output:
8. nslookup [domain]
It is used to query DNS to get domain IP address. It is used to check if DNS is resolving correctly.
Syntax: nslookup [domain]
Output:

9. netstat -an
It is used to show active network connections and listening ports. It is used to check for open ports or
suspicious connections.
Syntax: netstat -an
Output:

10. arp -a
It is used to show ARP(Address Resolution Protocol) cache. It is used to view MAC-IP address
mappings.
Syntax: arp -a
Output:
11. hostname
It is used to show computer’s name. It is used to find machine’s hostname.
Syntax: hostname
Output:

12. getmac
It is used to show MAC addresses of network adapters. It is used to identify device MAC address.
Syntax: getmac
Output:

13. net use


It is used to connect to a shared network resource. It is used to Map network drive or printer
Syntax: net use
Output:

14. net share


It is used to list shared resources on computer. It is used to view what is shared from computer device.
Syntax: net share
Output:
15. net start
It is used to show running services or start a service. It used to manage Windows services.
Syntax: net start
Output:

16. net stop


It is used to stop a Window service. It is used to stop a running service.
Syntax: net stop [service]
Output:

17. netsh
It is used to configure network settings. It is used to advanced configuration of network components.
Syntax: netsh
Output:
Result:
Thus, these are the different important Network Commands.

You might also like