Manually Set IP Address Version 4

in blurtech •  4 years ago 

Setting IP in Windows 10.png

Utility

Today, Internet Protocol (IP) address version 4 is majorly used between computer communication over the network. However, most common people does not know that IP address is set on the network interface and not in the core system of the computer. For example, a laptop can have two IP address, one is on the cable and one is on the WiFi. This article guides users in setting IP address manually which can be for:

  • The network that we connect to have technical problem that we may have to set manually.
  • The usual automatic IP address received maybe blacklist and may not be from the main system but from malicious peers such as those who uses netcut to monopolize the traffic.
  • If you are going to be a administrator, you need to have this skill.
  • If you are studying in computers and engineerings, you may stumble on a class that requires you to set IP address manually for an experiment.
  • Eventhough you are not in computers or engineerings but you may come across a software that requires manual IP address setting.

Short Description

  • IP address is the address of your network card and if you do not understand them well, just change the last numbers and if you do not have a reference for users, just set it to automatic, take note of the IP address you receive and set it manually to a similar number.
  • Subnet mask determines the cluster of network you belong to. For example 192.168.1.2 with subnet mask 255.255.255.0 means you belong to a cluster which groups IP address ranging 192.168.1.0 - 192.168.1.255.
  • Gateway is the IP address destination when you want to send packet outside of the network. For example, to the Internet, if you cannot connect to the Internet, most likely a proble with your gateway configuration or the gateway itself.
  • Domain Name Service (DNS) is a server destination that can understand domain names. Your browser will not understand www.google.com without a DNS server. If you successfully connect to the Internet but cannot open any website, then DNS setting can potentially be the problem.
  • Gateway metric is rarely touch because this configuration is only necessary if you more than one gateway for example you connect to the Internet using two different network such as cable and wireless. Without any settings, your computer will be confused so set the metric with a number. A metric with higher number will have lower priority and vice versa.
  • Learn more about the fundamental at Simple Introduction to Computer Network

Set Up IP Address Manually

Windows GUI

Setting IP in Windows 1.png

Go to control panel.

Setting IP in Windows 2.png

Click Network and Internet.

Setting IP in Windows 3.png

Click Network and Sharing Center.

Setting IP in Windows 4.png

Change Adapter Setting.

Setting IP in Windows 5.png

Choose a connection, right click, and properties.

Setting IP in Windows 6.png

Open Internet Protocol.

Setting IP in Windows 7.png

Use Following.

Windows Command Line

Using command prompt (CMD):

netsh interface show interface
netsh interface ip set address "[chosen interface]" static [ip address] [subnet mask] [gateway] [metric]
netsh interface ipv4 set dns name=”[YOUR INTERFACE NAM]” static [DNS SERVER], for example:
netsh interface ip set address "Ethernet" static 192.168.100.25 255.255.255.0 192.168.100.1 1
netsh interface ipv4 set dns name=”8.8.8.8” static Ethernet

Linux GUI (Debian)

setting-ip-address-kali-linux-1.png

Go to settings or straight to network manager.

setting-ip-address-kali-linux-2.png

Go to WiFi or Network.

setting-ip-address-kali-linux-3.png

Go to Identity and Choose a Network Interface.

setting-ip-address-kali-linux-4.png

Go to IP, choose manual, and input addresses.

setting-ip-address-kali-linux-5.png

Scroll down and set DNS also routes if necessary.

setting-ip-address-kali-linux-6.png

If necessary, go to security.

Linux Command Line (Debian)

Using ifconfig:

sudo ifconfig [interface] [ip address] netmask [subnet mask] up
route add default gw [IP-ADDRESS] [INTERFACE-NAME], for example
sudo ifconfig eth0 192.168.100.22 netmask 255.255.255.0 up
route add default gw 192.168.100.1 eth0

Using ip:

sudo ip addr add [ip address]/[netmask id] dev [interface]
sudo ip route add default via [gateway], for example
sudo ip addr add 192.168.100.22/24 dev eth0
sudo ip route add default via 192.168.100.1

For DNS, edit /etc/resolve.conf:

nameserver 8.8.8.8

Mirrors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!