How to set a Static IP on a Linux Server

Channel:
Subscribers:
54,800
Published on ● Video Link: https://www.youtube.com/watch?v=vIgTmFu-puo



Category:
Tutorial
Duration: 4:46
20,943 views
235


Tutorial on how to set a Static IP Address on a Linux Server and Raspberry Pi.
The method for Raspbian Jessie differs to previous releases.

Instructions:
First find out whether your system is using dhcpcd
which dhcpcd

Use ifconfig to note down details of existing network address settings

0:55 Method 1 – No dhcpcd
sudo nano /etc/network/interfaces
change word dhcp to static
iface eth0 inet static
address 192.168.0.5
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 208.67.222.222 208.67.220.220

3:24 Method 2 – With dhcpcd
sudo nano /etc/dhcpcd.conf
add to end of dhcpcd.conf
interface eth0
static ip_address=192.168.0.5/24
static routers=192.168.0.0
static domain_name_servers=208.67.222.222

Wallpaper: http://quidsup.net?i=rubrics-1920x1080-wallpaper-3300







Tags:
Static
IP
Address
Linux
Server
Ubuntu Server
Raspbian
Debian
Fedora
Arch
Gentoo
Tutorial
How To
Computing
Raspberry Pi
Rpi
Quids
QuidsUp