Configure Networking via YaST and Wicked on SUSE Linux Enterprise

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

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.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Use Wicked to Get the IP Address of eth0 and Then Use YaST to Configure the Hostname to Resolve to the eth0 IP Address
  1. Run the command:

    sudo wicked show all

    Take note of the eth0 IP address.

  2. Then use YaST to set the hostname:

    sudo yast
  3. In the ncurses interface, go to Network Services > Hostnames > Add.

  4. Enter the IP address of the eth0 adapter.

  5. Enter the hostname

  6. 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
  1. Read the file, and look for the hostname:

    cat /etc/hosts
  2. Check nsswitch.conf and make sure the dns line is set to files first:

    cat /etc/nsswitch.conf
    hosts:      files dns
  3. Curl the index:


    You should get an index page returned.

Additional Resources

You need to configure a system to resolve to the domain name of your hands-on labs site, so you'll use Wicked to view the network configuration and then configure the resolution of the hostname manually through YaST.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?