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
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: ...
3 votes
2 answers
19k 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 ...
0 votes
1 answer
2k views

Cannot configure static IPv6 (Ubuntu 19.04)

I'm trying to implement a network for a project where i need a server, a virtual machine running Ubuntu 19.04, with two static ipv4 and ipv6 addresses (one on each interface on the machine) to connect ...
0 votes
1 answer
4k views

How to set static IP address on Ubuntu 16.04 LTS?

How to set static IP address on Ubuntu 16.04 LTS? I need connect router board which have static IP address ((192.168.15.1 address is board ip). I tried set via GUI, Network > Settings > IPv4 Settings >...
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....
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 ...
0 votes
1 answer
2k views

Netplan static IP doesn't work

Having trouble understanding why I don't get a connection on my static IP with netplan. My ip is 98.xxx.xxx.xx My reserved address for my device is 192.168.1.33 Ethernet interface: enp1s0. This is ...
0 votes
1 answer
332 views

Ubuntu server 18.04 LTS static ip setup issue

I'm trying to install Ubuntu Server on my old machine and one thing has put on hold is this IP issue. This below is the exact message i get. 192.168.0.99 is not contained in 255.255.255.0/24 I'm ...
0 votes
1 answer
436 views

Changing ip address of adapter

I am trying to change the IP address on a pc running ubuntu 16.04. The computer is not connected to the internet. I changed the /etc/network/interfaces file according to the instructions in the ...
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 ...
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 ...
2 votes
1 answer
8k views

Setting a Static IP Address Not Connecting?

I'm following a tutorial for setting a static IP address for my remote backup server. (https://www.techrepublic.com/article/how-to-configure-a-static-ip-address-in-ubuntu-server-18-04/) I've followed ...
0 votes
1 answer
192 views

Ubuntu 18.04 LTS configuring WEPA WiFi for static address

I have an Ubuntu 18.04.02 LTS (headless) server that has been communicating with Ethernet. Circumstances demand that I now switch to Wifi using a USB Wifi dongle. I have used this Wifi dongle in the ...
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 ...
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 ...
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 ...
1 vote
0 answers
304 views

ubuntu 18.10 how to setup static ip network with local domain search post install

I just tried an install ubuntu 18.10 desktop on my intranet. I did a regular install, then I got a DHCP networking setup, that is ok with me for a fresh install. Then I am on an intranet with our ...
0 votes
1 answer
268 views

WiFi with static IP configuration

I want to connect to my home wifi, which has a static IP configuration. I Have tried to set up the connection both using the GUI of network manager and by editing the network interface file, but in ...
0 votes
1 answer
839 views

Ubuntu 18.04.1 LTS keeps killing my Ethernet connection when it cannot find an Internet connection

I have a device (a nuclear radiation detector, specifically) that streams binary data over a TCP/IP connection. To stream the data, I simply connect it to my laptop via Ethernet and set the wired ...
0 votes
0 answers
168 views

Ubuntu Server 18.10 LTE: after reboot can't connect to network

I just installed Ubuntu server, and I assigned it the IPv4 as static (no collisions). I rebooted my server after installation, and it was trying to connect to network for a while (2-3 minutes) and ...
1 vote
1 answer
13k views

/etc/network/interfaces is not changing my static IP

I'm using xubuntu and I have set my /etc/network/interfaces file like this: auto lo iface lo inet loopback auto enp0s3 iface enp0s3 inet static address 192.168.1.10 netmask 255.255.255.0 ...
4 votes
3 answers
32k 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 ...
0 votes
1 answer
629 views

Add static IP in Ubuntu 16.04 Host Laptop

I have HP laptop with an external wifi Adapter as there is no Wifi adapter inbuild. This is my ifconfig result docker0 Link encap:Ethernet HWaddr 02:42:fc:cf:ad:7c inet addr:172.17.0....
1 vote
1 answer
1k views

Ubuntu Server 18.04.1 - error in network definition when trying to set static IP with sudo netplan apply

I get this error when trying to set static IP with the command sudo netplan apply: Error in network definition //etc/netplan/50-cloud.init.yaml line 5 column 34: expected scalar Here's what my config ...
0 votes
1 answer
10k views

Set static IP address on Ubuntu server 16.04.2 LTS

I'm facing strange problem on Ubuntu 16.04.2 LTS server with changing IP from DHCP to static. That's my /etc/network/interfaces: # The primary network interface auto enp2s0f0 iface enp2s0f0 inet ...
1 vote
0 answers
1k views

Setting IP address if DHCP server fails at bootup

Is there a way to set default eth0 setup in linux. I know I can give it a default static IP at boot up with sudo ip route add default via 10.0.0.1 dev eth0. Is there a way to change it to DHCP at ...
4 votes
0 answers
610 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 ...
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 ...
1 vote
1 answer
3k views

Ubuntu 16.04 setting static IP not working

I'm trying to set up an Ubuntu server on a virtual machine hosted on a windows OS. When I set it to the default DHCP the internet works fine. When I attempt to set up a static IP I get TX but no RX. ...
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 ...
1 vote
1 answer
2k views

how to set static ip in ubuntu 16.04 on raspberry pi 3 (cloud-init)?

I installed Ubuntu 16.04 on Raspberry pi 3 but when I edit /etc/network/interfaces to setup a static ip it gets replaced with default settings on startup. Looks like cloud-init is managing the ...
0 votes
2 answers
732 views

networking: DNS settings ignored

For several months, I have been successfully connected to the net via a static IP with my machine that is running ubuntu (16.04.3). I recently had to reinstall the OS, and now on the same machine, the ...
1 vote
0 answers
3k views

How to setup static ip on Ubuntu Server 18.04 in VMWare Workstation 14

I am new so please bear with me. I am on a laptop with Windows 10 (which totally sucks) connected by wifi, and trying to setup a static ip in Ubuntu Server 18.04 in VMWare Workstation 14. I have ...
1 vote
2 answers
3k views

Static IP on LAN and DHCP on WLAN on Ubuntu 16.04

I use a Netbook with LAN and WLAN. On LAN I need a static IP for dev. On WLAN I dont can use a static IP because I am in different WLANs. Here is my interfaces: auto lo iface lo inet loopback auto ...
1 vote
0 answers
5k views

Static IP config for Ubuntu Server 18.04 LTS w/ netplan

We are trying to get a new server running 18.04 LTS to connect to the internet, but no luck thus far. The router doesn't distribute DHCP, so we have a static IP assigned to the port the server is ...
0 votes
0 answers
1k views

Static ip address on lubuntu wont work

I setup some old pc and installed lubuntu. Got my self some old HDD so i can hawe it as backup PC. Decide to setup a static ip. But just can't make it work for some reason. I try multiple things to ...
2 votes
2 answers
840 views

How to validate if static ip is valid

This is how I set up a static ip on my ubuntu machine: https://askubuntu.com/a/178981/630142 Pretend this happens: I connect my ubuntu machine to a router (network) that assigns ip addresses (192....
2 votes
1 answer
14k views

How do I create a YAML file in order to set a static IP for my /etc/netplan directory? Server 18.04 LTS [duplicate]

I currently do not have any YAML files in my /etc/netplan directory than I can edit in order to set a static IP for my Ubuntu 18 server. I have tried: sudo netplan generate It returns no errors but ...
0 votes
0 answers
73 views

getting server to utilise hostnames on network

I have a Server 16.04, minimal install, running perfectly with one exception. When I change it to use a static ip it loses the ability to connect with other machines (both real and Vms) via their ...
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 ...
0 votes
1 answer
2k views

Confused about static IP address (16.04) (may be lubuntu)

Here is what my /etc/network/interfaces looks like: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /...
0 votes
1 answer
2k views

/etc/network/interfaces not changing server IP

My interfaces file which used to govern the IP configuration of my Ubuntu server is no longer having any affect over the interface settings on my ethernet int. On an identical hardware machine I have: ...
0 votes
1 answer
8k views

Can't connect to internet on static ip configured on router

I have a static ip which is configured on a router. I have a Dual boot system with Windows and Ubuntu. I have installed Ubuntu 16.04 LTS Desktop and am unable to connect to internet. Within browser if ...
1 vote
1 answer
438 views

Set static IP for Ubuntu mini 17.10

I am trying to configure ethernet, for my PC, with static IP/Gateway/Nameservers. I edited /etc/network/interfaces, /etc/systemd/network/*.network, /etc/netplan/*.yaml but none of these files give ...
0 votes
1 answer
417 views

How do I choose my static IP address/Gateway etc?

How do I choose my: address netmask (255.255.255.0?) network broadcast gateway The tutorials and commentary from many of the more experienced penguins seems to assume that people have their ...
2 votes
0 answers
802 views

Ubuntu 14.04: Hostname showing as ubuntu on router

This is driving me crazy. I have a static IP configured, Ethernet cabled Ubuntu Server 14.04 machine Where you see MY_HOSTNAME, this is where I have configured my real hostname which is 5 characters ...
2 votes
0 answers
1k views

Can't load websites when bridging enp0s3 with static IP

So I was trying to bridge the enp0s3 in a VM in ubuntu 16.04 LTS (64 Bit). The VM gets its internet connection through "bridged adapter", no NAT. If I go with the DHCP configuration everything works ...
1 vote
0 answers
90 views

Help Please with Static IP

Ubuntu Community I have this situation MY ISP send to me Static IP 75.108.xxx.xxx and i need to access my server from the outside of my network i"m use Google DNS 208.180.42.68 and 208.180.42.100 i ...
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 ...