The Wayback Machine - https://web.archive.org/web/20240808001336/https://www.geeksforgeeks.org/setting-ip-address-using-ipconfig-command/
Open In App

Setting IP Address Using ipconfig Command

Last Updated : 22 Jun, 2022
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

Setting up an IP address using the ipconfig command is a simple process that can be performed from any computer with an internet connection. This article aims to provide a step-by-step guide on setting up an IP address using the default gateway and the DNS server. This can be useful if you cannot access the internet or need to change your IP address. It is also useful if you are unsure of what your current IP address is.

Steps to Configure IP address in devices using ipconfig command in Cisco packet tracer:

Step 1: Open the Cisco packet tracer desktop and create a network topology peer-to-peer connection between two PCs as shown below:

S.NO Device IPv4 address Subnet Mask Default Gateway
1. PC0 192.168.0.2 255.255.255.0 192.168.0.1
2. PC1 192.168.0.3 255.255.255.0  192.168.0.1

 

Step 2: Configure PC0 and PC1 using the ipconfig command:

command : ipconfig <ip address> <subnet mask> <default gateway>
  • First, click on PC0 and go to the command prompt terminal.
  • Then, type the ipconfig command and configure the PC0 as shown below the image.
  • and verify the IP address by again typing only ipconfig in the terminal.
Command: ipconfig 192.168.0.2 255.255.255.0 192.168.0.1

 

Similarly with PC1:

  • First, click on PC1 and go to the command prompt terminal.
  • Then, type the ipconfig command and configure the PC0 as shown below the image.
  • and verify the IP address by again typing only ipconfig in the terminal.
Command: ipconfig 192.168.0.3 255.255.255.0 192.168.0.1

 

Step 3: Verifying connection by pinging the IP address of PC1 in the PC0 terminal:

command : ping 192.168.0.3

 

Output:

 



Similar Reads

Setting IP Address Using GUI
An IP address is a unique identity of any computer system on the internet by which it can communicate with other networks, servers, and web devices. if you want to learn more about IP addresses then you can refer to the article What is an IP Address? Now, GUI is a Graphical User interface that helps internet or web devices to communicate with each
2 min read
MAC Address Table On a Cisco Switches
The MAC (Media Access Control) address is a 48-bit physical identity of a device used to uniquely identify a device in layer 2 of the OSI model. It is represented in hexadecimal. The 3 bytes of the address represent the OUI, and the last 3 bytes are unique to the device itself. The switch keeps track of the other Ethernet interfaces on the network
3 min read
Global Unicast Address in CCNA
Global Unicast Address is equivalent to IPv4 public address. Global Unicast Addresses in IPv6 are globally identifiable and uniquely addressable. For more details, you can refer to IPv4 Addressing and IPv6 Addressing articles. The Most significant 48-bits are designated as global routing prefix which is assigned to a specific automatic system. The
2 min read
How to Find Your Default Gateway IP Address?
A default gateway is a node that enables a connection between networks in order to allow machines on other networks to communicate, In other words, the default gateway is an intermediate node between the local network and the internet. In this article, we will learn How to find the default gateway IP address of a machine. The IP address of the Defa
2 min read
Link Local Address
In computer networking, a link-local address is the IP address that is to be used for communication within a logical division of the network or in the broadcast domain to which the host is connected. The uniqueness in addresses is not assured in another network segment. Therefore, do not forward by routers.The other devices connected to the same ph
4 min read
Configuring NAT For IP Address Conservation in Cisco
IP address conservation is the goal of Network Address Translation (NAT). It makes it possible for private IP networks to connect to the Internet using unregistered IP addresses. Before packets are routed to another network, NAT acts as a router, typically connecting two networks, and converts the private (not globally unique) addresses in the inte
7 min read
How to Set a Static IP Address On Your Device?
A static IP address is one that does not change over time and can be assigned to a computer connected to the Internet. Every device that connects to your router receives a dynamic IP address by default. This is known as DHCP (short for Dynamic Host Control Protocol). However, there are occasions when we require our devices to connect to the network
2 min read
What is IPv6 Address Planning?
Prerequisites: Internet Protocol version 6 (IPv6) and what is IPv6? A new IP protocol, called Internet Protocol (IP) version 6, is intended to replace IP version 4, which is currently in use and deployed worldwide. The latest IP version, IPv4, has proven to be reliable, easy to implement, and easy to use. It is interoperable and has passed the test
7 min read
What is MAC Address Table ?
MAC stands for Media Access Control it is a physical address that uniquely identifies a device and hardware manufacturer on a network. Most commonly used in  (IEEE 802) networking technologies, like Ethernet, WiFi, and Bluetooth technology. A mac address is globally unique so suppose two devices are on the internet they can not have the same MAC ad
3 min read
Steps of Configuring NAT for IP Address Conservation
Pre-requisites: EIGRP, NAT Network Address Translation (NAT) is a process in which one or more local IP address is translated into one or more Global IP address and vice versa in order to provide Internet access to the local hosts. Also, it does the translation of port numbers i.e. masks the port number of the host with another port number, in the
2 min read
Article Tags :
three90RightbarBannerImg