MS-DOS Network Commands

Find useful MS-DOS network commands

Help with ipconfig, ping, tracert and other MS-DOS network related commands. Ipconfig is a command-line utility available on all version of Microsoft Windows and is very useful to troubleshoot network issues or IP address and DNS misconfigurations. With ipconfig you can find your local IP address, default gateway, subnet mask, DCHP information, available network adapters, IPv6 address, DNS settings, and much more. Other useful network commands are ping, tracert, netstat and nslookup. Below you can find a list of most used MS-DOS network commands:

//Display the network information
ipconfig /all

//Display the contents of the DNS client resolver cache 
ipconfig /displaydns

//Clear the DNS client resolver cache
ipconfig /flushdns

//Send the server a DHCP release notification (IPv4)
ipconfig /release

//Re-register (change) the IPv4 address
ipconfig /renew

//Send the server a DHCP release notification (IPv6)
ipconfig /release6

//Re-register (change) the IPv6 address
ipconfig /renew6

//Change or modify the DHCP Class ID
ipconfig /setclassid

//Open the network connections settings
control netconnections

//Ping a remote or local hostname
ping google.com

//Ping a remote or local IP address
ping 216.58.211.78

//Continuous ping (hit Ctrl + C to stop it)
ping google.com -t

//Limit the number of ping requests
ping google.com -n 10

//Customize the size of ping packets (max 65500 bytes)
ping google.com -l 1500

//Ping an IP address and resolve the hostname address
ping -a google.com

//Execute a nameserver lookup of a remote host
nslookup google.com

//Traceroute a remote or local host
tracert google.com

//Traceroute a remote or local IP address
tracert 216.58.211.78

//Display active TCP/UDP connections
netstat -an

//Display the name of your computer
hostname

//Get your actual MAC address
getmac

//Get your actual MAC address (more details)
arp -a