Server Fault is a question and answer site for system and network administrators. 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

There is a file in which I can set from what interfaces dhcp can provide ip and etc. there was a line like this interface = "eth0 eth1"

What is the file's name?

share|improve this question

closed as off topic by Wesley, voretaq7 Jul 18 '12 at 18:47

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

This sort of basic question is better suited to AskUbuntu – voretaq7 Jul 18 '12 at 18:47

The file you're looking for is: /etc/network/interfaces

You can find a reference for the structure of this file by taking a look at /usr/share/doc/ifupdown/examples/network-interfaces and also in the online manpage.

share|improve this answer
I set static ip in interfaces. but in the file the was only one like interfaces="" – Artem Tsarionov May 31 '12 at 0:02
What your answer is accurate, I suspect you are miss-understanding the question. I can understand why you might do that, it isn't entirely clear. – Zoredache May 31 '12 at 1:57
@ArtemTsarionov could you please edit your question to be more clear as to what exactly you're trying to do? Are you trying to set up a DHCP server, or are you trying to set up a PC with a static/dynamic IP address? – Richard Keller May 31 '12 at 9:13

Your question is a bit confusing, but allow me to but on my mind reading cap for a bit and make a few guesses.

I am guessing that you are running the ISC DHCPd server that comes as a package. It has several files related to the configuration and startup

  • /etc/dhcp3/dhcpd.conf : Main configuration file
  • /etc/init.d/dhcp3-server : Startup script
  • /etc/default/dhcp3-server : A bash fragment that that is sourced by the startup script.

An example /etc/default/dhcp3-server config file

# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts

# This is a POSIX shell fragment

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
share|improve this answer

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