You are using staging server - a separate instance of the ESP Component Registry that allows you to try distribution tools and processes without affecting the real registry.
# Console command ifconfig The component offers a console that enables runtime network interface configuration and monitoring for any example project. ## API ### Steps to enable console in an example code: 1. Add this component to your project using the command ```idf.py add-dependency```. 2. In the main file of the example, add the following line: ```#include "console_connect.h"``` 3. In your app_main() function, add the following line as the last line: ```example_start_networking_console(NULL, NULL);``` 4. Optionally, you can add a user-defined command: ```example_start_networking_console("user_cmd", usr_cmd_hndl);``` In the above line, "user_cmd" is a string representing the user-defined command name, and usr_cmd_hndl is the command callback function with the prototype int usr_cmd_hndl(int argc, char **argv). ## Suported commands: ### Ifconfig: * **ifconfig netif create/destroy <key id>/<iface>****:** Create or destroy a network interface with the specified key ID or interface name. * **ifconfig eth:** TBD * **ifconfig:** Display a list of all esp_netif interfaces along with their information. * **ifconfig \<iface>:** Provide the details of the named interface. * **ifconfig \<iface> default:** Set the specified interface as the default interface. * **ifconfig \<iface> ip6:** Enable IPv6 on the specified interface. * **ifconfig <iface> up:** Enable the specified interface. * **ifconfig <iface> down:** Disable the specified interface. * **ifconfig \<iface> link \<up/down>:** Enable or disable the link of the specified interface. * **ifconfig \<iface> ip \<ipv4 address>:** Set the IPv4 address of the specified interface. * **ifconfig \<iface> mask \<ipv4 address>:** Set the subnet mask of the specified interface. * **ifconfig \<iface> gw \<ipv4 address>:** Set the default gateway of the specified interface. * **ifconfig \<iface> napt \<enable/disable>:** Enable or disable Network Address and Port Translation (NAPT) on the specified interface. * **ifconfig \<iface> dhcp server \<enable/disable>:** Enable or disable the DHCP server on the specified interface. (Note: DHCP server is not supported yet) * **ifconfig \<iface> dhcp client \<enable/disable>:** Enable or disable the DHCP client on the specified interface. Note: Disabling the DHCP server and client enables the use of static IP configuration. ### Quit: **quit:** Quits the Console application.
idf.py add-dependency "espressif/console_cmd_ifconfig^0.0.1"