Você está na página 1de 1

Quick Reference Guide:  IP Address Commands for Windows, DOS, Linux and Unix 

 
  Windows / DOS    Linux   Unix    
  ipconfig /all Ifconfig Ifconfig  
Display full configuration information. Display current configuration for all NIC's. Display current configuration for all NIC's.

ipconfig /release [adapter] ifconfig eth0 ifconfig dc0


Release the IP address for the specified adapter. Display current configuration for eth0. Display current configuration for dc0.

ipconfig /renew [adapter] ifconfig eth0 192.168.1.2 ifconfig dc0 inet 192.168.1.2 netmask 255.255.255.0
Renew the IP address for the specified adapter. Assign IP address 192.168.1.2 to eth0. Assign IP/Subnet to dc0.

ipconfig /flushdns ifconfig eth0:0 192.168.1.2 route delete default && route add default 192.168.1.1
Purge the DNS Resolver cache. Assign multiple IP's to eth0. Assign default gateway.

  ipconfig /registerdns ifconfig eth0:1 192.168.1.3 ifconfig dc0:0 192.168.1.2  


Refresh all DHCP leases and re-register DNS names. Assign second IP address to eth0:. Assign multiple IP's to dc0.

  ipconfig /displaydns route add default gw 192.168.1.1 ifconfig dc0:1 192.168.1.3  


Display the contents of the DNS Resolver Cache. Assign default gateway. Assign second IP to dc0.

  ipconfig /showclassid adapter ifconfig eth0 down ifconfig dc0 down  


Display all the DHCP class IDs allowed for adapter. Disable network interface card. Disable network card.

  ipconfig /setclassid adapter [classid] ifconfig eth0 up ifconfig dc0 up  


Modify the DHCP class id. Enable network interface card. Enable network card.

  control netconnections ifconfig eth0 192.168.1.2 netmask 255.255.255.0  


Launch "Network Connections". Assign IP/Subnet to eth0.

  netsetup.cpl route / route –n      


Launch "Network Setup Wizard". View current routing table.

  ping www.ip2location.com arp / arp –n      


Send ping packet to www.ip2location.com to test network connectivity. View arp cache

  tracert www.ip2location.com ping -c 3 www.ip2location.com      


Trace network route from desktop to www.ip2location.com. Send ping packet to www.ip2location.com to test network connectivity.

Route traceroute www.ip2location.com


Display and manipulate network routing tables. Trace network route from desktop to www.ip2location.com.

Netstat tracepath www.ip2location.com


Displays the TCP/IP protocol sessions. Trace network path from desktop to www.ip2location.com.

arp host www.ip2location.com


Display resolved MAC addresses. DNS test using www.ip2location.com.

Hostname host 44.11.22.33


Display name of computer currently on. Reverse host lookup by IP address.

dig www.ip2location.com
Advanced DNS test using www.ip2location.com.

  dig -x 44.11.22.33      
Advanced reverse DNS lookup by IP address.
 
 
Download and print this FREE guide in PDF from http://www.ip2location.com/ip‐address‐quick‐reference‐guide.aspx .  
 

Você também pode gostar