Ethernet Static IP

If you are asking a question, please follow this template:

  1. My goal is: To set Static IP For Eternet Interface
  2. My actions are: As per official doc, there is no provision for ethernet configuration
  3. The result I see is: From mos.yml file mentioned in this link - https://github.com/mongoose-os-libs/ethernet
    It shows the ethernet configuartion as below:
config_schema:
  - ["eth", "o", {title: "Ethernet settings"}]
  - ["eth.enable", "b", false, {title: "Enable Ethernet interface"}]
  - ["eth.phy_addr", "i", 0, {title: "(R)MII PHY address"}]
  - ["eth.ip", "s", {title: "Static IP Address"}]
  - ["eth.netmask", "s", {title: "Static Netmask"}]
  - ["eth.gw", "s", {title: "Static Default Gateway"}]
  - ["eth.nameserver", "s", {title: "Static DNS Server"}]
  1. My expectation & question is: Can I mention the same configuration in my projects’s mos.yml file and set static IP for ethernet?

What do you mean by that?

You can set eth.ip, eth.netmask, eth.gw and eth.nameserver either in your mos.yml or as usual with mos config-set command.

  - ["eth.ip", "10.10.10.10"]
  - ["eth.netmask", "255.255.255.0"]
  - ["eth.gw", "10.10.10.254"]
  - ["eth.nameserver", "10.10.10.254"]
mos config-set eth.ip="10.10.10.10" eth.netmask="255.255.255.0" eth.gw="10.10.10.254" eth.nameserver="10.10.10.254"

@nliviu Refer the link in question I have posted, there no configuration for ethernet (Ex: how WiFi API is explained)
Any how it is resolved.
Thank you for your response