Tuesday, March 26, 2024

Command Line for Computer Network

Renaming Network Adapter
1) Syntax: netsh interface ipv4 show interface

2) Syntax:
netsh interface set interface name = "Local Area Connection 5" newname = "iSCSI1"


3) Syntax: netsh interface ipv4 show interface 


 

 

 

 

 

Check network Adapter Details
Syntax: ipconfig/all - lists out all the IP Configuration details of your Windows based machine. This would include both the Hardware MAC Addresses as well as your IP Address associated with that MAC.

 

 

 

 

 

 

 

 

 

 

 

Deployment and Troubleshooting
1) Syntax: ipconfig/flushdns - System clears the cache of name to ip entries and reloads them from the connected DNS server.

 

 2) Syntax: ipconfig/release - executed to force the client to immediately give up its lease by sending the server a DHCP release notification which updates the server's status information and marks the old client's IP address as "available"


3) Syntax: ipconfig/renew - Executed to request a new IP address


4) Syntax: getmac − Displays the MAC addresses for your network cards.


5) Syntax: hostname - Prints the hostname or computer name.

6) Syntax: netstat − Displays immediate networks stats, such as open ports and routing table information.

7) Syntax: ping − Used for simple network troubleshooting.


8) Syntax: netsh int ip set address “local area connection” static 192.168.1.100 255.255.255.0 192.168.1.1 1

9) Syntax: netsh int ip set address “local area connection” dhcp


10) Syntax: net view - View computers on the network.





No comments:

Post a Comment