All right, so we need to set a hostname for the server to rhcsa-server.example.com.
Different ways how you can do that, I'm going for hostnamectl, hostname rhcsa-server.example.com.
Then we need to set the server to a fixed IP address that matches the current network
configuration.
I'm using IP8 to confirm that my current network configuration is on 192.168.29, and I'm going
to use nmtui, the network manager text user interface, which is definitely the best, but
not the only way that you can use to change IP address configuration.
So I'm editing the connection, and here we have the IPv4 configuration, which I need
to set to manual.
Then I'm selecting show, and there I'm going to use 192.168.29.100.24.
The gateway needs to be set to something that matches, so 192.168.29.2.
So for gateways and DNS, you always need to check what is currently in use in your
current network.
So you might want to check out the etcresolve.conf as well as the result of the iproute show
command before you are going to change all of this.
Then we also need a second IP address, so let me get back to the IP addresses and select
10.0.0.10.24.
And that should be enough, so let me go to OK and back and activate a connection.
And then we can quit and do an IPA, and IPA is showing what?
Oh boy, something didn't work out well here.
Do you see that?
We only have the second IP address, and we don't have the first IP address, so I need
to get back, edit the connection, and edit.
And I'm not quite sure why this didn't work.
I'm going to remove this, and then I'm going to separately OK it.
So now that I've set it, I'm going to activate my connection.
So first I deactivate, then I activate, and then we do a back and a quit, and we go verify.
And IPA is showing what?
Oh no, IPA is showing 10.0.0.10.
You might want to check system CTL status network manager if something like that is
happening, and look at that.
IP address cannot be configured because it is already in use by another host on the network.
Well, that makes that my IP address was not unique.
That's a nice experience, and let's edit again.
And this time, let's not go for 100, but let's go for 99 instead.
So I need to repeat the same procedure, which is OK and back, and then I need to reactivate.
So that should be done now, and when we use quit, IPA is showing that this time it worked out all right.
OK, then we need to enable hostname resolution for the local server hostname.
That is important because otherwise services cannot correctly look up the hostname.
So I need a VIM on ETC hosts, and in ETC hosts, I'm going to add 192.168.29.99 to rhcsa-server.example.com,
and maybe also the short name.
And then, well, the question asked to reboot, so let's do what the question is asking.
You might think in this specific lab that it doesn't really make sense to reboot, and that's exactly what is the case.
Why would you reboot?
Because network manager is picking up the address configuration, and as long as that works, you should be OK.
But if you're asked to reboot, particularly on the exam, then just give it a reboot because who knows?
They might evaluate if you have really done that, and then if you don't, you don't get the points, and you don't want it to happen.
So I am back in my shell environment now, and I'm going to do a sudo minus I and verify.
Well, first, we see rhcsa-server is correctly set, and here we can see that the IP address configuration is correctly set as well.