Manually Set IP Address Version 4

Utility

Short Description

Set Up IP Address Manually

Windows GUI

Windows Command Line

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)

Linux Command Line (Debian)

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
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
nameserver 8.8.8.8

Mirrors

this blog contains all my articles licensed under creative commons attribution customized sharealike (cc-by-sa) where you can sell but mention the open one here

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store