A
A
Andrey2016-08-15 16:21:10
DHCP
Andrey, 2016-08-15 16:21:10

LTSP server based on Ubuntu 16.04. Why can't connect the client to the server?

Hello!
I decided to set up an LTSP server based on Ubuntu 16.04 according to the following article:
https://habrahabr.ru/post/277783/
Installed and configured everything.
I also configured the previously installed DHCP server:

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
allow booting;
allow bootp;
subnet 192.168.0.0 netmask 255.255.255.0 {
  next-server 192.168.0.7;
  filename "/ltsp/i386/pxelinux.0";
  range 192.168.0.150 192.168.0.200;
  option broadcast-address 192.168.0.255;
  option domain-name "ub";
  option routers 192.168.0.20;
  option domain-name-servers  192.168.0.20;
  interface eth1;
}

But when I start the client machine with a boot from the network card, it spins for a few seconds:
DHCP...|
and then:
PXE-E51: No DHCP or proxyDHCP affers were received.
PXE-M0F: Exiting PXE ROM.

In the log on the DHCP server:
Aug 15 16:03:51 dev-ubuntu dhcpd: DHCPDISCOVER from 00:26:18:97:48:d9 via eth1
Aug 15 16:03:51 dev-ubuntu dhcpd: DHCPDISCOVER from 00:26:18:97:48:d9 via eth1
Aug 15 16:03:51 dev-ubuntu dhcpd: DHCPOFFER on 192.168.0.161 to 00:26:18:97:48:d9 via eth1
Aug 15 16:03:51 dev-ubuntu dhcpd: DHCPOFFER on 192.168.0.175 to 00:26:18:97:48:d9 via eth1
Aug 15 16:03:59 dev-ubuntu dhcpd: DHCPDISCOVER from 00:26:18:97:48:d9 via eth1
Aug 15 16:03:59 dev-ubuntu dhcpd: DHCPOFFER on 192.168.0.161 to 00:26:18:97:48:d9 via eth1
Aug 15 16:03:59 dev-ubuntu dhcpd: DHCPDISCOVER from 00:26:18:97:48:d9 via eth1
Aug 15 16:03:59 dev-ubuntu dhcpd: DHCPOFFER on 192.168.0.175 to 00:26:18:97:48:d9 via eth1

This is my first time with LTSP. I can't figure out what the problem is. It seems to me that the IP of the LTSP server should have been highlighted in the DHCP log: 192.168.0.7. Maybe DHCP is configured incorrectly.
Please help me to sort out this problem.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Chudnovsky, 2016-08-15
@artful1

There the article says:

But, since I'm assuming you already have a DHCP server, I suggest setting it up.
Remove isc-dhcp-server:
sudo apt-get remove isc-dhcp-server

I did not immediately understand what it was about. I translate: if you already have a configured DHCP server on another computer / device, then you do not need the one installed on the LTSP server, and it is proposed to remove it. Since you may have understood this moment differently, you deleted the server without having another one. Bring the DHCP server back :)

N
nikanik, 2017-02-26
@nikanik

Считаю, что можно иметь в сети несколько серверов DHCP, только бы пулы не пересекались.
По сути вопроса, в посте не сказано какой из конфигов настраивался. После установки установки LTSP в дирректории /etc/ появляется два DHCP
1) родной - /etc/dhcp/dhcpd.conf
и
2) LTSP - /etc/ltsp/dhcp.conf
Второй и становится главным после установки LTSP, его конфиг и нужно править.

L
lolowin32, 2017-06-16
@lolowin32

next-server должен принимать такое же значение как и option routers, в данном случае ip 192.168.0.20

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question