emscli system set network ip
command to set a static/dynamic IP on the network adapter
Synopsis
system set network ip sets a static or dynamic IP on the network adapter.
The adapter name to set the IP on must be passed to the --adapter flag.
If the --dynamic flag is not specified, all three of the --ip, --gateway, and --dns flags must be specified.
To reset any previous DNS configuration, pass the --reset.dns and --dynamic flags together.
emscli system set network ip [flags]
Options
--adapter string The name of the ethernet adapter to be configured
--add.ip Adds the ip address to the adapter configuration
--dns string Configures the network adapter IP to use a specified preferred DNS server. Separate multiple DNS servers with comma. For example, dnsserver1,dnsserver2.
--dynamic Configures the network adapter to use a dynamic IP assigned by DHCP
--gateway string Configures the network adapter to use a specified network gateway
-h, --help help for ip
--ip string Configures the network adapter to use a specified static IP address and subnet mask
--remove.ip Removes the ip address to the adapter cofiguration
--reset.dns If configuring the adapter to use a dynamic IP (--dynamic), resets any previous DNS configuration
See also
- emscli system set network - for setting a specific network parameter
- emscli system set network domain - command to set dns search domains