[Quick Start with Ubuntu] Two, Ubuntu set static IP

I. Introduction####

Two, setting steps

sudo vi /etc/network/interfaces
# iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.251
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8
systemctl restart networking

Recommended Posts

[Quick Start with Ubuntu] Two, Ubuntu set static IP
ubuntu16.04 set static ip
How to set static IP in ubuntu14.04
How to set static IP on Ubuntu 18.04 Server
How to set static IP on Ubuntu 18.04 Server
Explain how to set static IP on ubuntu14.04
ubuntu20.04 set static ip address (including different versions)
Ubuntu18.04, Centos7 static IP
Set static IP under Centos
How to set time zone and NTP synchronization on Ubuntu 14.04 [Quick Start]
Set static IP for CentOS in VMware
Summary of CentOS method to set static IP
How to install R on Ubuntu 18.04 [Quick Start]
ubuntu16.0.4 method to set a fixed IP address
How to install Git on Ubuntu 18.04 [Quick Start]
How to install Anaconda on Ubuntu 18.04 [Quick Start]
Ubuntu quick screenshot
How to start a blog with Hexo on Ubuntu 14.04
How to set a fixed IP based on Ubuntu 16.04