ipconfig
(standing for "
Internet Protocol
The Internet Protocol (IP) is the network layer communications protocol in the Internet protocol suite for relaying datagrams across network boundaries. Its routing function enables internetworking, and essentially establishes the Internet.
...
configuration") is a
console application
A console application is a computer program designed to be used via a text-only computer interface, such as a text terminal, the command-line interface of some operating systems ( Unix, DOS, etc.) or the text-based interface included with mo ...
program of some computer
operating system
An operating system (OS) is system software that manages computer hardware, software resources, and provides common daemon (computing), services for computer programs.
Time-sharing operating systems scheduler (computing), schedule tasks for ef ...
s that displays all current
TCP/IP
The Internet protocol suite, commonly known as TCP/IP, is a framework for organizing the set of communication protocols used in the Internet and similar computer networks according to functional criteria. The foundational protocols in the su ...
network configuration values and refreshes
Dynamic Host Configuration Protocol
The Dynamic Host Configuration Protocol (DHCP) is a network management protocol used on Internet Protocol (IP) networks for automatically assigning IP addresses and other communication parameters to devices connected to the network using a cli ...
(DHCP) and
Domain Name System
The Domain Name System (DNS) is a hierarchical and distributed naming system for computers, services, and other resources in the Internet or other Internet Protocol (IP) networks. It associates various information with domain names assigned t ...
(DNS) settings.
Implementations
The
command
Command may refer to:
Computing
* Command (computing), a statement in a computer language
* COMMAND.COM, the default operating system shell and command-line interpreter for DOS
* Command key, a modifier key on Apple Macintosh computer keyboards
* ...
is available in
Microsoft Windows
Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for ...
,
ReactOS
ReactOS is a free and open-source operating system for amd64/i686 personal computers intended to be binary-compatible with computer programs and device drivers made for Windows Server 2003 and later versions of Windows. ReactOS has been not ...
, and in
Apple
An apple is an edible fruit produced by an apple tree (''Malus domestica''). Apple trees are cultivated worldwide and are the most widely grown species in the genus '' Malus''. The tree originated in Central Asia, where its wild ancest ...
macOS
macOS (; previously OS X and originally Mac OS X) is a Unix operating system developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac computers. Within the market of desktop and la ...
. The ReactOS version was developed by Ged Murphy and is licensed under the
GPL.
Microsoft Windows, ReactOS
The
ipconfig
command supports the
command-line switch
A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of text. This provides a means of setting parameters for the environment, invoking executables and pro ...
/all
. This results in more detailed information than
ipconfig
alone.
An important additional feature of
ipconfig
is to force refreshing of the DHCP IP address of the host computer to request a different IP address. This is done using two commands in sequence. First,
ipconfig /release
is 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". Then, the command
ipconfig /renew
is executed to request a new IP address. Where a computer is connected to a cable or DSL modem, it may have to be plugged directly into the modem network port to bypass the router, before using
ipconfig /release
and turning off the power for a period of time, to ensure that the old IP address is taken by another computer.
The
/flushdns
parameter can be used to clear the Domain Name System (DNS) cache to ensure future requests use fresh DNS information by forcing hostnames to be resolved again from scratch.
Apple macOS
ipconfig
in
Mac OS X
macOS (; previously OS X and originally Mac OS X) is a Unix operating system developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac computers. Within the market of desktop and lap ...
serves as a wrapper to the IPConfiguration agent, and can be used to control the
Bootstrap Protocol
The Bootstrap Protocol (BOOTP) is a computer networking protocol used in
Internet Protocol networks to automatically assign an IP address to network devices from a configuration server. The BOOTP was originally defined in RFC 951.
While some par ...
and DHCP client from the command-line interface. For example, you can release and renew an IP address if it happened to be assigned incorrectly by the DHCP server during the automated assignment process.
Like most
Unix
Unix (; trademarked as UNIX) is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, ...
-based operating systems, Mac OS X also uses
ifconfig
ifconfig (short for ''interface config'') is a system administration utility in Unix-like operating systems for network interface configuration.
The utility is a command-line interface tool and is also used in the system startup scripts of man ...
for more direct control over network interfaces, such as configuring static IP addresses. The Ifconfig command in Linux has been replaced by the IP command
See also
*
ifconfig
ifconfig (short for ''interface config'') is a system administration utility in Unix-like operating systems for network interface configuration.
The utility is a command-line interface tool and is also used in the system startup scripts of man ...
References
Further reading
*
*
*
External links
*Windows
Microsoft TechNet Ipconfig articleVariableGHz article detailing ipconfig settings in Vistaipconfigdocumentation for
Windows
Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for se ...
*Mac OS X
**
{{Windows commands
Windows communication and services
Windows administration
MacOS-only software made by Apple Inc.