Benvingudes i benvinguts al portal Linkat

La Linkat és la distribució educativa de GNU/Linux que ha iniciat i ofereix el Departament d'Educació a la comunitat educativa. Es tracta d'un projecte de programari lliure que permet als centres educatius, però també a tota la societat, tenir accés de forma legal, gratuïta i amb suport tècnic professional, a un conjunt molt ampli d'aplicacions: educatives, d'ofimàtica, d'Internet, multimèdia...

Problema amb el DHCP  Final

  • Bones,

    Tinc el mateix problema respecta al servidor DHCP. He fet tot el que s'ha comentat però res de res. S'ha pogut solucionar?

    DUBTES A L'HORA DE CONFIGURAR:
    S'ha de marcar la casella : ALLOW DYNAMIC BOOTP ???? I per a que serveix??
    Casella LDAP suport. Marcada o no? i com treballaria si esta marcada.
    El servei: EN ARRENCAR o MANUALMENT ??

    No se si en alguna part d'aquesta configuració esta malament.
    Saluts.
  • Hola,

    Quina versió de Linkat fas servir? La Linkat edu 11.4 Servidor Aula?

    Per fer-ho més fàcil, abans de tot instal·la el paquet yast2-dhcp-server i dhcp-server ja sigui pel mòdul YaST / Gestió de programari o des de consola com a usuari root amb l'ordre següent:

    Code

    zypper install yast2-dhcp-server dhcp-server


    Obre el mòdul Yast / Servidor DHCP per començar a configurar-ho.
    - A la primera pantalla s'ha de seleccionar quina targeta de xarxa es farà servir, si només tens una doncs la selecciones, fas clic al botó Selecciona i Següent.

    - Omple les caselles:
    Primary Name Server IP: 192.168.0.240 (IP del servidor)
    Default Gateway (Router): 192.168.0.1
    La resta les pots deixar en blanc i fas clic a Següent.

    - Omple les caselles següents:
    First IP Address: 192.168.0.100
    Last IP Address: 192.168.0.250
    La resta les pots deixar tal qual i fer clic a Següent.

    - Selecciona En arrencar i així sempre que arrenqui la màquina es funcionarà el servei DHCP i fes clic a Finalitza.

    Ja hauria de funcionar.

    Salut.

    Guia de SUSE:
    https://www.sus…dhcp_yast.html

    Projecte Linkat
  • Bona tarda,

    Tinc els paquets instal·lats correctament. Abans crec haver llegit que a PRIMARY NAME SERVER IP s'havia de posar la DNS principal per exemple 8.8.8.8 i a la següent la secundaria. He provat de posar 192.168.1.240 que porta aquest servidor linkat edu 11.4 i continua fent el mateix. El problema es que no inicia correctament el servei. Apart de l'error : ERROR OCURRED WHILE RESTARTING THE DEHCP DAEMON. Després de donar-li "d'acord", em surt 3 pantalles més amb les següents paraules:
    1.- ERROR OCURRED WHILE CALLING NETCONFIG.ERROR ATTENTION YOU HAVE MODIFIED /ETC/RESOLV.CONF LEAVING IT UNTOUCHED.YOU CAN FIND MY VERSION IN /ETC/RESOLV.CONF.NETCONFIG

    2.- ERROR OCURRED WHILE STARTING SERVICE NAMED ERROR. ERROR /ETC/NAMED.CONF:78:'}'EXPECTED NEAR':'

    Al meu resolv.conf tinc:
    search intracentre
    #nameserver 127.0.0.1
    nameserver 8.8.8.8

    -------------------------------------------------------------------------------------

    A /ETC/RESOLV.CONF.NETCONFIG tinc:

    ### /etc/resolv.conf file autogenerated by netconfig!
    #
    # Before you change this file manually, consider to define the
    # static DNS configuration using the following variables in the
    # /etc/sysconfig/network/config file:
    # NETCONFIG_DNS_STATIC_SEARCHLIST
    # NETCONFIG_DNS_STATIC_SERVERS
    # NETCONFIG_DNS_FORWARDER
    # or disable DNS configuration updates via netconfig by setting:
    # NETCONFIG_DNS_POLICY=''
    #
    # See also the netconfig(8) manual page and other documentation.
    #
    # Note: Manual change of this file disables netconfig too, but
    # may get lost when this file contains comments or empty lines
    # only, the netconfig settings are same with settings in this
    # file and in case of a "netconfig update -f" call.
    #
    ### Please remove (at least) this line when you modify the file!
    search intracentre
    nameserver 192.168.1.1

    -------------------------------------------------------------------------------------
    I a named.conf tinc:

    # Copyright (c) 2001-2004 SuSE Linux AG, Nuernberg, Germany.
    # All rights reserved.
    #
    # Author: Frank Bodammer, Lars Mueller <lmuelle@suse.de>
    #
    # /etc/named.conf
    #
    # This is a sample configuration file for the name server BIND 9. It works as
    # a caching only name server without modification.
    #
    # A sample configuration for setting up your own domain can be found in
    # /usr/share/doc/packages/bind/sample-config.
    #
    # A description of all available options can be found in
    # /usr/share/doc/packages/bind/misc/options.

    options {

    # Per Agilitzar la resolució de noms...
    max-cache-size 128M;
    edns-udp-size 512;
    # The directory statement defines the name server's working directory

    directory "/var/lib/named";

    # Write dump and statistics file to the log subdirectory. The
    # pathenames are relative to the chroot jail.

    dump-file "/var/log/named_dump.db";
    statistics-file "/var/log/named.stats";

    # The forwarders record contains a list of servers to which queries
    # should be forwarded. Enable this line and modify the IP address to
    # your provider's name server. Up to three servers may be listed.

    #forwarders { 192.0.2.1; 192.0.2.2; };

    # Enable the next entry to prefer usage of the name server declared in
    # the forwarders section.

    forward first;
    include "/etc/named.d/forwarders.conf";

    # The listen-on record contains a list of local network interfaces to
    # listen on. Optionally the port can be specified. Default is to
    # listen on all interfaces found on your system. The default port is
    # 53.

    #listen-on port 53 { 127.0.0.1; };

    # The listen-on-v6 record enables or disables listening on IPv6
    # interfaces. Allowed values are 'any' and 'none' or a list of
    # addresses.

    listen-on-v6 { any; };

    # The next three statements may be needed if a firewall stands between
    # the local server and the internet.

    query-source address * port 53;
    transfer-source * port 53;
    notify-source * port 53;

    # The allow-query record contains a list of networks or IP addresses
    # to accept and deny queries from. The default is to allow queries
    # from all hosts.

    #allow-query { 127.0.0.1; };

    # If notify is set to yes (default), notify messages are sent to other
    # name servers when the the zone data is changed. Instead of setting
    # a global 'notify' statement in the 'options' section, a separate
    # 'notify' can be added to each zone definition.

    notify no;
    };

    logging { category lame-servers {null; };;

    # To configure named's logging remove the leading '#' characters of the
    # following examples.
    #logging {
    # # Log queries to a file limited to a size of 100 MB.
    # channel query_logging {
    # file "/var/log/named_querylog"
    # versions 3 size 100M;
    # print-time yes; // timestamp log entries
    # };
    # category queries {
    # query_logging;
    # };
    #
    # # Or log this kind alternatively to syslog.
    # channel syslog_queries {
    # syslog user;
    # severity info;
    # };
    # category queries { syslog_queries; };
    #
    # # Log general name server errors to syslog.
    # channel syslog_errors {
    # syslog user;
    # severity error;
    # };
    # category default { syslog_errors; };
    #
    # # Don't log lame server messages.
    # category lame-servers { null; };
    #};

    # The following zone definitions don't need any modification. The first one
    # is the definition of the root name servers. The second one defines
    # localhost while the third defines the reverse lookup for localhost.

    category edns-disabled; zone "." in { type hint; file "root.hint"; };;

    zone "localhost" in {
    type master;
    file "localhost.zone";
    };

    zone "0.0.127.in-addr.arpa" in {
    type master;
    file "127.0.0.zone";
    };

    # Include the meta include file generated by createNamedConfInclude. This
    # includes all files as configured in NAMED_CONF_INCLUDE_FILES from
    # /etc/sysconfig/named

    include "/etc/named.conf.include";

    # You can insert further zone records for your own domains below or create
    # single files in /etc/named.d/ and add the file names to
    # NAMED_CONF_INCLUDE_FILES.
    # See /usr/share/doc/packages/bind/README.SUSE for more details.

    -------------------------------------------------------------------------------------------------

    Espero la vostre ajuda. A més a més preguntar també. Quan funcioni aquest servei. Com puc veure totes les ips assignades i com podria reservar una ip?

    Moltissimes gracies!!!!
  • Hola,

    No m'has especificat quina versió de Linkat estas fent servir?

    El primer error et diu que no modifiquis el fitxer, llavors copia l'original amb l'ordre següent:
    cp /etc/resolv.conf.netconfig /etc/resolv.conf

    Estàs fent servir el NetworkManager? Es molt recomanable en servidor desactivar el NetworkManager i fer servir el mètode tradicional amb l'ifup. Es pot modificar des del mòdul del YaST / Network Settings a l'apartat Opcions globals, si tens una Linkat edu 11.4.

    El següent error és del servei named, mira que hi ha a dins del fitxer /etc/named.conf.include.

    També et serà molt útil mirar el fitxer de logs /var/log/messages, per veure els errors del named.

    No et fallarà el servei DHCP pel Primary Name Server IP, posa el 8.8.8.8 si vols, però millor posar el del departament 213.176.161.16

    Salut.

    Projecte Linkat
  • Bona tarda,

    He fet cp /etc/resolv.conf.netconfig /etc/resolv.conf.
    He canviat al mètode tradicional amb l'ifup.

    A /etc/named.conf.include. tinc:

    #
    # This file is autogenerated by /usr/share/bind/createNamedConfInclude
    # on Sun Feb 9 16:54:30 CET 2014. Don't edit it manually.
    #
    # Add additional configuration files which should be added to /etc/named.conf
    # by this mechanism to NAMED_CONF_INCLUDE_FILES in /etc/sysconfig/named. This
    # is possible with the YaST sysconfig or any other editor.
    #
    # See /usr/share/doc/packages/bind/README.SUSE section
    # createNamedConfInclude for more details.
    #

    include "/etc/named.d/1.168.192.in-addr.arpa";
    include "/etc/named.d/intracentre";
    --------------------------------------------------------------------------
    I a /var/log/messages tinc:

    Feb 24 18:27:17 servidor dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
    Feb 24 18:27:20 servidor dhcpd: Internet Systems Consortium DHCP Server 4.2.4-P2
    Feb 24 18:27:20 servidor dhcpd: Copyright 2004-2012 Internet Systems Consortium.
    Feb 24 18:27:20 servidor dhcpd: All rights reserved.
    Feb 24 18:27:20 servidor dhcpd: For info, please visit https://www.isc.org/software/dhcp/
    Feb 24 18:27:20 servidor dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
    Feb 24 18:27:20 servidor dhcpd: Internet Systems Consortium DHCP Server 4.2.4-P2
    Feb 24 18:27:20 servidor dhcpd: Copyright 2004-2012 Internet Systems Consortium.
    Feb 24 18:27:20 servidor dhcpd: All rights reserved.
    Feb 24 18:27:20 servidor dhcpd: For info, please visit https://www.isc.org/software/dhcp/
    Feb 24 18:27:20 servidor dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
    Feb 24 18:27:20 servidor dhcpd: Wrote 0 leases to leases file.
    Feb 24 18:27:21 servidor dhcpd: Multiple interfaces match the same subnet: eth0 wlan0
    Feb 24 18:27:21 servidor dhcpd: Multiple interfaces match the same shared network: eth0 wlan0
    Feb 24 18:27:21 servidor dhcpd: Listening on LPF/eth0/00:15:58:08:2c:14/192.168.1.0/24
    Feb 24 18:27:21 servidor dhcpd: Sending on LPF/eth0/00:15:58:08:2c:14/192.168.1.0/24
    Feb 24 18:27:21 servidor dhcpd: Sending on Socket/fallback/fallback-net
    --------------------------------------------------------------------------
    He de comentar-te que a /etc/sysconfig/dhcpd tinc escollit la interface "etho".

    Ara ja solament em surt un error:
    ERROR OCURRED WHILE STARTING SERVICE NAMED ERROR. ERROR /ETC/NAMED.CONF:78:'}'EXPECTED NEAR':'

    Saluts!!
  • Hola,

    ERROR OCURRED WHILE STARTING SERVICE NAMED ERROR. ERROR /ETC/NAMED.CONF:78:'}'EXPECTED NEAR':'

    El missatge et comenta que falta el símbol "}" a prop del símbol ":" a la línia 78 del fitxer /ETC/NAMED.CONF

    Veig que et falla el LDAP, el named i has hagut de modificar el mètode tradicional ifup.
    Una pregunta, has aplicat l'script de configuració del servidor d'aula?

    Una vegada instal·lat un servidor d'aula, per configurar tots els serveis, s'ha d'executar l'script següent:

    Code

    /etc/Linkat/Linkat.sh install


    Si ja ho has executat, però la configuració no ha sigut correcte, pots desinstal·lar-lo amb la següent ordre:

    Code

    /etc/Linkat/Linkat.sh uninstall


    I pots tornar a a instal·lar l'script amb la primera ordre.

    A veure si ho aconsegueixes.

    Salut.

    Projecte Linkat
  • 0 usuaris

Aquesta llista mostra els usuaris actius durant els darrers 20 minuts.