Question: You are a network administrator tasked with configuring a new Ethernet interface on a Linux server. The server runs an older version of Ubuntu that

You are a network administrator tasked with configuring a new Ethernet interface on a Linux server. The server runs an older version of Ubuntu that does not use netplan for network configuration. You need to set a static IP address for the interface eth1 with the following settings:
IP Address: 192.168.1.100
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.1
Which of the following steps would you take to configure this interface?
answer
Edit the /etc/network/interfaces file to include the interface configuration.
Use the ifconfig command to set the IP address and subnet mask, then route add default gw 192.168.1.1.
Edit the /etc/netplan/01-netcfg.yaml file to include the interface configuration.
Use the nmcli tool to configure the interface directly from the command line.

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!