2.2.5. dhcp
Description
dhcp commands are used to enable or disable dhcp server/client.
Example
dchp -S [-o mode]
dhcp -E [-o mode]
dhcp -Q [-o mode]
Parameter
2.2.6. ip
Description
ip command are used to set and query the IP address of the network interface.
Example
ip -Q [-o mode]
ip -S [-i ip] [-o mode] [-m mask] [-g gateway]
Parameter
Espressif
Table 2-10. dhcp Command Parameter
Parameter
-S
-E
-Q
-o mode
Table 2-11. ip Command Parameter
Parameter
-Q
-o mode
-S
-i ip
-m mask
-g gateway
Description
Start DHCP (Client/Server).
End DHCP (Client/Server).
show DHCP status.
•
mode = 1 : DHCP client of STA interface.
•
mode = 2 : DHCP server of AP interface.
•
mode = 3 : both.
Description
Show IP address.
•
mode = 1 : IP address of interface STA.
•
mode = 2 : IP address of interface AP.
•
mode = 3 : both
Set IP address.
IP address.
Subnet address mask.
Default gateway.
2. Getting Started
2015.12
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers