Question: A Linux system administrator is working on a Debian - based system and needs to switch from using DHCP to a static IP configuration for

A Linux system administrator is working on a Debian-based system and needs to switch from using DHCP to a static IP configuration for the network interface named eth0. The desired static IP configuration is as follows:
IP Address: 10.10.15.10
Subnet Mask: 255.255.255.0
Gateway: 10.10.15.1
DNS Server: 8.8.8.8
Which of the following actions should the administrator take to achieve this configuration?
###answer###
a. Edit the /etc/netplan/01-netcfg.yaml file to apply the static IP configuration and execute netplan apply.
b. Use the nmcli tool to set the static IP configuration and restart the NetworkManager service.
c. Modify the /etc/network/interfaces file to include the static IP configuration and restart the networking service.
d. Edit the /etc/netplan/01-netcfg.yaml file to apply the static IP configuration and execute netplan apply.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!