0% found this document useful (0 votes)
64 views

Network Basic Commands

Uploaded by

pavannaidu1424
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views

Network Basic Commands

Uploaded by

pavannaidu1424
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

NETWORK BASIC COMMANDS

PING:
C:\Users\Nagarajan>ping www.google.com

Pinging www.google.com [142.250.76.36] with 32 bytes of data:


Reply from 142.250.76.36: bytes=32 time=16ms TTL=57
Reply from 142.250.76.36: bytes=32 time=16ms TTL=57
Reply from 142.250.76.36: bytes=32 time=19ms TTL=57
Reply from 142.250.76.36: bytes=32 time=16ms TTL=57

Ping statistics for 142.250.76.36:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 16ms, Maximum = 19ms, Average = 16ms

NSLOOKUP & PING:


C:\Users\Nagarajan>nslookup www.dinamalar.com
Server: multiplay.bsnl.in
Address: 218.248.112.65

Non-authoritative answer:
Name: e2450.dsca.akamaiedge.net
Addresses: 2600:140f:3:f85::992
2600:140f:3:f9b::992
23.65.97.178
Aliases: www.dinamalar.com
www.dinamalar.com.edgekey.net

C:\Users\Nagarajan>ping 23.65.97.178

Pinging 23.65.97.178 with 32 bytes of data:


Reply from 23.65.97.178: bytes=32 time=68ms TTL=57
Reply from 23.65.97.178: bytes=32 time=16ms TTL=57
Reply from 23.65.97.178: bytes=32 time=16ms TTL=57
Reply from 23.65.97.178: bytes=32 time=17ms TTL=57

Ping statistics for 23.65.97.178:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 16ms, Maximum = 68ms, Average = 29ms

Nslookup:

C:\Users\Nagarajan>nslookup www.google.com
Server: multiplay.bsnl.in
Address: 218.248.112.65

Non-authoritative answer:
Name: www.google.com
Addresses: 2404:6800:4007:814::2004
142.250.76.36
Getmac:
C:\Users\Nagarajan>getmac

Physical Address Transport Name


===================
=========================================================
=
90-E8-68-EF-34-07 Media disconnected
N/A Media disconnected
00-FF-68-9A-71-54 Media disconnected
00-00-00-00-04-CE \Device\Tcpip_{67FAF6F2-626B-4193-AAE8-
5E138160F446}
0A-00-27-00-00-12 \Device\Tcpip_{C9A41760-AAB4-4872-9BA9-
F564DAAA4F8C}
Ipconfig & ipconfig /all:
C:\Users\Nagarajan>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : LAPTOP-S9RH9QKQ


Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Ethernet 2:

Media State . . . . . . . . . . . : Media disconnected


Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : ExpressVPN TAP Adapter
Physical Address. . . . . . . . . : 00-FF-68-9A-71-54
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Unknown adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected


Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : ExpressVPN Wintun Driver
Physical Address. . . . . . . . . :
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Ethernet adapter VirtualBox Host-Only Network:

Connection-specific DNS Suffix . :


Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
Physical Address. . . . . . . . . : 0A-00-27-00-00-12
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::99b6:1575:2ddf:9d8d%18(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 805961767
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-29-A6-24-CC-0C-37-96-4C-
B3-A4
NetBIOS over Tcpip. . . . . . . . : Enabled

Wireless LAN adapter Local Area Connection* 1:

Media State . . . . . . . . . . . : Media disconnected


Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
Physical Address. . . . . . . . . : 92-E8-68-EF-34-27
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 2:

Media State . . . . . . . . . . . : Media disconnected


Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2
Physical Address. . . . . . . . . : 92-E8-68-EF-34-37
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Ethernet 3:

Connection-specific DNS Suffix . :


Description . . . . . . . . . . . : Corechip SR9900 USB2.0 to Fast Ethernet
Adapter
Physical Address. . . . . . . . . : 00-00-00-00-04-CE
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::54b1:4fca:d286:66fd%9(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.14(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 22 July 2022 04:54:26
Lease Expires . . . . . . . . . . : 23 July 2022 04:54:25
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DHCPv6 IAID . . . . . . . . . . . : 738197504
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-29-A6-24-CC-0C-37-96-4C-
B3-A4
DNS Servers . . . . . . . . . . . : 218.248.112.65
218.248.112.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Wireless LAN adapter Wi-Fi:

Media State . . . . . . . . . . . : Media disconnected


Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : MediaTek MT7921 Wi-Fi 6 802.11ax PCIe
Adapter
Physical Address. . . . . . . . . : 90-E8-68-EF-34-07
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Hostname:
C:\Users\Nagarajan>hostname
LAPTOP-S9RH9QKQ
Tracert:
C:\Users\Nagarajan>tracert www.google.com
Tracing route to www.google.com [142.250.195.36]
over a maximum of 30 hops:

1 288 ms 1 ms 1 ms 192.168.1.1
2 2 ms 2 ms 2 ms 117.221.0.1
3 2 ms 2 ms 2 ms 218.248.169.17
4 39 ms 3 ms 3 ms static.ill.218.248.126.162/24.bsnl.in
[218.248.126.162]
5 * 16 ms 15 ms 117.216.207.223
6 16 ms 16 ms 15 ms 117.216.207.222
7 21 ms 22 ms 22 ms 72.14.218.250
8 16 ms 16 ms 16 ms 216.239.43.131
9 15 ms 16 ms 15 ms 142.251.55.65
10 20 ms 21 ms 20 ms maa03s37-in-f4.1e100.net [142.250.195.36]
Netstat:
C:\Users\Nagarajan>netstat

Active Connections

Proto Local Address Foreign Address State


TCP 127.0.0.1:49713 LAPTOP-S9RH9QKQ:49714 ESTABLISHED
TCP 127.0.0.1:49714 LAPTOP-S9RH9QKQ:49713 ESTABLISHED
TCP 127.0.0.1:49719 LAPTOP-S9RH9QKQ:49720 ESTABLISHED
TCP 127.0.0.1:49720 LAPTOP-S9RH9QKQ:49719 ESTABLISHED
TCP 127.0.0.1:49881 LAPTOP-S9RH9QKQ:49890 ESTABLISHED
TCP 127.0.0.1:49890 LAPTOP-S9RH9QKQ:49881 ESTABLISHED
TCP 127.0.0.1:49936 LAPTOP-S9RH9QKQ:49937 ESTABLISHED
TCP 127.0.0.1:49937 LAPTOP-S9RH9QKQ:49936 ESTABLISHED
TCP 127.0.0.1:49943 LAPTOP-S9RH9QKQ:49944 ESTABLISHED
TCP 127.0.0.1:49944 LAPTOP-S9RH9QKQ:49943 ESTABLISHED
TCP 192.168.1.14:49409 20.198.118.190:https ESTABLISHED
TCP 192.168.1.14:49411 20.198.119.143:https ESTABLISHED
TCP 192.168.1.14:49717 ec2-35-82-239-78:https CLOSE_WAIT
TCP 192.168.1.14:49723 ec2-35-82-239-78:https CLOSE_WAIT
TCP 192.168.1.14:49896 52.114.40.55:https ESTABLISHED
TCP 192.168.1.14:49901 52.114.40.55:https ESTABLISHED
TCP 192.168.1.14:49986 104.40.53.219:https CLOSE_WAIT
TCP 192.168.1.14:49989 40.70.161.102:https CLOSE_WAIT
TCP 192.168.1.14:50011 sc-in-f188:5228 ESTABLISHED
TCP 192.168.1.14:50074 ec2-18-188-89-209:https ESTABLISHED
TCP 192.168.1.14:50080 ec2-18-188-89-209:https ESTABLISHED
TCP 192.168.1.14:50166 maa03s29-in-f3:https ESTABLISHED
TCP 192.168.1.14:50185 maa03s38-in-f3:https ESTABLISHED
TCP 192.168.1.14:50189 maa05s06-in-f14:https ESTABLISHED
TCP 192.168.1.14:50191 maa05s28-in-f14:https ESTABLISHED
TCP 192.168.1.14:50195 maa05s20-in-f14:https ESTABLISHED
TCP 192.168.1.14:50196 maa03s38-in-f3:https ESTABLISHED
TCP 192.168.1.14:50198 maa05s18-in-f10:https ESTABLISHED
TCP 192.168.1.14:50205 maa03s42-in-f14:https ESTABLISHED
TCP 192.168.1.14:50206 maa05s17-in-f10:https ESTABLISHED
TCP 192.168.1.14:50207 maa05s18-in-f10:https ESTABLISHED
TCP 192.168.1.14:50227 maa03s46-in-f14:https ESTABLISHED
TCP 192.168.1.14:50237 maa03s43-in-f14:https ESTABLISHED
TCP 192.168.1.14:50239 162.125.35.134:https ESTABLISHED
Pathping
C:\Users\Nagarajan>pathping google.com

Tracing route to google.com [142.250.195.238]


over a maximum of 30 hops:
0 LAPTOP-S9RH9QKQ [192.168.1.14]
1 192.168.1.1
2 117.221.0.1
3 218.248.169.17
4 static.ill.218.248.120.186/24.bsnl.in [218.248.120.186]
5 * * *
Computing statistics for 100 seconds...
Source to Here This Node/Link
Hop RTT Lost/Sent = Pct Lost/Sent = Pct Address
0 LAPTOP-S9RH9QKQ [192.168.1.14]
0/ 100 = 0% |
1 1ms 0/ 100 = 0% 0/ 100 = 0% 192.168.1.1
0/ 100 = 0% |
2 2ms 0/ 100 = 0% 0/ 100 = 0% 117.221.0.1
0/ 100 = 0% |
3 2ms 0/ 100 = 0% 0/ 100 = 0% 218.248.169.17
0/ 100 = 0% |
4 2ms 0/ 100 = 0% 0/ 100 = 0% static.ill.218.248.120.186/24.bsnl.in
[218.248.120.186]

Trace complete.
ARP
C:\Users\Nagarajan>arp -a
Interface: 192.168.1.13 --- 0x2
Internet Address Physical Address Type
192.168.1.1 14-a7-2b-6a-22-78 dynamic
192.168.1.255 ff-ff-ff-ff-ff-ff static
224.0.0.22 01-00-5e-00-00-16 static
224.0.0.251 01-00-5e-00-00-fb static
224.0.0.252 01-00-5e-00-00-fc static
239.255.255.250 01-00-5e-7f-ff-fa static
255.255.255.255 ff-ff-ff-ff-ff-ff static

Interface: 192.168.56.1 --- 0x12


Internet Address Physical Address Type
192.168.56.255 ff-ff-ff-ff-ff-ff static
224.0.0.22 01-00-5e-00-00-16 static
224.0.0.251 01-00-5e-00-00-fb static
224.0.0.252 01-00-5e-00-00-fc static
239.255.255.250 01-00-5e-7f-ff-fa static
255.255.255.255 ff-ff-ff-ff-ff-ff static
Systeminfo:
C:\Users\Nagarajan>systeminfo

Host Name: LAPTOP-S9RH9QKQ


OS Name: Microsoft Windows 11 Home Single Language
OS Version: 10.0.22000 N/A Build 22000
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: Nagarajan
Registered Organization: HP
Product ID: 00356-24556-91310-AAOEM
Original Install Date: 24-06-2022, 17:48:29
System Boot Time: 22-07-2022, 04:54:06
System Manufacturer: HP
System Model: HP Laptop 15s-fq4xxx
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 140 Stepping 2 GenuineIntel
~2496 Mhz
BIOS Version: AMI F.21, 21-03-2022
Windows Directory: C:\windows
System Directory: C:\windows\system32
Boot Device: \Device\HarddiskVolume1
System Locale: en-us;English (United States)
Input Locale: 00004009
Time Zone: (UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi
Total Physical Memory: 7,834 MB
Available Physical Memory: 2,224 MB
Virtual Memory: Max Size: 14,234 MB
Virtual Memory: Available: 7,151 MB
Virtual Memory: In Use: 7,083 MB
Page File Location(s): C:\pagefile.sys
Domain: WORKGROUP
Logon Server: \\LAPTOP-S9RH9QKQ
Hotfix(s): 3 Hotfix(s) Installed.
[01]: KB5013889
[02]: KB5015814
[03]: KB5016353
Network Card(s): 4 NIC(s) Installed.
[01]: MediaTek MT7921 Wi-Fi 6 802.11ax PCIe Adapter
Connection Name: Wi-Fi
DHCP Enabled: Yes
DHCP Server: 192.168.1.1
IP address(es)
[01]: 192.168.1.13
[02]: fe80::8aa:265f:b76a:5b59
[02]: ExpressVPN Wintun Driver
Connection Name: Local Area Connection
Status: Media disconnected
[03]: ExpressVPN TAP Adapter
Connection Name: Ethernet 2
Status: Media disconnected
[04]: VirtualBox Host-Only Ethernet Adapter
Connection Name: VirtualBox Host-Only Network
DHCP Enabled: No
IP address(es)
[01]: 192.168.56.1
[02]: fe80::99b6:1575:2ddf:9d8d
Hyper-V Requirements: VM Monitor Mode Extensions: Yes
Virtualization Enabled In Firmware: Yes
Second Level Address Translation: Yes
Data Execution Prevention Available: Yes
Netsh /?
C:\Users\Nagarajan>netsh /?

Usage: netsh [-a AliasFile] [-c Context] [-r RemoteMachine] [-u


[DomainName\]UserName] [-p Password | *]
[Command | -f ScriptFile]

The following commands are available:

Commands in this context:


? - Displays a list of commands.
add - Adds a configuration entry to a list of entries.
advfirewall - Changes to the `netsh advfirewall' context.
bridge - Changes to the `netsh bridge' context.
delete - Deletes a configuration entry from a list of entries.
dhcpclient - Changes to the `netsh dhcpclient' context.
dnsclient - Changes to the `netsh dnsclient' context.
dump - Displays a configuration script.
exec - Runs a script file.
firewall - Changes to the `netsh firewall' context.
help - Displays a list of commands.
http - Changes to the `netsh http' context.
interface - Changes to the `netsh interface' context.
ipsec - Changes to the `netsh ipsec' context.
lan - Changes to the `netsh lan' context.
mbn - Changes to the `netsh mbn' context.
namespace - Changes to the `netsh namespace' context.
netio - Changes to the `netsh netio' context.
nlm - Changes to the `netsh nlm' context.
p2p - Changes to the `netsh p2p' context.
ras - Changes to the `netsh ras' context.
rpc - Changes to the `netsh rpc' context.
set - Updates configuration settings.
show - Displays information.
trace - Changes to the `netsh trace' context.
wcn - Changes to the `netsh wcn' context.
wfp - Changes to the `netsh wfp' context.
winhttp - Changes to the `netsh winhttp' context.
winsock - Changes to the `netsh winsock' context.
wlan - Changes to the `netsh wlan' context.

The following sub-contexts are available:


advfirewall bridge dhcpclient dnsclient firewall http interface ipsec lan mbn
namespace netio nlm p2p ras rpc trace wcn wfp winhttp winsock wlan

To view help for a command, type the command, followed by a space, and then
type ?.
netsh wlan /?
C:\Users\Nagarajan>netsh wlan /?

The following commands are available:

Commands in this context:


? - Displays a list of commands.
add - Adds a configuration entry to a table.
connect - Connects to a wireless network.
delete - Deletes a configuration entry from a table.
disconnect - Disconnects from a wireless network.
dump - Displays a configuration script.
export - Saves WLAN profiles to XML files.
help - Displays a list of commands.
IHV - Commands for IHV logging.
refresh - Refresh hosted network settings.
reportissues - Generate WLAN smart trace report.
set - Sets configuration information.
show - Displays information.
start - Start hosted network.
stop - Stop hosted network.

To view help for a command, type the command, followed by a space, and then
type ?.
netsh wlan show /?
C:\Users\Nagarajan>netsh wlan show /?

The following commands are available:

Commands in this context:


show all - Shows complete wireless device and networks information.
show allowexplicitcreds - Shows the allow shared user credentials settings.
show autoconfig - Shows whether the auto configuration logic is enabled or
disabled.
show blockednetworks - Shows the blocked network display settings.
show createalluserprofile - Shows whether everyone is allowed to create all
user profiles.
show drivers - Shows properties of the wireless LAN drivers on the system.
show filters - Shows the allowed and blocked network list.
show hostednetwork - Show hosted network properties and status.
show interfaces - Shows a list of the wireless LAN interfaces on
the system.
show networks - Shows a list of networks visible on the system.
show onlyUseGPProfilesforAllowedNetworks - Shows the only use GP profiles
on GP configured networks setting.
show profiles - Shows a list of profiles configured on the system.
show randomization - Shows whether MAC randomization is enabled or
disabled.
show settings - Shows the global settings of wireless LAN.
show tracing - Shows whether wireless LAN tracing is enabled or disabled.
show wirelesscapabilities - Shows the wireless capabilities of the system
show wlanreport - Generate a report showing recent wireless session
information.
Net share:
C:\Users\Nagarajan>net share

Share name Resource Remark

-------------------------------------------------------------------------------
C$ C:\ Default share
D$ D:\ Default share
E$ E:\ Default share
IPC$ Remote IPC
ADMIN$ C:\windows Remote Admin
The command completed successfully.
C:\Users\Nagarajan>net view

You might also like