User's Manual
2. Getting Started
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
Table 2-10. dhcp Command Parameter
Parameter
Description
-S
Start DHCP (Client/Server).
-E
End DHCP (Client/Server).
-Q
show DHCP status.
-o mode
•
mode = 1 : DHCP client of STA interface.
•
mode = 2 : DHCP server of AP interface.
•
mode = 3 : both.
Table 2-11. ip Command Parameter
Parameter
Description
-Q
Show IP address.
-o mode
•
mode = 1 : IP address of interface STA.
•
mode = 2 : IP address of interface AP.
•
mode = 3 : both
-S
Set IP address.
-i ip
IP address.
-m mask
Subnet address mask.
-g gateway
Default gateway.
Espressif
2015.12
Confidential