Let us see how we have configured the C20 system, what are the different configuration settings again
Initially when we installed that VMs the hostname, it was showing localhost localdomain.
Nothing was visible in dnsdomainname.
Then we changed the name with the hostnamectl commands, set-hostname.
c20.example.com.
Then we logout and it is showing that the name of our system is C20 with the hostname.
We verified whether name was given properly or not.
C20.example.com, dnsdomainname example.com and initial.
The host file will have only the host localhost entries.
Then we disable the firewall network.
manager.
Then we made changes install one iptables packages because we have disabled this firewalld services
we wanted to enable the another service iptables-services.
So in your case, if it is not installed, it will ask for the confirmation you have to press y.
If it is already installed, it will give the message, then you are going to flush the rule.
Then we'll save with iptables save command.
And with a iptables list, you can verify that our firewall is effectively disabled or not.
By running this command, it will show that the policy by default policies accept, then we check the status
of selinux, sestatus, it is in disabled.
How we disabled by making changes in /etc/sysconfig/selinux file by default here the setting is enforcing.
We change it to disabled.
Then we check the IP addresses and network adapters settings.
initially it is NAT because we want to install the packages and IP address given was 192.1
68.142.138.
How the system obtained the address because by default the configuration setting of our
land card or network adapter card are stored in which file it is in /etc/sysconfig/network-scripts.
Ifcfg-ens33 and the setting is dhcp that mean obtain automatically then install the packages
wget, git, elinks, curl and your lynx package.
And when asking for the confirmation we said yes, if it is already installed we are going to
get this message.
that already installed.
And you can verify it with rpm query command also.
So we can see that your git packages is instaaled curl is installed everything is installed.
Then we change the IP address of this system to 172.24.0.20 and mask to 255.255.0.0.
And we change the bootprotocol from dhcp to static.
Then we power off the system and we made the adapter settings from NAT to Bridge.
Then we verified whether it is bridge and with ip a s ens33 command.
We verify the address whether it is okay or not.
So it is showing 172.24.0.20 and again in host file we made entry by using vi editor
172.
24.0.20 c20.example.com.
So that is how we configured your c20 system.