Question 1 of 30
A system administrator is tasked with setting up a new Ethernet connection named \"OfficeEthernet\" on a server running Oracle Linux 8. The connection should use a static IP address of 192.168.1.100, a subnet mask of 255.255.255.0, a gateway of 192.168.1.1, and DNS servers of 8.8.8.8 and 8.8.4.4. Which sequence of nmcli commands should the administrator use to correctly configure and activate this connection?
nmcli con add type ethernet con-name OfficeEthernet ifname eth0 ip4 192.168.1.100/24 gw4 192.168.1.1; nmcli con mod OfficeEthernet ipv4.dns "8.8.8.8 8.8.4.4"; nmcli con up OfficeEthernet
nmcli con create type ethernet con-name OfficeEthernet ifname eth0 ip4 192.168.1.100/24; nmcli con set OfficeEthernet ipv4.gateway 192.168.1.1; nmcli con up OfficeEthernet
nmcli connection add type ethernet con-name OfficeEthernet ifname eth0; nmcli connection modify OfficeEthernet ipv4.addresses 192.168.1.100/24; nmcli connection up OfficeEthernet
nmcli add con ethernet OfficeEthernet eth0 192.168.1.100/24; nmcli modify OfficeEthernet ipv4.gateway 192.168.1.1; nmcli activate OfficeEthernet

Preparing for Oracle Linux 8 Advanced System Administration? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free