Salut,
Quand je lance dhclient en faisant dhclient -cf /etc/dhcp/dhclient6.conf -6 -P -v -d wan
, je tombe sur une erreur que je ne comprend pas :
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Can't bind to dhcp address: Cannot assign requested address
Please make sure there is no other dhcp server
running and that there's no entry for dhcp or
bootp in /etc/inetd.conf. Also make sure you
are not running HP JetAdmin software, which
includes a bootp server.
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
Pour info, voici quelques configurations :
┌ (gilles@router + 1) (08/12/16 - 11:48:26) (0.00 - 18%) (~)
└% cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# Internal network
allow-hotplug int
iface int inet static
address 10.255.0.1
netmask 255.255.255.0
post-up /bin/ip add del fe80::bccd:fdff:fea6:7828/64 dev int
iface int inet6 static
address 2001:470:1f13:6fd::
netmask 64
# WAN
allow-hotplug wan
#iface wan inet dhcp
iface wan inet static
address 163.172.41.50
netmask 255.255.255.0
gateway 163.172.41.1
┌ (gilles@router + 0) (08/12/16 - 11:50:45) (0.00 - 18%) (~)
└% ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: int: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether be:cd:fd:a6:78:28 brd ff:ff:ff:ff:ff:ff
inet 10.255.0.1/24 brd 10.255.0.255 scope global int
valid_lft forever preferred_lft forever
inet6 2001:470:1f13:6fd::/64 scope global
valid_lft forever preferred_lft forever
3: wan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:07:cb:03:c6:10 brd ff:ff:ff:ff:ff:ff
inet 163.172.41.50/24 brd 163.172.41.255 scope global wan
valid_lft forever preferred_lft forever
inet6 fe80::207:cbff:fe03:c610/64 scope link tentative dadfailed
valid_lft forever preferred_lft forever
┌ (gilles@router + 0) (08/12/16 - 11:51:25) (0.00 - 18%) (~)
└% cat /etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
net.ipv6.conf.wan.accept_ra=2
┌ (gilles@router + 0) (08/12/16 - 11:52:01) (0.00 - 18%) (~)
└% ip -6 r
2001:470:1f13:6fd::/64 dev int proto kernel metric 256
fe80::/64 dev wan proto kernel metric 256
default via fe80::ce46:d6ff:feb2:c9f1 dev wan proto ra metric 1024 expires 1718sec hoplimit 64
┌ (gilles@router + 0) (08/12/16 - 11:53:07) (0.00 - 18%) (~)
└% ip -6 n
fe80::ce46:d6ff:feb2:c9f1 dev wan router FAILED
┌ (gilles@router + 0) (08/12/16 - 11:53:11) (0.00 - 18%) (~)
└% sudo ip6tables-save
# Generated by ip6tables-save v1.4.21 on Thu Dec 8 11:55:28 2016
*mangle
:PREROUTING ACCEPT [13967:1777611]
:INPUT ACCEPT [5748:537880]
:FORWARD ACCEPT [985:98858]
:OUTPUT ACCEPT [6869:1172566]
:POSTROUTING ACCEPT [7854:1271424]
COMMIT
# Completed on Thu Dec 8 11:55:28 2016
# Generated by ip6tables-save v1.4.21 on Thu Dec 8 11:55:28 2016
*nat
:PREROUTING ACCEPT [4612:983293]
:INPUT ACCEPT [634:58272]
:OUTPUT ACCEPT [838:77818]
:POSTROUTING ACCEPT [1462:141326]
COMMIT
# Completed on Thu Dec 8 11:55:28 2016
# Generated by ip6tables-save v1.4.21 on Thu Dec 8 11:55:28 2016
*filter
:INPUT ACCEPT [5759:538672]
:FORWARD ACCEPT [985:98858]
:OUTPUT ACCEPT [6887:1174670]
:ICMP_CHECK - [0:0]
:SSH_CHECK - [0:0]
COMMIT
# Completed on Thu Dec 8 11:55:28 2016
┌ (gilles@router + 0) (08/12/16 - 11:55:28) (0.00 - 18%) (~)
└% sudo netstat -ltupn
Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 535/sshd
tcp 0 0 127.0.0.1:14615 0.0.0.0:* LISTEN 568/unbound
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 820/exim4
tcp 0 0 127.0.0.1:8953 0.0.0.0:* LISTEN 568/unbound
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 554/dnsmasq
tcp 0 0 10.255.0.1:53 0.0.0.0:* LISTEN 554/dnsmasq
tcp6 0 0 :::22 :::* LISTEN 535/sshd
tcp6 0 0 ::1:14615 :::* LISTEN 568/unbound
tcp6 0 0 ::1:25 :::* LISTEN 820/exim4
tcp6 0 0 ::1:8953 :::* LISTEN 568/unbound
tcp6 0 0 ::1:53 :::* LISTEN 554/dnsmasq
tcp6 0 0 2001:470:1f13:6fd:::53 :::* LISTEN 554/dnsmasq
udp 0 0 127.0.0.1:14615 0.0.0.0:* 568/unbound
udp 0 0 127.0.0.1:53 0.0.0.0:* 554/dnsmasq
udp 0 0 10.255.0.1:53 0.0.0.0:* 554/dnsmasq
udp6 0 0 ::1:14615 :::* 568/unbound
udp6 0 0 ::1:53 :::* 554/dnsmasq
udp6 0 0 2001:470:1f13:6fd:::53 :::* 554/dnsmasq
┌ (gilles@router + 0) (08/12/16 - 11:57:09) (0.00 - 18%) (~)
└% sudo netstat -tupn
Connexions Internet actives (sans serveurs)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat PID/Program name
tcp6 0 0 2001:470:1f13:6fd:::22 2001:470:1f13:6fd:37872 ESTABLISHED 826/sshd: gilles [p
tcp6 0 0 2001:470:1f13:6fd:33891 2001:470:1f13:6fd:::514 ESTABLISHED 529/rsyslogd
Voilà, si quelqu’un a une idée, parce que je suis à cours.