Friday, 2 September 2011

Here's a list of the network related Commands you can use at the Command Prompt:


getmac − Displays the MAC addresses for your network cards.

hostname – Prints the hostname or computer name.

ipconfig − Display and change your TCP/IP configuration settings, or to flush DNS or renew DHCP leases.

nbtstat − Displays protocol statistics and current TCP/IP connections using NetBIOS over TCP/IP.

net − A set of commands for interacting with Windows network functions.

netsh − Powerful utility that can adjust many network and interface settings.

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

nslookup − For testing and troubleshooting DNS servers

pathping − Used for network troubleshooting.

ping − Used for simple network troubleshooting.

route − Manipulates network routing tables.

tracert − Helps identify connectivity problems between the local computer and a network address.

tracert – Helps troubleshoot network connections by tracing the route to a server.

route ADD xxx.xxx.xxx.xxx MASK xxx.xxx.xxx.xxx  xxx.xxx.xxx.xxx
Means:
route ADD “network” MASK “subnet mask”  “gateway ip”
example: route ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12



Your routing table should now reflect that change, and all traffic to the 10.10.10.x range will now be sent over to the gateway machine.
The route add change will only stick across reboots if you add it with the -p flag, as in the following:
route -p ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12

0 Responses to “Here's a list of the network related Commands you can use at the Command Prompt:”

Post a Comment