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.

Filter by
Sorted by
Tagged with
10 votes
2 answers
9k views

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 ...
lucius's user avatar
  • 147
20 votes
5 answers
60k views

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 ...
shantanu's user avatar
  • 8,609
8 votes
3 answers
38k views

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 ...
alpha kevin's user avatar
4 votes
5 answers
84k views

Is there a safe way to disable DHCP from command line?

Short version I know this question is very similar to others and I did really search the Internet for answers, but it seems that no approach is working or the solutions seem to be "to complicated to ...
Mister Henson's user avatar
1 vote
4 answers
9k views

Setting a static IP address.

I'm trying to set a static IP address in 12.10. When I run ifconfig, I find that both lo and wlan0 have downloaded packets. In my /etc/network/interfaces file it says auto lo. Which should I be ...
schtocker's user avatar
  • 171
1 vote
2 answers
4k views

Do you really need to remove DHCP clients for static IP to stick?

The instruction from this link works to change from DHCP dynamic IP to static. But there's a step where it says: You need to also remove the dhcp client for this to stick (thanks to Peter for ...
alvas's user avatar
  • 2,927
22 votes
2 answers
167k views

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 ...
tsteiner's user avatar
  • 726
11 votes
2 answers
23k views

/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 ...
user3078046's user avatar
10 votes
3 answers
34k views

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: ...
detly's user avatar
  • 3,382
8 votes
1 answer
25k views

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,...
Ahmed's user avatar
  • 191
2 votes
2 answers
13k views

Why can't I set a static IP address for my Linux box?

I'm trying to set up a static local IP address for my Linux computer for port-forwarding purposes. As per every single guide that exists on this subject, I've edited my /etc/network/interfaces and /...
Parker Kemp's user avatar
1 vote
2 answers
929 views

static ip network guide

I have a fresh install of 13.10 and my networking works fine (cable model cloud router) via the standard network manager applet. I'm trying to setup my box to a use static IP instead of dhcp and I'm ...
user218558's user avatar
1 vote
2 answers
6k views

Wifi Problem After Setting Static IP in Ubuntu 18.04.01 LTS

I set a static IP by following the instructions on https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/netplan-how-to-configure-static-ip-address-in-ubuntu-18-04-using-netplan.html At first, it ...
Enes Altuncu's user avatar
1 vote
1 answer
9k views

problem with static ip in ubuntu 12.04 lts server

I change my server's ip from dynamic to static. After I change the file in /etc/network/interfaces with the following code, my server lost connection to internet. Here's my new network interfaces: ...
Ff Vote's user avatar
  • 143
14 votes
2 answers
8k views

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....
aggieNick02's user avatar
11 votes
3 answers
44k views

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 ...
linsek's user avatar
  • 222
9 votes
3 answers
53k views

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'...
Aleks's user avatar
  • 91
8 votes
1 answer
30k views

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 ...
Simon's user avatar
  • 303
6 votes
4 answers
11k views

How to configure a fallback static IP address when there is no DHCP server present

I am working with an embedded linux device, which we typically connect to by static IP address during development. However, on-site we have a requirement to connect using DHCP and so, I would like to ...
user5265160's user avatar
6 votes
1 answer
5k views

Apply static IP address change in /etc/network/interfaces in Ubuntu 16.04

TL;DR: In Ubuntu 14.04, If you change a static IP address in /etc/network/interfaces and apply the changes with ifdown and then ifup command everything works fine. But this sequence is not working in ...
Mohammad's user avatar
  • 805
5 votes
2 answers
9k views

temporary static ip/link local address

i assigned a temporary ip address to my eth0 interface using this command sudo ifconfig eth0 169.254.1.1 netmask 255.255.0.0 as described here it works fine, when i do ifconfig it shows the newly ...
mzzzzb's user avatar
  • 307
4 votes
2 answers
3k views

How to set static IP address for Wi-Fi connection on Ubuntu phone?

We need to set a static IP address (and DNS etc.) to connect to our workplace Wi-Fi, but I couldn't find an option on my bq Aquaris E5 device. How should I do it?
pomsky's user avatar
  • 68.6k
3 votes
4 answers
176k views

Netplan configuration error: "Invalid YAML ... did not find expected key."

I'm trying to connect to internet using static IP, but when I enter sudo netplan apply command, the console returns the following error: Invalid YAML at //etc/netplan/01-netcfg.yaml line 8 column 5: ...
user9507446's user avatar
3 votes
1 answer
14k views

Ubuntu 18.04 SERVER VPS on failover IP OVH

I am new into Ubuntu 18.04 and I am trying to make my VPS hosted on dedicated server (VMware) working, I tried the automatic network setup during install, but I got an subnet error, because IP and ...
DJ_Ironic's user avatar
3 votes
7 answers
42k views

Can't set static IP on Ubuntu

I recently installed Ubuntu Desktop 13.10 and I am trying to set up static IP by changing the /etc/network/interfaces file from: # interfaces(5) file used by ifup(8) and ifdown(8) ...
puk's user avatar
  • 1,161
2 votes
1 answer
1k views

How to use DHCP if available, otherwise use static IP

When my system boots it should check for a given interface (e.g. eth0) whether a DHCP configuration is possible respectively if DHCP server exists within the network. If yes, DHCP should be used. If ...
Anonymous's user avatar
  • 141
2 votes
1 answer
10k views

Second IP via DHCP. Why? [duplicate]

I have a secondary IP on my ens160 interface and I don't know why :) System is Ubuntu 17.10. Any hints where to dig here? 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN ...
Conti's user avatar
  • 21
2 votes
1 answer
2k views

Setting up static ip with wireless N USB adapter (TL-WN723N) ubuntu 16.04.2

I'm trying to set up static ip on my computer that uses a wifi usb adapter, specifically TL-WN723N. I have not installed its driver because it was working fine after plugging in i added these to /...
kevin janada's user avatar
2 votes
2 answers
18k views

Ubuntu 14.04 LTS Network Manager overwrites static network interface

I spent far too long figuring this out, and wanted to share. Simple task: Add a static IP address to the 2nd of 4 NICs on my server. To start, I followed the instructions here under Static IP ...
vcardillo's user avatar
  • 362
1 vote
1 answer
5k views

Invalid YAML for netplan: mapping values

So, I am trying to set a static IP address for my Ubuntu Server 18.04.1 LTS. I took the ethernet config from this site. network: version: 2 renderer: networkd ethernets: enp3s0: dhcp4:...
Kevin's user avatar
  • 204
1 vote
2 answers
18k views

NETPLAN not acepting settings

yaml setup I have the following netplan layout and it keeps coming up with the error IP address shown here as xxx ethernets: check indentation^ network: version: 2 renderer: networkd ...
Patdundee's user avatar
1 vote
1 answer
580 views

Static ip but dynamic nameservers?

Trying to change nameserver' settings for a Ubuntu-13.04 server I came upon this situation! /etc/network/interfaces : # This file describes the network interfaces available on your system # and how ...
ionreflex's user avatar
  • 629
1 vote
1 answer
5k views

How to connect to a Ubuntu PC remotely by SSH

Is it possible to connect to my desktop PC remotely, by SSH? Which program should I use to make the IP address static that I will need to connect to?
Tommaso Ascari's user avatar