I have successfully to configured my raspberry pi as hotspot using hostapd and udhcpd according to this


However, I still have some question.

  • When I issue ifconfig command I see wlan0 assigned as IP address. Where does that come from? can we change it ?
  • obtaining the DHCP address takes around 20 second. Is it possible to make it shorter?

Here is the output of ifconfig

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:32:03:7f  
      inet addr:  Bcast:  Mask:
      inet6 addr: fe80::207c:acf3:a77a:e12/64 Scope:Link
      RX packets:9959 errors:0 dropped:20 overruns:0 frame:0
      TX packets:1989 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:757509 (739.7 KiB)  TX bytes:420952 (411.0 KiB)

and here is the route -n command output:

Destination Gateway Genmask Flags Metric Ref Use Iface UG 202 0 0 eth0 U 303 0 0 wlan0 U 202 0 0 eth0

  • 1 is a Link-local address i.e. no address has been "assigned"
    – Milliways
    Commented Feb 15, 2017 at 23:04
  • You are right I didn't assign an address to wlan0
    – Mero
    Commented Feb 16, 2017 at 12:54


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.