This command lets you configure the use of DHCP for the network interface of the SVM.
The new settings are applied after the /etc/systemd/resolved.conf file is overwritten as a result of a restart of the SVM or network service (the manageservices restart network
command).
If you want to change the IP address assignment method for SVMs from static IP addressing to DHCP and use DNS servers obtained from DHCP, before running the dhcp
command, run the dns
command and then the dnssearch
command without options. This lets you delete the previously configured list of DNS servers and search domains in the /etc/systemd/resolved.conf files.
If you are using dynamic IP addressing, and you want to add a DNS server to the list of DNS servers obtained from DHCP, run the dns
command with the necessary options before running the dhcp
command. If you want to use only manually specified DNS servers, run the dns
command with the necessary options after running the dhcp
command and restarting the network service. This lets you overwrite the /etc/systemd/resolved.conf file.
Settings
<InterfaceName> [<MakePrimary>]
where:
The primary network interface sets the default route and DNS servers (DEFROUTE = yes, PEERDNS = yes). Only one network interface from those utilized by an SVM may be primary. If the "primary" indicator is assigned to multiple network interfaces, the last one of them becomes the primary network interface.
Example:
|
Specific errors
None.
Page top