Exam EX200 All QuestionsBrowse all questions from this exam
Question 1

SIMULATION -

Configure your Host Name, IP Address, Gateway and DNS.

Host name: station.domain40.example.com

/etc/sysconfig/network

hostname=abc.com

hostname abc.com

IP Address:172.24.40.40/24 -

Gateway172.24.40.1 -

DNS:172.24.40.1 -

    Correct Answer:

    To configure the Host Name, IP Address, Gateway, and DNS, follow these steps: To set the hostname to station.domain40.example.com, edit the file /etc/sysconfig/network: 'HOSTNAME=station.domain40.example.com'. For the IP Address, Gateway, and DNS configuration, navigate to /etc/sysconfig/network-scripts/ and edit the ifcfg-eth0 file to include the following: IPADDR=172.24.40.40, PREFIX=24, GATEWAY=172.24.40.1, and DNS1=172.24.40.1. Applying these settings through editing configuration files ensures the network settings are preserved across reboots.

Discussion
QuangTruong

#cd /etc/sysconfig/network-scripts/ #ls #vi ifcfg-eth0 IPADDR=172.24.40.40 PREFIX=24 GATEWAY=172.24.40.1 DNS1=172.24.40.1 #hostnamectl set-hostname station.domain40.example.com

xXxM__JxXx

hi, how do you make this configuration in effect? it tried systemctl restart networkmanager but the service is not found. i tried nmcli networking off and on but this does not take effect also. i did systemctl reboot for this to work. thank you for the advise. btw using nmcli con mod enables me to use nmcli networking off and on to make the changes in effect.

eddiemy

Either way using ifdown eth0;ifup eth0 or nmcli conn up eth0

kathee

systemctl restart network.service

scarylucky

should be systemctl restart NetworkManager

Luca_D

It's true up to Rhel 8 , in Rhel 9 configuration files are in /etc/NetworkManager/system-connections/

anon201

nmcli con reload afterwards and it works like charm !

PERjham

There is many ways to achieve the tasks, remember! In this case, for this question all the commands working in rhel 7 also work in rhel 8. Again, remember, there is many ways to resolve the questions. For example, if you can change the hostanme, you can use the cli (hostnamectl) or modifying directly the archive for that purpose: /etc/hostname. If you can modify the network details, you can use, nmcli (cli for network mannager), nmtui (TUI for network manager) or modify the archives directly. You can choose any of the ways you want!

Rahul95

#hostnamectl set-hostname station.domain40.example.com #hostnamectl - to verify #nmcli connection modify eth0 ipv4.addresses 172.24.40.40/24 ipv4.gateway 172.24.40.1 ipv4.dns 172.24.40.1 ipv4.method static #nmcli connection down eth0 #nmcli connection up eth0 # ping 172.24.40.1 - to verify

shamySx

Love you Rahul

crystal_star

Solution: hostnamectl set-hostname station.domain40.example.com nmcli connection add con-name ens160 ifname ens160 ipv4.method manual ipv4.addresses 172.24.40.40/24 ipv4.gateway 172.24.40.1 ipv4.dns 172.24.40.1 connection.autoconnect yes type ethernet

feidhlimx

hostnamectl without admin privileges is ok. Does the nmcli command also work in this way?

DBrown

Option 1 - #sudo nmtui (gui configuration) Option 2 - #nmcli connection modify ipv4.method manual ipv4.addresses 172.24.40.40/24 ipv4.gateway 172.24.40.1 ipv4.dns 172.24.40.1 #hostnamectl set-hostname station.domain40.example.com #sudo nmcli connection down enp0s3 && sudo nmcli connection up enp0s3

Luca_D

DBrown, why enp0s3? I took the exam and there are two connections, eth0 (active) and enp0s3. I couldn't understand if I had to modify eth0 or add an address to enp0s3. Thanks

dunia

so which connection you have edit on the exam ?

rhcsa_conqueror

For RHCSA 9 we can use nmtui right. I feel this is very easy. Any one please confirm

student_vmware

This dump is valid for Redhat 9? Thanks!

Akira_Goketsu

you can use nmtui it is more faster way, it work for exam version 8

ACM13

"nmtui" is easier to remember and can achieve both goals. "nmcli" is also easy but required a bit more of remembering the right order of the commands for exemple

cloudsinair

RHEL 9.1 root]# root]# hostnamectl set-hostname station.domain40.example.com root]# root]# cat /etc/hostname root]# nmcli connection add con-name MyExam ifname ens224 type ethernet ipv4.addresses 172.24.40.50/24 ipv4.gateway 172.24.40.1 root]# root]#nmcli connection modify MyExam ipv4.dns 172.24.40.1 root]# root]# nmcli connection modify MyExam ipv4.method manual root]# root]# nmcli connection up MyExam root]# root]# nmcli device

duracell

hostnamectl hostname station.domain40.example.com is correct, whithout set-

student_vmware

this dump is valid for Redhat 9? Thanks!

dunia

hello all , in the exam there is two connections which connection we should edit ?the active one ( the first connection ) we modify the existing OR we edit the second connection ? please anyone can answer?

Kengoudy

When ls in the network-scripts, I get readme- ifcfg- rh.txt. Am I suppose to touch ifcfg-etho into network-scripts?

Dewitts68

it has moved. Read the readme for more information. /etc/NetworkManager/system-connections/ <--- is the new location of the config files

thomasstate

after i config, can't ping anymore ist normal?

shubby12

#cd /etc/sysconfig/network-scripts/ #ls

jahmad0730

Do you need mask of 24 in the network-scripts vi? As in... IPADDR=172.24.40.40/24 or IPADDR=172.24.40.40 ???

Ozarsif

yes, you do. otherwise you will get IP of 172.24.40.40/32

SachinRao

vi /etc/hostname station.domain40.example.com