From the course: SUSE Linux Enterprise Server Essential Training

Manage networks with Wicked - Linux Tutorial

From the course: SUSE Linux Enterprise Server Essential Training

Start my 1-month free trial

Manage networks with Wicked

- [Instructor] So with SUSE Linux Enterprise Server being with version 12 is we've now got wicked to use for managing our networks. Let's take look at that command. We see that it's got supported commands of ifup, ifdown, and others. If you've used other distributions of Linux or you've used an earlier version of SUSE you would have used ifup and ifdown on their own but they've now been moved underneath wicked so you would use them through wicked. So let's do some of the things we would do before wicked was around but let's show you how we do it with wicked. I'm going to use show all so we can see all of our interfaces. And there we have, if I shift page up we can see that we've got our loopback and then even at zero one two and then our bonded interface. We can check the status of any of these using ifstatus or I can check the status of ethernet zero and it tells me that it's up what its MTU is what its IP address is and we can now take it down using ifdown and it takes it down and makes it ready. We can see if we do wicked ifcheck on ethernet zero that device does exist and then if we compare that with the status we can see that it's unconfigured so let's bring it back up. And that'll take a moment. Let's clear our workspace here and let's take a look at wicked again. Now one of the things that's new with wicked is that it has configuration files in different formats. So it still uses the old configuration files for legacy but internally it can use xml. So if I say wicked show dash xml we will see the xml that was used to configure the interface. Earlier we talked about testing tools like dig and ping and there are tools now in wicked that you can use let me give you an example. If we say wicked and then give it the check command and what we wanna check is to do a name resolution so we'll say resolve what we'll get is the same thing we got before from dig. It'll figure out the IP address based on the host name. And we did a ping to test our network connectivity with wicked now we can use check route and it will tell us if that's reachable. So things like network manager which were used before have been phased out. Commands like ifup and ifdown that were used on their own have now been brought in under wicked. So going forth you're going to wanna use wicked from the command line for making these types of configuration changes.

Contents