Configurando o servidor DHCP - falha ao iniciar / parar

0

Estou seguindo o este guia . Eu sou completamente novo no Ubuntu, trabalhando em 14.04 LTS.

Quando chego ao último passo antes de lidar com o Kerrighed (na metade do tutorial), tento iniciar meu servidor DHCP, mas ele falha.

root@MASTER:~# /etc/init.d/tftpd-hpa restart
root@MASTER:~# /etc/init.d/isc-dhcp-server restart
 * Stopping ISC DHCP server dhcpd                                                 [fail] 
 * Starting ISC DHCP server dhcpd                                                         * check syslog for diagnostics.
                                                                                  [fail]
root@MASTER:~# /etc/init.d/nfs-kernel-server restart
 * Stopping NFS kernel daemon                                                     [ OK ] 
 * Unexporting directories for NFS kernel daemon...                               [ OK ] 
 * Exporting directories for NFS kernel daemon...                                 [ OK ] 
 * Starting NFS kernel daemon                                                     [ OK ] 
root@MASTER:~# 

Aqui está o que eu tenho no syslog digitando dmesg:

[18103.047124] nfsd: last server has exited, flushing export cache
[18104.195774] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[18104.195797] NFSD: starting 90-second grace period (net ffffffff81cda240)
root@MASTER:~# 

E syslog:

Jul 17 17:16:11 MASTER dhcpd: Wrote 0 deleted host decls to leases file.
Jul 17 17:16:11 MASTER dhcpd: Wrote 0 new dynamic host decls to leases file.
Jul 17 17:16:11 MASTER dhcpd: Wrote 0 leases to leases file.
Jul 17 17:16:11 MASTER dhcpd: 
Jul 17 17:16:11 MASTER dhcpd: No subnet declaration for eth0 (no IPv4 addresses).
Jul 17 17:16:11 MASTER dhcpd: ** Ignoring requests on eth0.  If this is not what
Jul 17 17:16:11 MASTER dhcpd:    you want, please write a subnet declaration
Jul 17 17:16:11 MASTER dhcpd:    in your dhcpd.conf file for the network segment
Jul 17 17:16:11 MASTER dhcpd:    to which interface eth0 is attached. **
Jul 17 17:16:11 MASTER dhcpd: 
Jul 17 17:16:11 MASTER dhcpd: 
Jul 17 17:16:11 MASTER dhcpd: Not configured to listen on any interfaces!
Jul 17 17:16:17 MASTER rpc.mountd[24387]: Caught signal 15, un-registering and exiting.
Jul 17 17:16:17 MASTER kernel: [22896.481789] nfsd: last server has exited, flushing export cache
Jul 17 17:16:19 MASTER kernel: [22897.636160] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Jul 17 17:16:19 MASTER kernel: [22897.636192] NFSD: starting 90-second grace period (net ffffffff81cda240)
Jul 17 17:16:19 MASTER rpc.mountd[24820]: Version 1.2.8 starting

Aqui está o /etc/dhcp/dhcp.config:

# General options
option dhcp-max-message-size 2048;
use-host-decl-names on;
deny unknown-clients; # This will stop any non-node machines from appearing on the cluster network.
deny bootp;

# DNS settings
option domain-name "kerrighed";          # Just an example name - call it whatever you want.
option domain-name-servers 192.168.1.1;  # The server's IP address, manually configured earlier.

# Information about the network setup
subnet 192.168.1.0 netmask 255.255.255.0 {
  option routers 192.168.1.1;              # Server IP as above.
  option broadcast-address 192.168.1.255;  # Broadcast address for your network.
}

# Declaring IP addresses for nodes and PXE info
group {
  filename "pxelinux.0";                 # PXE bootloader. Path is relative to /var/lib/tftpboot
  option root-path "192.168.1.1:/nfsroot/kerrighed";  # Location of the bootable filesystem on NFS server

  host M4500_1 {
        fixed-address 192.168.1.101;          # IP address for the first node, kerrighednode1 for example.
        hardware ethernet XX:XX:XX:XX:XX:XX;  # MAC address of the node's ethernet adapter
  }


  server-name "kerrighedserver"; # Name of the server. Call it whatever you like.
  next-server 192.168.1.1;       # Server IP, as above.
}

(O endereço MAC é o correto no arquivo)

Aqui está etc / network / interfaces:

# The loopback interface:
auto lo
iface lo inet loopback

#auto eth0
# The primary network interface, manually configured to protect NFS:
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0

O computador escravo conectado (para o clustering) diz PXE-E51 : No DHCP or proxyDHCP offers were received . Portanto, parece que o servidor DHCP definitivamente não está em execução. O Tftpd não dá nenhuma resposta quando eu reinicio no terminal e o nfs parece bom.

    
por Alex 17.07.2014 / 15:49

1 resposta

1

Eu verifico:

- > / etc / default / isc-dhcp-server contém INTERFACES="eth0"?

- > Certifique-se de usar o /etc/dhcp3/dhcpd.conf, e não o /etc/dhcp/dhcp.config (já que está usando o isc-dhcp-server)

- > Defina o grupo e seu host contido na sub-rede {} declaração

    
por alftiri 07.01.2015 / 17:26