VMware

Ipv4 Namespace

Ipv4 namespace provides commands Performs IPV4 network configuration for interfaces.

List of commands:



Renew Command

dcli com vmware appliance techpreview networking ipv4 renew

Description

Renew IPv4 network configuration on interfaces. If the interface is configured to use DHCP for IP address assignment, the lease of the interface is renewed.

Options

Option Name Type Required Description
interfaces string Yes Interfaces to renew.

Example

dcli com vmware appliance techpreview networking ipv4 renew --interfaces testString


Set Command

dcli com vmware appliance techpreview networking ipv4 set

Description

Set IPv4 network configuration.

Options

Option Name Type Required Description
interface‑name string Yes Interface name, for example, "nic0", "nic1".
mode string Yes Address assignment mode. Valid values are: {dhcp, is_static, unconfigured}
address string Yes IPv4 address, for example, "10.20.80.191". Set this argument to an empty string "", if the mode is "unconfigured" or "dhcp".
prefix int Yes IPv4 CIDR prefix, for example , 24. See http://www.oav.net/mirrors/cidr.html for netmask-to-prefix conversion. Set this argument to 0 if the mode is "unconfigured" or "dhcp".
default‑gateway string Yes IPv4 address of the default gateway. This default gateway value is used if the mode argument is set to "static" This configures the global default gateway on the appliance with the specified gateway address and interface. This gateway replaces the existing default gateway configured on the appliance. However, if the gateway address is link-local, then it is added for that interface. This does not support configuration of multiple global default gateways through different interfaces.

Example

dcli com vmware appliance techpreview networking ipv4 set --interface-name testString --mode test --address testString --prefix test --default-gateway testString


List Command

dcli com vmware appliance techpreview networking ipv4 list

Description

Get IPv4 network configuration for all configured interfaces.

Example

dcli com vmware appliance techpreview networking ipv4 list


Get Command

dcli com vmware appliance techpreview networking ipv4 get

Description

Get IPv4 network configuration for interfaces.

Options

Option Name Type Required Description
interfaces string Yes Network interfaces to query, for example, "nic0".

Example

dcli com vmware appliance techpreview networking ipv4 get --interfaces testString