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.

learn more… | top users | synonyms

7
votes
2answers
12k views

DHCP and static IP address simultaneously in ubuntu

We can use multiple IP address for a single interface in linux(eth0:0, eth0:1). But can we use dhcp and static IP in the same time?? eth0:1 should have a static IP address and eth0:0 will be configure ...
5
votes
3answers
37k 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'...
5
votes
2answers
28k 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 ...
4
votes
1answer
13k 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 ...
4
votes
1answer
11k 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,...
4
votes
2answers
17k 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 gives this ...
4
votes
6answers
36k 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
2answers
3k 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 ...
3
votes
7answers
29k 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
3answers
4k 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 ...
3
votes
2answers
4k 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 ...
3
votes
1answer
709 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
3answers
156 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 ...
2
votes
1answer
83 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: ...
2
votes
1answer
1k 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 ...
2
votes
1answer
4k 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 ...
2
votes
0answers
42 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 ...
2
votes
1answer
75 views

No internet connection over cable (but wifi works) [closed]

I have Ubuntu Desktop 14.04 installed on MSI GT660. I am Linux newb. I can connect to internet using wifi but not over cable. contents of /etc/network/interfaces: # interfaces(5) file used by ifup(...
2
votes
1answer
833 views

Setting up wired broadband with static IP

I was using my wired broadband connection perfectly with windows. That broadband uses static ip. At windows 7 the setup was done in IPv4 section. That had following things: i) Ip Address ii) ...
1
vote
2answers
126 views

Ubuntu can't set IP to static

Despite my greatest efforts I failed to set my destinated IP on my Ubuntu machine. I did the following: This is my ifconfig result: enp4s0 Link encap:Ethernet HWaddr 28:d2:44:f9:03:a1 ...
1
vote
3answers
45k 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?
1
vote
1answer
8k 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: ...
1
vote
3answers
6k 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 ...
1
vote
1answer
1k 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?
1
vote
2answers
514 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?...
1
vote
2answers
13k 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 ...
1
vote
4answers
8k 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. ...
1
vote
1answer
1k views

Losing connection with static IP

Couple things. First, I'm relatively new to linux in general. Second, I've done my best to scour google, youtube and other places for help on this first before coming here for help. I appreciate ...
1
vote
2answers
3k views

openstack: conifgure vm with static ip on eth1

I'm trying to create two trusty VMs with static IPs for eth1, but pings between the static addresses fail. Via havana dashboard, I created a network with a 10.16.1/24 subnet, disabled gateway, ...
1
vote
1answer
63 views

Unable to get a static IP to work on Ubuntu 14.04 with a Raspberry Pi 2

I'm having trouble with setting a static IP address on my Rasp Pi. I've tried out a lot of different solutions but none have worked thus far. Here's my current setup: nano /etc/network/interfaces ...
1
vote
2answers
348 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?
1
vote
1answer
185 views

Setup static ipv6 address in /etc/network/interfaces

After changing to a new ISP last week I got a new IPV6 address at home. The IPV6 address is global so not just for my home connection. Because of this address my mail server isn't working properly ...
1
vote
2answers
141 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 ...
1
vote
1answer
178 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 ...
1
vote
1answer
48 views

Eth0 lost when ethernet is using crossed cable

I am using Ubuntu 12.04 and I made changes on Interfaces file to change the IP of my touch computer. After reboot everything works well if I am connected with normal Ethernet cable to a Hub or router, ...
1
vote
1answer
257 views

issues setting static IP in ubuntu server 14.04

I have my /etc/network/interfaces file setup as: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 172.16.140.98 network 172.16.0.0 broadcast 172.16.255.255 ...
1
vote
2answers
326 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 ...
1
vote
1answer
399 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 ...
1
vote
2answers
8k 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 /...
1
vote
0answers
19 views

Can't Set Static IP - Ubuntu 14.04.03 - Server

I am configuring a few servers all with the same basic configuration. We first set the DNS/Domain in /etc/resolvconf/resolv.conf.d/base cat /etc/resolvconf/resolv.conf.d/base domain domain.com ...
1
vote
0answers
20 views

Static Ip via Wireless, how to retry if connection drops?

I am running Ubuntu 16.04. In order to get Wireless working (static IP) I made only the following change. This works perfectly, but how can I make this more robust, e.g. continue to scan in case a ...
1
vote
1answer
57 views

Ubuntu 14.04 : wifi, change DHCP to static

I'm trying to install a mail server (using Postfix) on an Ubuntu VM. I have a dynamic IP so I'm using No-ip. I tried to change DHCP to static, but sudo nano /etc/network/interfaces Just display ...
1
vote
0answers
155 views

How to show the reserved leases that dhcp has on file?

I want to check on the reserved leases (called "fixed-address" in the config files) of my dhcpd. To get all the info about the free dynamic ips is no problem, but the reserved one that get written to ...
1
vote
0answers
90 views

Static IP working slow in Ubuntu 15.04

In ubuntu 15.04 I have, in order to have a static IP in my LAN, updated /etc/network/interfaces to: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.140 netmask 255....
1
vote
1answer
214 views

How to make static IP address dynamic in /etc/network/interfaces

I need to set the IP address of a ubuntu device() to be read from an EEPROM. The user has he option to change the IP address as well. I know the commands to read and write to the EEPROM. But how ...
1
vote
1answer
235 views

Restricted internet access on 14.04. Teamviewer works, websites don't load

I now know it is not a DNS issue, because I can't even ping 8.8.8.8. I've added the output of tracepath 8.8.8.8. My machine running the most up-to-date version of 14.04 Trusty. The mobo has two ...
1
vote
1answer
175 views

Ubuntu Server | Gateway: 0.0.0.0

I am trying to setup an Ubuntu Server (non-graphical). However when I try to assign a Static IP address to the device instead of the default DHCP -- the system keeps telling me that the gateway is 0.0....
1
vote
1answer
230 views

Proxychain with static IP untill tor reload

I recently installed tor privoxy and proxychains on my 14.04lts works ok as intended. There is no acctualy problem with functioning, I have problem with setup. As I always used it with config ...
1
vote
0answers
360 views

iptables ruleset blocking LAN and WAN

Having problems with your Intel I217-V ethernet port? I suggest you read this entire post. Whilst drivers were not my issue, nor my answer (in the end), this post will still provide useful insight. ...
1
vote
0answers
148 views

What is wrong with my network configuration?

This is what I have in /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.1.34 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.1.255 gateway 192.168.1.254 ...