HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to set a Static IP on a Linux Server

28,175 views November 9, 2016 4:46

Watch on YouTube
Channelquidsup

Description from the creator

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: quidsup.net?i=rubrics-1920x1080-wallpaper-3300

About this tutorial

quidsup published this 4:46 video tutorial on November 9, 2016. It has been watched 28,175 times on YouTube.

Channel
quidsup
Duration
4:46
Published
November 9, 2016
Views
28,175
Likes
270

Tags

Share

This tutorial in other languages