Guest User

Untitled

a guest
Dec 9th, 2016
116
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@raspberrypi:/etc/hostapd# service isc-dhcp-server restart
  2. Job for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.se rvice' and 'journalctl -xn' for details.
  3. root@raspberrypi:/etc/hostapd# systemctl status isc-dhcp-server.service
  4. ● isc-dhcp-server.service - LSB: DHCP server
  5. Loaded: loaded (/etc/init.d/isc-dhcp-server)
  6. Active: failed (Result: exit-code) since Fri 2016-12-09 15:26:01 UTC; 15s ago
  7. Process: 16641 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, statu s=1/FAILURE)
  8.  
  9. Dec 09 15:25:59 raspberrypi dhcpd[16650]:
  10. Dec 09 15:25:59 raspberrypi dhcpd[16650]: No subnet declaration for wlan0 (1....
  11. Dec 09 15:25:59 raspberrypi dhcpd[16650]: ** Ignoring requests on wlan0. If...t
  12. Dec 09 15:25:59 raspberrypi dhcpd[16650]: you want, please write a subnet de...n
  13. Dec 09 15:25:59 raspberrypi dhcpd[16650]: in your dhcpd.conf file for the ne...t
  14. Dec 09 15:26:01 raspberrypi isc-dhcp-server[16641]: Starting ISC DHCP server:...
  15. Dec 09 15:26:01 raspberrypi isc-dhcp-server[16641]: failed!
  16. Dec 09 15:26:01 raspberrypi systemd[1]: isc-dhcp-server.service: control pro...1
  17. Dec 09 15:26:01 raspberrypi systemd[1]: Failed to start LSB: DHCP server.
  18. Dec 09 15:26:01 raspberrypi systemd[1]: Unit isc-dhcp-server.service entered....
  19. Hint: Some lines were ellipsized, use -l to show in full.
  20. root@raspberrypi:/etc/hostapd# cat /etc/dhcp/dhcpd.conf
  21. #
  22. # Sample configuration file for ISC dhcpd for Debian
  23. #
  24. #
  25.  
  26. # The ddns-updates-style parameter controls whether or not the server will
  27. # attempt to do a DNS update when a lease is confirmed. We default to the
  28. # behavior of the version 2 packages ('none', since DHCP v2 didn't
  29. # have support for DDNS.)
  30. #ddns-update-style none;
  31.  
  32. # option definitions common to all supported networks...
  33. #option domain-name "example.org";
  34. #option domain-name-servers ns1.example.org, ns2.example.org;
  35.  
  36. default-lease-time 600;
  37. max-lease-time 7200;
  38.  
  39. # If this DHCP server is the official DHCP server for the local
  40. # network, the authoritative directive should be uncommented.
  41. #authoritative;
  42.  
  43. # Use this to send dhcp log messages to a different log file (you also
  44. # have to hack syslog.conf to complete the redirection).
  45. #log-facility local7;
  46.  
  47. # No service will be given on this subnet, but declaring it helps the
  48. # DHCP server to understand the network topology.
  49.  
  50. #subnet 10.152.187.0 netmask 255.255.255.0 {
  51. #}
  52.  
  53. # This is a very basic subnet declaration.
  54.  
  55. #subnet 10.254.239.0 netmask 255.255.255.224 {
  56. # range 10.254.239.10 10.254.239.20;
  57. # option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
  58. #}
  59.  
  60. # This declaration allows BOOTP clients to get dynamic addresses,
  61. # which we don't really recommend.
  62.  
  63. #subnet 10.254.239.32 netmask 255.255.255.224 {
  64. # range dynamic-bootp 10.254.239.40 10.254.239.60;
  65. # option broadcast-address 10.254.239.31;
  66. # option routers rtr-239-32-1.example.org;
  67. #}
  68.  
  69. # A slightly different configuration for an internal subnet.
  70. #subnet 10.5.5.0 netmask 255.255.255.224 {
  71. # range 10.5.5.26 10.5.5.30;
  72. # option domain-name-servers ns1.internal.example.org;
  73. # option domain-name "internal.example.org";
  74. # option routers 10.5.5.1;
  75. # option broadcast-address 10.5.5.31;
  76. # default-lease-time 600;
  77. # max-lease-time 7200;
  78. #}
  79.  
  80. # Hosts which require special configuration options can be listed in
  81. # host statements. If no address is specified, the address will be
  82. # allocated dynamically (if possible), but the host-specific information
  83. # will still come from the host declaration.
  84.  
  85. #host passacaglia {
  86. # hardware ethernet 0:0:c0:5d:bd:95;
  87. # filename "vmunix.passacaglia";
  88. # server-name "toccata.fugue.com";
  89. #}
  90.  
  91. # Fixed IP addresses can also be specified for hosts. These addresses
  92. # should not also be listed as being available for dynamic assignment.
  93. # Hosts for which fixed IP addresses have been specified can boot using
  94. # BOOTP or DHCP. Hosts for which no fixed address is specified can only
  95. # be booted with DHCP, unless there is an address range on the subnet
  96. # to which a BOOTP client is connected which has the dynamic-bootp flag
  97. # set.
  98. #host fantasia {
  99. # hardware ethernet 08:00:07:26:c0:a5;
  100. # fixed-address fantasia.fugue.com;
  101. #}
  102.  
  103. # You can declare a class of clients and then do address allocation
  104. # based on that. The example below shows a case where all clients
  105. # in a certain class get addresses on the 10.17.224/24 subnet, and all
  106. # other clients get addresses on the 10.0.29/24 subnet.
  107.  
  108. #class "foo" {
  109. # match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
  110. #}
  111.  
  112. #shared-network 224-29 {
  113. # subnet 10.17.224.0 netmask 255.255.255.0 {
  114. # option routers rtr-224.example.org;
  115. # }
  116. # subnet 10.0.29.0 netmask 255.255.255.0 {
  117. # option routers rtr-29.example.org;
  118. # }
  119. # pool {
  120. # allow members of "foo";
  121. # range 10.17.224.10 10.17.224.250;
  122. # }
  123. # pool {
  124. # deny members of "foo";
  125. # range 10.0.29.10 10.0.29.230;
  126. # }
  127. #}
  128. # If this DHCP server is the official DHCP server for the local
  129. # network, the authoritative directive should be uncommented.
  130. authoritative;
  131.  
  132. # No service will be given on this subnet, but declaring it helps the
  133. # DHCP server to understand the network topology.
  134.  
  135. subnet 192.168.3.0 netmask 255.255.255.0 {
  136. range 192.168.3.2 192.168.3.30;
  137. option broadcast-address 192.168.255.255;
  138. option routers 192.168.3.1;
  139. option domain-name-servers 10.8.0.1;
  140. }
  141. root@raspberrypi:/etc/hostapd#
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×