Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 15-04-2016 20:46:49

robert2a
Membre
Lieu : France
Distrib. : Stretch
Noyau : Linux 4.8.0-1-amd64
(G)UI : Mate 1.16.1
Inscription : 15-11-2014

configuration serveur dhcpd et ipv6

Bonsoir

j'ai un serveur local DNS + DHCP en IPV4 et je me suis rendu compte qu un fichier de conf "/etc/dhcp/dhcpd6.conf  a été créé.

son contenu :


# Server configuration file example for DHCPv6
# From the file used for TAHI tests - addresses chosen
# to match TAHI rather than example block.

# IPv6 address valid lifetime
#  (at the end the address is no longer usable by the client)
#  (set to 30 days, the usual IPv6 default)
default-lease-time 2592000;

# IPv6 address preferred lifetime
#  (at the end the address is deprecated, i.e., the client should use
#   other addresses for new connections)
#  (set to 7 days, the  usual IPv6 default)
preferred-lifetime 604800;

# T1, the delay before Renew
#  (default is 1/2 preferred lifetime)
#  (set to 1 hour)
option dhcp-renewal-time 3600;

# T2, the delay before Rebind (if Renews failed)
#  (default is 3/4 preferred lifetime)
#  (set to 2 hours)
option dhcp-rebinding-time 7200;

# Enable RFC 5007 support (same than for DHCPv4)
allow leasequery;

# Global definitions for name server address(es) and domain search list
option dhcp6.name-servers 3ffe:501:ffff:100:200:ff:fe00:3f3e;
option dhcp6.domain-search "test.example.com","example.com";

# Set preference to 255 (maximum) in order to avoid waiting for
# additional servers when there is only one
##option dhcp6.preference 255;

# Server side command to enable rapid-commit (2 packet exchange)
##option dhcp6.rapid-commit;

# The delay before information-request refresh
#  (minimum is 10 minutes, maximum one day, default is to not refresh)
#  (set to 6 hours)
option dhcp6.info-refresh-time 21600;

# Static definition (must be global)
#host myclient {
# # The entry is looked up by this
# host-identifier option
#   dhcp6.client-id 00:01:00:01:00:04:93:e0:00:00:00:00:a2:a2;
#
# # A fixed address
# fixed-address6 3ffe:501:ffff:100::1234;
#
# # A fixed prefix
# fixed-prefix6 3ffe:501:ffff:101::/64;
#
# # Override of the global definitions,
# # works only when a resource (address or prefix) is assigned
# option dhcp6.name-servers 3ffe:501:ffff:100:200:ff:fe00:4f4e;
#
# # For debug (to see when the entry statements are executed)
# #  (log "sol" when a matching Solicitation is received)
# ##if packet(0,1) = 1 { log(debug,"sol"); }
#}
#
#host otherclient {
#        # This host entry is hopefully matched if the client supplies a DUID-LL
#        # or DUID-LLT containing this MAC address.
#        hardware ethernet 01:00:80:a2:55:67;
#
#        fixed-address6 3ffe:501:ffff:100::4321;
#}

# The subnet where the server is attached
#  (i.e., the server has an address in this subnet)
#subnet6 3ffe:501:ffff:100::/64 {
# # Two addresses available to clients
# #  (the third client should get NoAddrsAvail)
# range6 3ffe:501:ffff:100::10 3ffe:501:ffff:100::11;
#
# # Use the whole /64 prefix for temporary addresses
# #  (i.e., direct application of RFC 4941)
# range6 3ffe:501:ffff:100:: temporary;
#
# # Some /64 prefixes available for Prefix Delegation (RFC 3633)
# prefix6 3ffe:501:ffff:100:: 3ffe:501:ffff:111:: /64;
#}

# A second subnet behind a relay agent
#subnet6 3ffe:501:ffff:101::/64 {
# range6 3ffe:501:ffff:101::10 3ffe:501:ffff:101::11;
#
# # Override of the global definitions,
# # works only when a resource (address or prefix) is assigned
# option dhcp6.name-servers 3ffe:501:ffff:101:200:ff:fe00:3f3e;
#
#}

# A third subnet behind a relay agent chain
#subnet6 3ffe:501:ffff:102::/64 {
# range6 3ffe:501:ffff:102::10 3ffe:501:ffff:102::11;
#}
 



son contenu minimal (actif)


default-lease-time 2592000;

preferred-lifetime 604800;

option dhcp-renewal-time 3600;

option dhcp-rebinding-time 7200;

allow leasequery;

#option dhcp6.name-servers 3ffe:501:ffff:100:200:ff:fe00:3f3e;  # commenté par moi meme
#option dhcp6.domain-search "test.example.com","example.com";  # commenté par moi meme


option dhcp6.info-refresh-time 21600;
 



dans /var/run/dhcpd.pid , je n'ai pas de "dhcpd6.pid actif

j'ai testé avec ou sans fichier de configuration.
il me semble que le serveur DNS ne prend pas en compte IPV6 (une ligne dans le fichier de configuration)

si quelqu un a des conseils sur ce qui serait bien comme configuration
ps: le serveur a l IPV6 désactivé (noyau) normalement roll
et pour le serveur dhcp je n'ai pas trouvé d'option pour désactiver l IPV6

voila le message dans /var/log/syslog avec le fichier dhcpd6.conf absent  (avec le fichier minimal le meme sans les 2 premieres lignes )


Apr 15 18:18:21 debian10 isc-dhcp-server[745]: /etc/init.d/isc-dhcp-server: 50: /etc/init.d/isc-dhcp-server: cannot open /etc/dhcp/dhcpd6.conf: No such file
Apr 15 18:18:21 debian10 isc-dhcp-server[745]: /etc/init.d/isc-dhcp-server: 50: /etc/init.d/isc-dhcp-server: cannot open /etc/dhcp/dhcpd6.conf: No such file
Apr 15 18:18:21 debian10 isc-dhcp-server[745]: DHCPv4 interfaces are no longer set by the INTERFACES variable in
Apr 15 18:18:21 debian10 isc-dhcp-server[745]: DHCPv4 interfaces are no longer set by the INTERFACES variable in
Apr 15 18:18:21 debian10 isc-dhcp-server[745]: /etc/default/isc-dhcp-server.  Please use INTERFACESv4 instead.
Apr 15 18:18:21 debian10 isc-dhcp-server[745]: /etc/default/isc-dhcp-server.  Please use INTERFACESv4 instead.
Apr 15 18:18:21 debian10 isc-dhcp-server[745]: Migrating automatically for now, but this will go away in the future.
Apr 15 18:18:21 debian10 isc-dhcp-server[745]: Migrating automatically for now, but this will go away in the future.
 



mon FAI ne prend pas en compte l ipv6
mon modem-routeur non plus
je vois pas l interet de mettre mon sous-réseau en ipv6 mais je suis ouvert aux conseils wink

Dernière modification par robert2a (15-04-2016 21:05:32)

Hors ligne

Pied de page des forums