In HCIA–Cloud Computing (Operating System Basics), Linux network interface configuration is a foundational skill, and openEuler follows the standard Red Hat–style network configuration syntax.
To configure a static IP address, the parameter BOOTPROTO must be set to static. This tells the operating system not to request an IP address from a DHCP server and instead use the manually configured values such as IPADDR and NETMASK.
To ensure that the NIC is automatically activated when the system boots, the parameter ONBOOT must be set to yes. If ONBOOT is set to no, the interface will remain down after boot and must be manually started.
Therefore, the completed and correct configuration is:
BOOTPROTO=static
ONBOOT=yes
BOOTPROTO=static → Uses a fixed IP address
ONBOOT=yes → Enables automatic startup at system boot
This configuration exactly matches HCIA–Cloud Computing requirements for static IP configuration on openEuler.
Submit