PDA

View Full Version : DHCP - not configured to listen to any device



SearchingFor
2017-12-04, 21:49
Hello guys;

I hope this is the right section to post this.

somewhere there must be a bug in my brain, trying to set up and run the dhcp server on my kali linux 2.0 .
I always get the message "not configured to listen to any device" when starting dhcp server.

My dhcpd.conf:


authoritative;

subnet 192.168.0.0 netmask 255.255.255.0
{
range 192.168.0.10 192.168.0.200;
#Range of client's IP addresses: 10 to 200
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option domain-name-servers 8.8.8.8;
option routers 192.168.0.1;
}

My isc-dhcp-server file:

INTERFACESv4="wlan0"
INTERFACESv6="wlan0"

My interfaces file:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

I am connected at wlan0 with my router that has IP 192.168.0.1

route -n says:


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 600 0 0 wlan0
0.0.0.0 192.168.0.1 0.0.0.0 UG 600 0 0 wlan1
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan1


ifconfig says:


eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether e0:db:55:e7:b0:81 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf7e00000-f7e20000

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 250 bytes 17184 (16.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 250 bytes 17184 (16.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.102 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::8e12:5b29:d4da:e612 prefixlen 64 scopeid 0x20<link>
ether 60:67:20:a4:d7:0a txqueuelen 1000 (Ethernet)
RX packets 180229 bytes 248116063 (236.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 146258 bytes 18813716 (17.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.101 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::3da:9923:f491:87eb prefixlen 64 scopeid 0x20<link>
ether 00:c0:ca:76:4c:11 txqueuelen 1000 (Ethernet)
RX packets 40336 bytes 30912546 (29.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 494 bytes 79771 (77.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


Thank you very much for your help!