- Lab
- A Cloud Guru
Configure Networking via YaST and Wicked on SUSE Linux Enterprise
In this hands-on lab, we will be working with networking using YaST and Wicked. This is something every admin should know, and the steps in this lab are especially important to know in a DevOps scenario.
Path Info
Table of Contents
-
Challenge
Use Wicked to Get the IP Address of eth0 and Then Use YaST to Configure the Hostname handsonlab.net to Resolve to the eth0 IP Address
-
Run the command:
sudo wicked show all
Take note of the eth0 IP address.
-
Then use YaST to set the hostname:
sudo yast
-
In the ncurses interface, go to Network Services > Hostnames > Add.
-
Enter the IP address of the eth0 adapter.
-
Enter the hostname handsonlabs.net.
-
Save and exit out of YaST.
-
-
Challenge
Verify that DNS Resolution Is Set Correctly in `nsswitch.conf` and That Changes Are Present in `/etc/hosts`, and Verify with Curl
-
Read the file, and look for the hostname:
cat /etc/hosts
-
Check
nsswitch.conf
and make sure thedns
line is set tofiles
first:cat /etc/nsswitch.conf hosts: files dns
-
Curl the index:
curl handsonlabs.net
You should get an index page returned.
-
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.