Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Connecting to an Ubuntu Server using Ethernet cables but no internet connection

Required to be configured is a DHCP server, with the server itself being the DHCP server and handing out the IPs to each machine.

Also required is the instructions to set the IP of the ethernet card on the server statically in a manner which it can be used to communicate with other systems as the DHCP server and as a file server.

share|improve this question

Static IP configuration should be put in /etc/network/interfaces. It is a text file, and the documentation for its format can be read by man 5 interfaces. By the looks of it, you probably need to put in there something simple like this:

iface eth0 inet static

Once done, submit sudo service networking restart to make use of the new settings.

For handing out replies to DHCP requests, you need a DHCP server, provided for example by isc-dhcp-server, udhcpd, dnsmasq and possibly other packages. I have used dnsmasq with success, and it appears to work satisfactorily even if uplink connection to internet (and real DNS servers) doesn't exist. See a how-to on the subject, it is rather straight-forward to set up.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.