Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.
Actual exam question for RedHat's EX200 exam Question #: 5 Topic #: 5
Configure Network Settings Configure node1 with the following network settings: Hostname: node1.domain250.example.com IP address: 172.25.250.100 Subnet mask: 255.255.255.0 Gateway: 172.25.250.254
Suggested Answer:
# Connect to servera via console for IP modification, then check using the ip addr command. # After confirming no issues, SSH to servera for hostname modification. This way, you can copy the hostname to avoid typos. [root@clear ~] nmcli con show [root@clear ~] nmcli con mod 'network configuration name' ipv4.method manual ipv4.addresses 172.25.0.25/24 ipv4.gateway 172.25.0.254 ipv4.dns 172.25.0.254 autoconnect yes [root@clear ~] nmcli con up 'network configuration name' [root@clear ~] ip a [root@clear ~] ssh [email protected] [root@clear ~] hostnamectl set-hostname red.lab0.example.com # Verification [root@node1 ~] ip a //Check if the IP is correct [root@node1 ~] hostname //Check if the hostname is correct
1. Set the Hostname First, set the hostname of the system using the following hostnamectl command: sudo hostnamectl set-hostname node1.domain250.example.com 2. Configure the Static IP Address Now, configure the IP address using nmcli. You need to identify the network interface you want to configure (usually eth0, enp0s3, or similar). You can list the available network interfaces with: nmcli device Then, configure the IP address, subnet mask, and gateway for the interface. Replace enp0s3 with the actual name of your network interface. sudo nmcli con mod enp0s3 ipv4.addresses 172.25.250.100/24 This command sets the IP address 172.25.250.100 with the subnet mask 255.255.255.0 (CIDR /24). 3. Set the Gateway Next, set the default gateway to 172.25.250.254: sudo nmcli con mod enp0s3 ipv4.gateway 172.25.250.254 4. Enable IPv4 and Set Method to Manual Ensure that IPv4 is enabled and set the method to manual to disable DHCP: sudo nmcli con mod enp0s3 ipv4.method manual 5. Restart the Network Interface Finally, apply the changes by restarting the network interface: sudo nmcli con down enp0s3 && sudo nmcli con up enp0s3 6. Verify the Configuration To verify that the IP address and gateway have been correctly applied, use the following commands: ip addr show enp0s3 Check that the IP address 172.25.250.100 is assigned. Also, verify the default route: ip route show This should show the gateway 172.25.250.254 as the default route. 7. Verify Hostname To verify that the hostname has been set correctly, run: hostnamectl This should display the hostname node1.domain250.example.com.
upvoted 1 times
...
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.
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up / login
(it's free).
Comments
whitebeard pirate
2024-12-22 11:58:04ubiquituz
2024-11-25 10:07:34Set the Hostname
First, set the hostname of the system using the following hostnamectl command:
sudo hostnamectl set-hostname node1.domain250.example.com
2.
Configure the Static IP Address
Now, configure the IP address using nmcli. You need to identify the network interface you want to configure (usually eth0, enp0s3, or similar). You can list the available network interfaces with:
nmcli device
Then, configure the IP address, subnet mask, and gateway for the interface. Replace enp0s3 with the actual name of your network interface.
sudo nmcli con mod enp0s3 ipv4.addresses 172.25.250.100/24
This command sets the IP address 172.25.250.100 with the subnet mask 255.255.255.0 (CIDR /24).
3.
Set the Gateway
Next, set the default gateway to 172.25.250.254:
sudo nmcli con mod enp0s3 ipv4.gateway 172.25.250.254
4.
Enable IPv4 and Set Method to Manual
Ensure that IPv4 is enabled and set the method to manual to disable DHCP:
sudo nmcli con mod enp0s3 ipv4.method manual
5.
Restart the Network Interface
Finally, apply the changes by restarting the network interface:
sudo nmcli con down enp0s3 && sudo nmcli con up enp0s3
6.
Verify the Configuration
To verify that the IP address and gateway have been correctly applied, use the following commands:
ip addr show enp0s3
Check that the IP address 172.25.250.100 is assigned. Also, verify the default route:
ip route show
This should show the gateway 172.25.250.254 as the default route.
7. Verify Hostname
To verify that the hostname has been set correctly, run:
hostnamectl
This should display the hostname node1.domain250.example.com.
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.
Report Comment
Commenting
You can sign-up / login (it's free).