Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Exam EX200 topic 1 question 1 discussion

Actual exam question from RedHat's EX200
Question #: 1
Topic #: 1
[All EX200 Questions]

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 -

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
# cd /etc/syscofig/network-scripts/
# ls
# vim ifcfg-eth0 (Configure IP Address, Gateway and DNS) IPADDR=172.24.40.40

GATEWAY=172.24.40.1 -

DNS1=172.24.40.1 -
# vim /etc/sysconfig/network
(Configure Host Name)
HOSTNAME= station.domain40.example.com

OR -
Graphical Interfaces:
System->Preference->Network Connections (Configure IP Address, Gateway and DNS) Vim /etc/sysconfig/network
(Configure Host Name)

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
QuangTruong
Highly Voted 1 year, 9 months ago
#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
upvoted 12 times
xXxM__JxXx
5 months, 1 week ago
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.
upvoted 2 times
eddiemy
4 months, 1 week ago
Either way using ifdown eth0;ifup eth0 or nmcli conn up eth0
upvoted 2 times
...
...
...
PERjham
Highly Voted 1 year, 6 months ago
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!
upvoted 9 times
...
SachinRao
Most Recent 1 week, 4 days ago
vi /etc/hostname station.domain40.example.com
upvoted 1 times
...
crystal_star
2 months, 3 weeks ago
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
upvoted 3 times
feidhlimx
2 months ago
hostnamectl without admin privileges is ok. Does the nmcli command also work in this way?
upvoted 1 times
...
...
mattd81
3 months ago
Is this question asking you to add these settings to your current network or create a new network name with those settings to use? I'm confused it it would need to be modified or an addition like "+ipv4.address"
upvoted 1 times
...
2022G
3 months, 2 weeks ago
can we do => vi /etc/resolv.conf ?
upvoted 1 times
...
onyeo
10 months, 2 weeks ago
I had network config issues while taking ex200 exam. I used the exam provided addresses for ip dns, gateway, nameserver and netmask but I was unable to connect my VM1 and VM2 via nmtui or nmcli tools. All address entries were correct but the VMs failed to connect with this error "172.24.1.10 icmp_seq=1 Destination Host Unreachable" I have done a couple online research but I truly don't know what I am missing or getting wrong. I have tried re-create the error on my home lab but I failed. Sorry to bother you, What recommendation/resolution can be used to fix this issue. I want to retake the exam. Thank you.
upvoted 2 times
STFN2019
10 months, 2 weeks ago
It could be the routing issue or the firewalld.
upvoted 1 times
...
...
Joeytechn9t
1 year, 2 months ago
#cd /etc/sysconfig/network-scripts/ #ls #vim ifcfg-enp0s3 IPADDR=172.24.40.40 PREFIX=24 GATEWAY=172.24.40.1 DNS1=172.24.40.1 #nmcli connection down enp0s3 && sudo nmcli connection up enp0s3 # hostnamectl set-hostname station.domain40.example.com
upvoted 2 times
...
nickoftime
1 year, 3 months ago
i hostnamectl set-hostname station.domain40.example.com and if u using netowork manager.... nmcli connection modify ens33 ipv4.addresses 172.24.40.40/24 ipv4.gateway 172.24.40.1 ifname ens33 ipv4.method manual autoconnect yes
upvoted 1 times
...
lordwhisss014
1 year, 4 months ago
you can edit it /etc/sysconfig/networkscripts/ifcfg-nameofconnection this is applicable on rhel8
upvoted 1 times
ASherbiny_1604
1 year, 2 months ago
It is not a recommended way to edit the network-scripts file, it is better to use nmcli or nmtui
upvoted 1 times
...
...
Leepipes101
1 year, 5 months ago
# nmcli con add type ethernet con-name anyname ifname ensXXX or ethX ip4 XXX.XXX.XXX.XXX/XX \gw4 XXX.XXX.XXX.XXX # nmcli con modify nameofconnection +ipv4.dns XXX.XXX.XXX.XXX # hostnamectl set-hostname nameofhost # nmcli con up nameofconnection or # systemctl reboot or # systemctl restart NetworkManager or # nmtui or from the GUI
upvoted 2 times
...
Afraaaahh
1 year, 5 months ago
can we not use nmtui command for this ??
upvoted 3 times
...
DANG257315
1 year, 7 months ago
* hostnamectl set-hostname station.domain40.example.com * nmcli con add con-name wifi type ethernet ifname enp0s3 ip4 172.24.40.40/24 gw4 172.24.40.1 ipv4.dns 172.24.40.1 para comprobar hostname ip a
upvoted 3 times
...
RedQuasar
1 year, 8 months ago
hostnamectl set-hostname station.domain40.example.com nmcli con add type ethernet con-name eth0 ifname eth0 ipv4.addresses 172.24.40.40/24 ipv4.gateway 172.24.40.1 ipv4.dns 172.24.40.1 nmcli con mod eth0 ipv4.addresses 172.24.40.40/24 ipv4.gateway 172.24.40.1 ipv4.dns 172.24.40.1
upvoted 3 times
...
Nhan
1 year, 10 months ago
the given answer is not correct, for the redhat 8 you must use the systemctl set hostname to set the hostname or modify the hostname by vi /etc/hostname file... Please be carefull i have seem nay question in here is not for redhat 8, also some of the question are given wrong answer or not completely relevant to redhat 8.0. They might work for rehat 7,
upvoted 3 times
...
Moonss9870
1 year, 11 months ago
can someone please help me to know that, by ONLY using this dump can I able to crack RHCSA version 8 exam, or any extra thing do I have to prepare? or there is any changes in questions or any particular changes in regards with RHEL 8 VERSION as compare to RHEL 7? Please let me know who have passed RHEL8 using this dumps..
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...