preview

Centos 7 Essay

Satisfactory Essays

Task 3
Short Description of Task
Editing network settings on an existing CentOS 7 Linux system.
Long Description of Task
Using the existing CentOS 7 Linux system with a network connection created and set, edit the settings for the NIC by using nmtui and nmcli commands as well as /etc/sysconfig/network-scripts/ directory. The both commands are used for network configuration, but nmtui has a GUI mode and it is easier to use. On the other hand, nmcli has more advanced options. The directory /etc/sysconfig/network-scripts/ keeps all network interface files that start with the name ifcfg- and can be used to edit network settings.
Pre-Implementation Test Plan
• Ensure that the user is the root user or can use root privileges for commands.
…show more content…

• By using keyboard keys, choose Edit a Connection. Select the name of the network connection and on the right pane select Edit button.
• To change the profile name, delete the existing name and type a new one.
• Select IP configuration Automatic for DHCP or Manual for static IP address.
• For static IP address, type IP addresses with format (-- removed HTML --) /CIDR (Figure 3).
• Type Default Getaway address.
• Type DNS servers IP addresses.
• Select (-- removed HTML --) , if the configuration requires several IP addresses.
• Choose Automatically connect for IPv6 configurations.
• Select OK to save the network configurations.
• Select Back to go back Network Manager TUI.
• Select OK or Quit to go back to the terminal.
Edit network settings by using etc/sysconfig/network-scripts/ directory:
• In the terminal, open etc/sysconfig/network-scripts/ directory by using command cd etc/sysconfig/network-scripts
• List the files of the directory with the command ll. For more precise search, use pipes and grep filter: ll | grep “ifcfg”.
• Open the network configuration file with editor with root privileges sudo vi ifcfg- (-- removed HTML --) (Figure 4).
• For DHCP find the lines BOOTPROTO=none and ONBOOT=no and change them to BOOTPROTO=dhcp ONBOOT=yes and restart the network by using command with root privileges systemctl restart network.

Get Access