Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

my /etc/network/interfaces file looks like this

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet static

address 192.168.81.20

netmask 255.255.255.0

gateway 192.168.81.1

network 192.168.81.0

dns-nameservers 192.168.81.1

auto eth1

iface eth1 inet static

address 10.0.0.1

netmask 255.255.255.0

network 10.0.0.0

there was no dhcp server installed on my ubuntu server 13.10. so i installed dhcp server using

sudo apt-get install isc-dhcp-server

then i copied this content in dhcpd.conf
// Sample /etc/dhcpd.conf
//(add your comments here)

default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.example";

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}

basically i followed this tutorial to install DHCP server

but still my interfaces file is showing the same content as previously??? I want my interfaces file to look similar to this

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.3.1
network 192.168.3.0
netmask 255.255.255.0

after installing DHCP i should get

auto eth0
iface eth0 inet dhcp

in interfaces file right???

share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.