Questions tagged [static-ip]

A static IP address is a unique identifier for your computer, while it's connected to the Internet or another network. It's called "static" because it doesn't change each time you connect to the network.

A static IP address is a unique identifier for your computer, while it's connected to the Internet or another network. It's called "static" because it doesn't change each time you connect to the network.

Like any IPv4 address, a static IPv4 address is representable in dot-decimal notation, consisting of four decimal numbers, each ranging from 0 to 255, separated by dots (example 169.254.127.114).

When an IP is static, this number is assigned to a computer by an Internet service provider (ISP) to be its permanent (or at least long-term) address on the Internet. Computers use IP addresses to locate and talk to each other on the Internet.

270 questions
25
votes
2 answers

Set static IP on Ubuntu Core

I'm new to Ubuntu Core. On first login I selected the option: Will use DHCP for IPv4 Now I'd like to change my machine to use a static IP to be easier to log in remotely. I ran sudo console-conf on the machine (over ssh, if relevant). This gives…
tsteiner
  • 806
20
votes
6 answers

Both DHCP and static IP addresses simultaneously on one interface

We can use multiple IP addresses for a single interface in Linux (eg. eth0:0, eth0:1). But can we use DHCP and static IP at the same time? eth0:1 should have a static IP address and eth0:0 should be configured using DHCP. How can we accomplish both?
shantanu
  • 8,835
16
votes
2 answers

What does "changes to it will not persist across an instance" actually mean in 50-cloud-init.yaml

In recent Ubuntu, netplan is the default way of configuring network adapters. I want a static IP on one of mine, and there are some guides on how to do that. Some point you to editing 50-cloud-init.yaml. But that file has an ominous warning: # This…
aggieNick02
  • 273
  • 1
  • 2
  • 8
12
votes
4 answers

System loses static IP address

One of my headless systems is assigned a static IP address through /etc/network/interfaces on a wired Ethernet. It is connected to a router which is also a DHCP server. After a couple of days, the static address is dropped and replaced by a DHCP…
Jos
  • 30,529
  • 8
  • 89
  • 96
11
votes
3 answers

Unable to properly set static IP in Ubuntu 16.04

I'm trying to setup a static IP on an interface in Ubuntu 16.04. It's for a local connection with no DHCP server or DNS configuration. I've tried doing it from the Edit Connections GUI as well as from the CLI and am not having much luck. I've…
linsek
  • 222
11
votes
2 answers

/etc/network/interfaces is almost empty

I'm trying to set up a static IP address for my LTSP server as to configure one of my two NICs (internal one : Server -> Light client) via the /etc/network/interfaces , but when I open the interfaces file all I can see is this : auto lo iface lo…
user3078046
  • 167
  • 1
  • 2
  • 11
11
votes
3 answers

Why is Netplan/Networkd not bringing up a static ethernet interface?

I have a machine running Ubuntu Server 18.04. The network is configured using Netplan, so I have this config in /etc/netplan/01-netcfg.yaml: network: version: 2 renderer: networkd ethernets: enp1s0f0: optional: false …
detly
  • 3,472
10
votes
2 answers

Why is the network configuration I set in /etc/network/interfaces ignored on Ubuntu 17.10?

I've just installed ubuntu server 17.10. During installation, it suggested me to connect to the network through wifi, and so i did. After installation was finished and system was rebooted, computer connected to the wifi automatically (which means,…
lucius
  • 147
10
votes
3 answers

reload static IP ubuntu 16

I am using Ubuntu server 16.04 and setting up some network interfaces, I wish to reload a static IP after changing its address at /etc/network/interfaces without reboot: auto ens6 iface ens6 inet static address 192.168.0.41 netmask…
9
votes
2 answers

Why does eth0 disappear when I set a static IP (server 12.10)?

For some reason, if I try to set a static IP address, my eth0 disappears from ifconfig's output. I am running Ubuntu server 12.10 on a gateway laptop. auto eth0 iface eth0 inet dhcp It then gives this output when I run ifconfig: eth0 Link…
noobcakes
  • 191
9
votes
3 answers

How do I set a static DNS nameserver address on Ubuntu Server?

I am trying statically to set DNS server addresses in my Ubuntu server running as virtual machine. I followed all recommendations on official Ubuntu support pages but I simply cannot get rid of my ISP's DNS servers set by DHCP. I assigned br0…
Aleks
  • 91
8
votes
3 answers

Ubuntu 17.10 Server static IP netplan - how to set netmask

Ubuntu 17.10 Server uses the package netplan instead of /etc/network/interfaces. I have created the /etc/netplan/01-netcfg.yaml Like described here: Ubuntu 17.10 will not accept static IP # This file describes the network interfaces available on…
8
votes
2 answers

Where in System Settings do I set a static IP?

I can't find where you can set a static IP in the network settings. Anywhere top-level?
8
votes
1 answer

Why I can't access internet using an static IP address?

I want to set up my machine with a static IP address. I've done it before and it worked. It's been a long time so, once again, I researched how to do it before starting. It looked pretty familiar and I could remember the process from before ... so I…
Simon
  • 303
8
votes
1 answer

Set up two IP addresses with one gateway?

I would like to ask if it is possible to set up two static IPs from same subnet through one gateway? and How if it is? What I am interested in is described here Routing for multiple uplinks/providers, but in my case I have two IP addresses from one…
Ahmed
  • 191
1
2 3
17 18