SIMULATION
Complete the following configuration file for a network interface card (NIC) in the openEuler operating system to set a static IP address and enable the NIC to automatically start upon system boot.
TYPE=Ethernet
BOOTPROTO=_____
NAME=enp0s4
DEVICE=enp0s4
ONBOOT=_____
IPADDR=172.28.100.100
NETMASK=255.255.255.0
Correct Answe r is: BOOTPROTO=static, ONBOOT=yes
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
Melinda
5 days agoZachary
10 days agoToshia
15 days agoIsadora
20 days agoPearly
25 days agoJerry
1 month agoLynelle
1 month ago