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.
263
questions
23
votes
2
answers
175k
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 ...
20
votes
5
answers
61k
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 ...
14
votes
2
answers
9k
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....
12
votes
4
answers
36k
views
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 ...
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 ...
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 ...
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 ...
10
votes
3
answers
18k
views
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 ...
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:
...
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'...
9
votes
2
answers
27k
views
Why does eth0 disappear when I set a static IP (server 12.10)? [closed]
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 ...
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 ...
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 ...
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,...
7
votes
2
answers
9k
views
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?
7
votes
3
answers
11k
views
resolveconf -u keeps adding an unwanted search domain to resolve.conf
I have my desktop computer configured with a static IP address:
However, /etc/resolve.conf keeps getting overwritten with:
nameserver 127.0.0.1
search localdomain example.com
This seems to happen ...
6
votes
4
answers
12k
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 ...
6
votes
2
answers
17k
views
How to host a website from my local machine?
I understand that this is very commonly asked question. I too found tons of related thread but trying their solution didnt work for me. So i decided to ask it again.
Problem
I would like to host my ...
6
votes
2
answers
8k
views
Maintain IP address alive even when cable not plugged
It's on a laptop running Ubuntu 14.04, where the WiFi wlan0 is used to connect to Internet.
And eth0 (RJ45) is set statically in /etc/network/interfaces
auto eth0
iface eth0 inet static
address ...
6
votes
1
answer
6k
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 ...
5
votes
2
answers
41k
views
Static IP with NetPlan
I have a dev server with a Comcast static ip that has worked wonderfully for 10 years...went to upgrade to Ubuntu 18.04 and whats this NetPlan biznezz and why will it not accept my subnet?
Followed ...
5
votes
2
answers
5k
views
How to change ip address of host at runtime?
Have following configuration in /etc/network/interfaces
auto enp1s0
iface enp1s0 inet static
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
mtu 1500
dns-nameserver 8.8.8.8
...
5
votes
2
answers
29k
views
Unable to set static IP address in Ubuntu 14.04 [closed]
I've never had so much problems setting a network interface card to static addressing.
I'm not sure what has changed, but I can only seem to get this thing to work if it's set to obtain the address ...
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 ...
4
votes
3
answers
33k
views
Why 169.254.0.0 appears by default in the routing table?
I defined a subnet on eth0 in /etc/network/interfaces with:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
...
4
votes
1
answer
21k
views
How to configure /etc/network/interface to use static IPv6, but dynamic IPv4?
I want to add a static IPv6 IP to my otherwise automatic IP configuration.
How to do this?
Currently I use:
auto lo
iface lo inet loopback
auto eth0
So IPv4 is configured by DHCP, IPv6 is ...
4
votes
5
answers
14k
views
Ubuntu 12.04 Network Manager: unable to save manual setting to set up a static ip
I am fairly familiar with setting up servers, and ubuntu is generally my flavor of choice, but I just installed 12.04 desktop and I am seeing some behavior in network manager that is really puzzling. ...
4
votes
5
answers
85k
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 ...
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?
4
votes
0
answers
650
views
Using an alternate server iso installer, how can I set an IP address during boot up?
Goal
Using the latest LTS server iso (alternate), which at the time of writing is ubuntu-18.04.1-server-amd64.iso, I want to be able to do an installation, using a preseed and a kickstart file hosted ...
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) ...
3
votes
2
answers
14k
views
ubuntu server - does not run on static ip
I am totally new to ubuntu server(did not work with any server before). I have installed LAMP(apache2, mysql, php) on ubuntu server(16.04.1 LTS). It works all correctly. It has 192.168.0.22 Ip.
On ...
3
votes
1
answer
16k
views
Ubuntu server cannot access internet, however can use SSH
So as stated I can access my server remotely, and locally using SSH, however I dont have access to "The internet". By this I mean I cant access webpages.
dtipp@mc-server:~$ ping www.google.com
ping: ...
3
votes
3
answers
98k
views
How to change IP when /etc/network/interface file is missing?
I just installed 12.04 Server. After my first login, I saw the IP and it is dynamic (I guess). I tried to change it by sudo vi /etc/network/interface but this file is blank.
Can anyone help here?
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 ...
3
votes
4
answers
180k
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: ...
3
votes
1
answer
2k
views
Configured a static ip but it didn't take effect immediately
So I configured a static ip connection on the GUI but it didn't seems to take effect when I check with ifconfig. I think if I restart the computer, it'll take effect but it sounds "overkill" for an ip ...
3
votes
2
answers
9k
views
Ubuntu 14.04 setting static IP for server on VirtualBox
I've been following this post here on how to do this. I am using OS X and VirtualBox with an Ubuntu server.
In the post they have the following: (I don't see those settings)
auto eth0
iface eth0 ...
3
votes
1
answer
14k
views
Problems with static IP config via interfaces file
I'd like to setup a static IP on Kubuntu 17.10 for my desktop PC.
ifconfig
enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.32 netmask 255.255.255.0 ...
3
votes
1
answer
3k
views
Ethernet interface appears twice, how to fix?
EDIT: The static IP does not seem to be causing the problem. Even with default /etc/network/interface and /etc/NetworkManager/NetworkManager.conf settings, and with wireless disabled, there still ...
3
votes
1
answer
10k
views
Ubuntu 22.04: Netplan (static ip) - Unable to ping gateway or internet IP's, local network devices ping fine
Situation
I have VMWare ESXI running with an Ubuntu Server 22.04 instance. This instance runs PowerDNS for my local network and needs a static IP. My local network uses class A-type IP addresses, in ...
3
votes
1
answer
9k
views
Virtualbox Bridged network ethernet cable disconnecting
I’m trying to connect to a ethernet device (like a scanner/printer) to a guest Ubuntu 12.04 running on Virtualbox 4.3.12. The scanner is connected to the Mac Pro directly over ethernet cable.
Problems ...
3
votes
1
answer
2k
views
Is it possible to setup an interface with both DHCP and a static IP?
Sending a box out to a colo and the guy taking it has no idea of networking. was hoping I could set it up so I can access it no matter which of two switches he plugs it into. After which I can remove ...
3
votes
1
answer
4k
views
Ubuntu 18.04 Server Static IP issues
I have attempted setting up a static IP for a server, under Ubuntu 18.04. I thought I had it working, but after restarting I found that my ethernet interface eno1 has been disabled. After re-enabling ...
3
votes
1
answer
5k
views
How to get rid off the dynamic ip?
I've successfully managed to give ubuntu server 16.04 (Raspberry Pi 3 B) a static ip, but the dynamic ip is still present and active. Using ssh is the only way of accessing the server.
How do i get ...
3
votes
2
answers
20k
views
UBUNTU DHCP not assigning IP address to clients
I have a minimal knowledge about ubuntu. I am trying to run a DHCP server on UBUNTU so as to share Dongle 3G Internet. I disabled router's DHCP and followed the following guide to setup DHCP server in ...
3
votes
1
answer
1k
views
Virtualbox static IP to windows VM on ubuntu host
I am trying to setup a windows VM on Ubuntu host using Virtual box. Since I would be running a SQL server database on the windows VM I am trying to setup a static IP on that VM. In order to do that I ...
3
votes
0
answers
7k
views
netplan bridge for one static interface not working
I have a static ip address for interface eno1 which should become a bridge for kvm/qemu. My netplan configuration (Ubuntu 18.04) for the static ip looks like this and is working:
network:
version: ...
2
votes
2
answers
3k
views
How to find valid static IP address?
I am about to set up a pc with ubuntu server 14.04.1. I want to assign it a static ip address. How can I find a valid IP address that is not already being used? Is there a way to do that from terminal?...
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 ...