Now we will see how we have set up the system c10 in our case, a virtual machine.
What are the different configuration settings?
So again, we first check the hostname dnsdomainname, then with the hostnamectl command set
hostname.
We set the name to c10.example.com, then we logged out.
So when again when we logged in.
So it was showing the name C10 and we verify with the hostname, dnsdomainname command.
It was showing the hostname as c10.example.com and dnsdomainname as example.
com.
And initially the host file is have the only entry regarding localhost and we disable the firewall
setting networkManager and then we flush the rules.
We install the new iptables-service package, as we discussed in the case of master system.
Same process we have done in C10 also and C20 also.
Then we run this service, iptables save command, and then we check the sestatus.
It is disabled and how we disable it by making changes in /etc.
/sysconfig/selinux.
So selinux here, the default value when you install it is enforcing.
We change it from enforcing to disable.
Then we check the ipaddress, initially network adapter was NAT because we wanted to install the packages
and when we checked the address, it was showing 192.168.142.137 because
it was allocated dynamically.
And then if we want to check the file in which we can make the changes and why it was getting the address dynamically,
the configuration file is you are in /etc/sysconfig/network-scripts directory the name of the file
is ifcfg-ens33 and it is showing the bootprotocol dhcp that mean address is automatically obtained
due to this settings, later on we are going to make changes in this setting.
Then we install the certain packages by using yum -q mean quite mode.
install wget.
git, elinks, curl and lynx these three browsers
So if it is not style, it is going to ask for the confirmation we are going to press y.
And if it is already installed, we will get the message and you can verify by using this rpm.
Command also rpm -q elinks, you can verify.
Then we allocated one static address by making changes in which file /etc/sysconfig/network-scripts,
ifcfg-ens33, for making changes you can use vi editor or nano editor, whatever
editor, you are comfortable.
So in this, we changed the bootprotocol from dhcp to static and then now we made the entry ipaddress
is equal to 172.24.0.10 and that netmask is 255.255.0.0.
And then the power off the system.
Why?
Because we want to change the network adapter setting from NAT to your bridge, we change that
settings.
Then we verified whether that setting is okay or not.
Network bridge.
It is now showing network bridge adapter at setting network bridge.
And when we run the command ip a s ens33, it is showing us the address 172.24.0.10 and we
made one entry in host file also 172.24.0.10 and the name of the system.
And that is the entry that we made.
So that is our C10 system.
Now we will verify whether our system is according to the setting that we have discussed or not.
Again, these are optional video.
If you already know how to install the packages, how to set up that type of lab that we discussed
in the lab setup video, then you can skip this video.