- 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.
Table of Contents
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:
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.
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:
nsswitch.confand make sure the
dnsline is set to
cat /etc/nsswitch.conf hosts: files dns
Curl the index:
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.