Dhcp client SC20-EL

On the SC20-EL what “dhclient” is used?
I am trying to bring up the WiFi via command line have to the point of needing a dhclient call.

Many Thanks

WIFI STA mode:

cat /etc/wpa_supplicant.conf
network={
ssid=“Quectel-xxx”
psk=“xxx-Quectel”
}

wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0 &

/ # ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr E4:08:E7:E0:06:CD
inet addr:10.66.17.86 Bcast:10.66.19.255 Mask:255.255.252.0
inet6 addr: fe80::e608:e7ff:fee0:6cd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2383 (2.3 KiB) TX bytes:3751 (3.6 KiB)

ping www.baidu.com
64 bytes from 36.152.44.96: icmp_req=1 ttl=54 time=15.3 ms
64 bytes from 36.152.44.96: icmp_req=2 ttl=54 time=27.6 ms
^C


WIFI AP mode:

ps | grep wlan
3146 root 0:00 {wlan} /bin/busybox /bin/sh /etc/init.d/wlan start
3703 root 0:00 [wlan_logging_th]
3715 root 0:00 /usr/sbin/dhcpcd wlan0 -t 0 -o domain_name_servers --noipv4ll -h -b
3790 root 0:00 {grep} /bin/busybox /bin/grep wlan
kill -9 3715

hostapd -dd /etc/misc/wifi/hostapd.conf &

ifconfig wlan0 192.168.5.1

udhcpd -Sf /etc/misc/wifi/udhcpd.conf &

1 Like

you can build your own udhcpc or use the “busybox udhcpc” as DHCP client.

Index of /downloads/binaries/1.20.0 (busybox.net)

1 Like
wlan0     Link encap:Ethernet  HWaddr 64:C4:03:76:55:87
          inet addr:192.168.1.133  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::66c4:3ff:fe76:5587/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6999 errors:0 dropped:0 overruns:0 frame:0
          TX packets:869 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1053323 (1.0 MiB)  TX bytes:75390 (73.6 KiB)


awesome thanks for the help