Hey, folks, and welcome back.
We have learned all those commands to manage your network.
We have learned the configuration files that you need to remember in order to configure your network.
Now, what we are going to talk about is the network utilities that are available to you that will make
your life a lot easier because now you don't have to remember all those commands, all those configuration
files.
You just need to remember one command that will do a lot of things for you.
So the very first thing is what we will learn in this lecture is getting started with network manager
that's a newer utility that actually provides a network configuration methods, and those methods are
an MTT UI command and MKL command name, dash or hyphen connection dash added a command and the network
utility or network setting through genome or console setting.
These are the different methods that you could use to configure or manage your Linux systems.
Networking.
All right.
Moving on, getting started with network manager.
Manager is a newer tool that replaces your older service or utility.
They are called just the network.
So network manager is a service that provides a set of tools designed specifically to make it easier
to manage the networking configuration on Linux systems and is the default network management service
on Red Hat eight.
So if you are using Red Hat eight, you will see the network manager will be your default service for
your network management.
All right.
What else it gives us?
It makes a network management a lot easier.
As I mentioned, the first slide, you don't have to remember all those configuration, all those commands.
It provides easy setup of connection to the user.
Network manager offers management through different tools such as GWI and MT, UI and MCI, which will
cover one by one later on network configuration methods.
Let's go more deep dive into what are those methods about?
The first one is an MCI, which is short for network manager command line interface.
This tool is useful when access to a graphical environment is not available, and you can also be,
and that can also be used within the script to make network configuration changes.
Now you have all those different commands in the network, but again, if you wanted to use just one
command, you could just simply use an MCI and that's a command line interface.
Then moving on, one of the best utility, the network utility management tool that I see and I found
is an empty UI short for network manager techs, a user interface.
You don't need a guy, you don't need a console.
You could use that same command on your command line.
This tool can be run within any terminal window and a lot.
And sorry, I meant to say this tool can be run within any window terminal and allows changes to be
made by making menu selection and entering data.
Then the next tool or command is named Dash Connection.
Dash Editor.
It's a full graphical management tool providing access to most of the network manager configuration
options.
It can only be access to the desktop or console.
So when you run this command on the putty, for example, you're not going to see anything.
So you could only run this command on the go.
Then we have genome setting the network screen of the genome desktop setting application allowed.
Basic network management has to be performed, which is like as if you are going into console and on
the top right side there's a field, you could click on it or go to the utilities.
Anyway, I'll cover that later on as well.
All right, let's go.
Let's do some practice on our Linux machine.
So first thing is, I have my Linux machine right here, which I named it Linux seven.
You probably have it as my first Linux VM.
It doesn't really matter.
So let's say if you are using my first Linux VM, then pick that one.
I'm going to for this video.
I'm going to use a different VM for myself, but for you I would say use my first Linux VM power that
VM off just like this.
It is powered off.
Go ahead and take a snapshot.
Make sure you take a snapshot any time you make any changes to your configuration files.
Take and a name, anything.
Let's say you want to name snapshot or second snapshot, whatever that you want, put it in or you want
to put a date.
That is fine as well.
Click.
Okay.
It is going to take a snapshot.
All right.
3 seconds ago, snapshot is done and it is a lot faster because your system is powered off.
Now I want you to go ahead and click on details, go click on settings.
And go to network click on adapter to.
And check mark enable network adapter.
Now, for those of you who have this enabled network adapter already, because we did the network bonding
previously in the previous sections, then you what I would say is go ahead and remove the network adapter
again because we are going to do the network bonding through these newer tools.
Now you don't have to manually add in or modify the configuration file.
We will use these new tools to do the bonding clicked on adapter number two, then checkmark enable
network adapter attach to to bridge adapter and click.
Okay.
Now my system will have two network adapters.
Go ahead and click on Start.
Log in as route.
Okay.
So the very first thing is what I will do on this box is I will go through the NHM T UI utility and
they will cover the NMC utility later on.
So T, you are again network manager tool or text user interface.
All right.
Let's try and MM2 I before I do that, let's do if config to see the, the adapter that we added it's
there.
So I did if config and I do see the network adapter end 0s3 is here.
I have a different IP.
I'm using a different router now.
It doesn't matter if you are using one 9 to 168 IP, that's still fine.
And then the other one, I have this in P zero se three.
Both of them are active because both of them have assigned IP.
So what I need to do is first I need to make this deactivate so this only one can be active.
All right, go ahead and type it in.
And M Tech's UI.
Okay.
As soon as you enter, you'll see it's a text editor that will open up.
It looks like a gooey, but they call it a text user interface.
Now, I want you to see right here it says Select an option.
The first one is added a connection, which would be by picking up a select existing connection.
Second one, activate a new connection.
And the third one set system hostname.
So if you wanted to change your system hostname, you could change it here as well.
So let's go ahead and first click on Edit a connection and you'll notice right here it says Wired Connection,
Connection one.
This is the one that's been added to my system for INP 0s3 So I will select that, move my cursor to
the right and I'll go and click on Delete and it will ask us to confirm and go ahead and click Delete.
Now that is gone.
Now it only has ENP zero SE three and virtual adapter.
Just ignore the virtual adapter, go move your cursor to the right and then come down, click back,
hit enter, move your cursor down, click on quit and hit enter okay now I want you to do is to if config
again and let's do more.
So we will see one page at a time and you will see we do have both adapters, this one and that one,
but now only one is active with IP and the other one does not have an IP.
Good.
One thing is done.
Now what I want you to do is I want you to create bonding the same way we did.
But in previously we created the network bonding by actually putting in all the information manually
into the configuration file.
And now what are we going to do is we are going to create bonding and we are not going to assign any
IP, we're not going to give any static IP.
We will let the system pick over DHCP, but at the same time also make these two network adapters as
a bond.
Now before I go into a bond, I want to discuss one more thing.
There's a new tool that is that actually replaces Bond, which is called team.
You could use either Bond or you could use team.
Both of them perform the same function.
It lets you put both of your network adapters together and make them redundant for each of them.
But for this method, I'm going to use the team instead of bonding because Bond, you already know how
to do it.
Okay.
So first thing is, I want to show real quick, this is my IP.
What I'm going to do is I'm going to go to my putty session and I'm going to type it in that IP address.
10.2 50 3.1. 59.
Enter root.
Put in the password and here you when you type C, this is a terminal, it's a command line terminal.
It's not a gooey.
But the beauty here is you can also run an empty UI right here on this guy and it will give you the
same menu as it is giving you right here on the go so you could do it here or either here.
I will do it here because while I'm going to go through creating a team or bonding, I'm going to lose
network connection.
So if I lose network connection, I'm going to lose the putty session as well.
So it's better I'll quit out of that and I will only use just this console.
All right.
I'm going to go and type it in T and.
NMT UI again and added connection and I want to delete this ENP zero S3 to meaning not completely deleting
but deactivating.
So this way when I creating the network theming then I could add both of these adapters and then activate
them.
So selected.
Move your cursor to the right click delete and delete confirmed.
Okay, so now Ethernet bridge adapter is there.
If it shows up again, click simply click delete.
Now you see it's gone now move your cursor right click black back and then quit.
Now if you do if config you will see the both adapters are there ENP zero SE three and eight, but doesn't
have an IP because I deleted them.
So if you see I have my putty connection that is also gone.
That's why I was using the console.
So let's close this window now.
Let's go back and type in UI again and let's create the team for that.
What we'll do is edit a connection, move to the right and you see right here says ADD and right here,
select the type of connection you wish to create.
And I wanted to create a bond which I'm not using because it said a bond is an older version.
We'll use a newer version which is team move down.
And right here it says team hit enter.
It's asking, what is the profile name?
What is what do you want to call that team?
We created?
We chose a bond one previously same thing.
We'll chose team one for this device and the team will leave that as is.
Hit tab to come down.
And right here says team slaves.
Now pick those network adapters that you want them to be part of this team.
So hit tab again.
I will move to add and hit enter and now select the type of slave connection you wish to add.
We are selecting the Ethernet now because those inputs are as three and eight are on Ethernet hit.
Enter on Ethernet profile name.
I will pick the profile name same as my network adapter name E and P zero se three device is the same
E and p zero se three and I could assign an IP to make it static IP.
But since we are just doing this in the lab, we'll just leave it as is and on the DHCP.
But if you do want to assign IP, you could right here it says edit no, sorry.
We will go back and assign IP in the next section.
I'll show you in a second if you wanted to create a static IP.
So just here, simply go ahead and click.
Okay.
So end zero is three added.
Now go back and click add again because you want to add it to network adapters ethernet.
I want to call it the net.
BNP zero SE eight devices.
BNP zero eight.
Eat the net show.
This is if you want to specify the Mac or clone, but it will pick up from the device name itself.
Come down and click.
Okay.
Now you'll see.
I have both of these added to this team one here where I say IPV configuration right now it's automatic.
Now if I want to assign a static IP to this team adapter, I could enter and change it to Manuel.
When I hit Manuel, then it will come down and when I click here, I here show.
Come down right here in the show.
You will have this IP address.
If you have already IP address that you want to assign, type it right here, gateway DNS search domains
and all the information that you need that we were adding it previously into those configuration files.
Now you just have to add them right here and it will add those that configuration that parameters for
you into those configuration file.
Anyway, go back.
We don't want to have a static IP, we want to leave it DHCP, therefore we are going to keep it automatic.
All right, let's come down.
Automatic lead and hide this information.
So now IPV four configuration is automatic, IPV four, six configuration is automatic, but we are
not using that.
Make sure automatically connect is checked available to all user is checked.
Go ahead and click.
Okay, beautiful.
Now you see you have a right here, team one.
This is your team adapter that has both of your other adapters, N.P. zero three and SE eight.
And I want you to move your cursor to the right and come down and hit back.
And go ahead and click Quit now.
And when you do if config and pipe it to more you will see in p zero S3 has no IP address in p08 has
no IP address.
Then come down right here.
This is your team, network team.
This one tells you it has given this IP address.
10.2 50 3.1. 59.
Or maybe in your case, if you're using a different router, which we will use using it earlier, you're
going to see 1921681. whatever.
And then it's telling you the Ethernet, the information that it has to be its network teamed.
Okay.
Now do we?
Let's verify if I could use that IP to log into this machine.
So this way we will know that team really works.
So what I'll do is I'll go into a party session and I'm going to type it in that IP 10.2 53.1 5059 bingo.
See, I got there the login prompt.
And there it is.
I have my command prompt so it means it works.
Okay, so that's pretty much how you could use an UI command.
There are other commands, sorry.
Other functionality within the UI that you could use, which is to activate the system, which is a
set system hostname.
Or if you go back again to edit a connection and let's say if I want to add a new connection then I
have these different options via fi, bond, bridge, IP, TLD, and there are so many other functionality
that you have within that NMT UI.
I'm going to cancel this and I'm going to cancel this and quit out of this.
Okay.
Now I'm going to minimize this castle thing and I'm going to go to my command line and this right here
now I'm going to show you the other command and M.C..
Now, for those who don't want to use an empty UI, which I don't know why you wouldn't use that, then
you have another option, which is a command line.
So if you do see a lot sorry an m cli you will see your teams, your network adapters, what kind of
information it has, its IP address, what IP is assigned.
And there are other options that you could use with.
An MCI, for example, MCI con for connection show and it will show you all three connections enp s
three SE eight and virtual bridge adapter.
These are the actual physical or in our case virtual.
And this is the team that we created on top of these two adapters.
Okay.
So now let's go ahead and use an MCI utility to configure or assign a static IP to a Linux machine.
And here are the list of commands that we will use to assign a static IP that includes assigning the
IP, the gateway, the net mask, sorry, not net mask, the DNS and restarting the network interface.
All right.
So let's go to one of our Linux machine.
I'm going to one of the Linux machine, which I do not have the network bonding.
Or you could revert back to your original snapshot anyway.
Just simply type if config and just make sure you have just one interface which is in P zero SE three
right now just for this purpose or this exercise, I'm using Linux Santas version nine.
But again, it doesn't really matter which version you are using.
What matters is that we will learn how to assign a static IP using NMC.
All right, so let's clear the screen.
Let's type NMC alloy device.
This will give us the list of network interfaces.
Let's type an MCI connection modify because we are modifying E and P zero SE three and what we are modifying
via modifying its IPv4 addresses.
Space and then the IP address.
10.2 50 3.1.2 11.
Now this is an IP address that I picked at random.
It's just an arbitrary IP.
I just made sure before I picked that that this IP is not assigned to any other device within the network
that I'm working on.
So first, make sure that if it is payable, if ping it, if it's peggable, then pick another IP.
All right.
So anyway, slash 24, which is which will make a note of a subnet mask.
The subnet mask that I wanted to use is slash 24 hit enter.
Perfect.
Now let's go ahead and assign the gateway.
Just simply hit up arrow key and it will bring you back this last command.
Replace the addresses with Gateway Space, the gateway IP address which is 10.2 50 3.1.1.
Nice.
Now let's go ahead and change the method to Manuel.
Okay.
Let's go ahead and assign a DNS.
8.8.8.8.
All right.
Now let's go ahead and reset the network interface, which is an McCloy connection down E and P zero
SE three.
And then you'll notice I have AMP percent here, which is basically if I want to run this entire command
up and down in one line, then I could use an percent or this and sine or you could use just one command
at a time.
So let's run one command at a time.
Let's do it down first.
All right.
Successfully deactivated.
Now let's use up.
To bring you back up.
All right, so connection successfully activate it.
Excellent.
Now, let's see if it has actually assigned the IP address that I wanted.
So IP address, show E and p0s3.
And there it is.
It has assigned the static IP.
All right.
Now, that's how you could use an MCI.
If you remember all these commands, it's a lot easier to simply assign a static IP to your Linux machine.
Now and the next slide, what we will learn is what if you wanted to add a secondary static IP using
the same utility?
Yes, it's just that simple.
You will not going to disturb the existing configuration that we just put it in place.
We could just simply add on top of that.
All right.
So let's go back to our Linux machine, clear the screen type, NM CLI device status to check the status.
It is connected.
Right here is the device and McFly connection show.
This will show me only the active one by the way, type dash dash active right here I have just one
dash is just because the PowerPoint slide or PowerPoint software change it.
Dash.
Dash to one dash.
But be sure to use two dashes.
All right.
Hit active.
Sorry, hit enter.
And it will show you the active interface of your Linux machine.
Nice.
Now if config, just to make sure that it has a primary ip assigned.
Yes, it does.
That be assigned just now.
Now we are going to assign a new IP and for that McFly connection modify in p zero se three.
Now use a plus sign because we are adding on top plus IPV four dot addresses space.
Now the IP, which is a secondary IP.
Slash.
Of course, that is for those people who actually have a secondary network in their environment.
If you are using your home network, then most likely you do not have a secondary network environment.
But you could practice along with me just to learn how a secondary IP can be assigned in case you would
have to do that in a corporate environment.
All right.
Let's go ahead and enter.
And it has assigned it.
Now you need to reload then NMC connection, which is same as if you would do an MCI connection down
the interface.
Or you could use this command.
All right, that is loaded.
Okay, now you have to reboot your system to have that secondary IP assigned.
You could do just system CTRL reboot or just simply type reboot.
All right.
The reboot will take a few minutes.
I'm going to fast forward and we will come back.
We'll run this command to confirm that we have gotten a secondary IP added to our E and P zero SE three.
Okay.
So we have our Linux machine back online after the reboot.
Now type IP address show, right here is your interface.
The very first IP that you assigned was 10 to 50 3.1 to 11.
Right.
Secondary IP that you assigned is ten zero 0 to 11.
There you have it.
You have both IP assigned on the same and network interface.
Beautiful.
Now you know how to use an SLI utility to do your netbook configuration.
All right.
The next tool that I wanted to talk about is and I'm connection editor.
So that is only and only available on your Google.
It's not going to work here on this terminal.
Terminal.
So let's go back to our Google.
Let's clear the screen.
And this time let's type an m dash connection hit tab and it will autocomplete for you and hit enter.
Right here.
You see, this is a this Greek window looks exactly the same as if you are running the nmt ui right
here.
So if you wanted to make any changes to the existing network connection, for example, team one, you
could select it, click on configure or settings.
You could remove that or add a new one.
So let's say if I wanted to modify this one right here, team one, the settings right here, the team,
the network connections, the adapters that we added are zero three and zero eight IPV setting DHCP.
Same thing.
If you wanted to change it to the static, then you could change it to manual and sign the IP address.
Go ahead, click across on top.
Right.
So you could close a window if you wanted to add a new connection, you could do choose a connection
type.
Here you have if you notice closely, you also have the same option that you had on Mt UI.
See right here you could create a team using this guy as well as this one.
So it's pretty much the same, but it's a little easier for those who like to do in the GWI.
But of course, as I always say, in corporate environment, you are not lucky enough to have these
goofy windows or GUI at all, so that's why I stick to an empty UI.
So let's close this window.
And the last one I want to cover is genome settings.
The genome is your desktop right here.
See, this thing is your desktop.
So.
Let's see.
If you go to the application.
And go to system utilities.
And the system utilities you're going to see either here or maybe system tools.
Let's go to system tools and go to settings.
Yes, right here in the settings.
Now, this is the genome settings.
Here you have a FI settings you can modify or you could come down and right here you see network.
This is where you could change your network as well or modify your network the way you want.
You go to settings or you add adapter, remove adapter, anything you want to do, but this is only
available to you if you have this genome desktop.
Again, coming back to the same thing, most likely you're not going to have in corporate environment.
So once again, stick to an empty UI.
All right.
So I hope this this lecture, this entire lecture gives you a lot of information about not having to
remember all those configuration files.
All you have to do is simply use the NMT UI command, which is a newer one, and it is widely available
on Red Hat eight and you should be using this one instead of modifying the configuration file manually
by yourself.
Okay.
So.
Remember we created a snapshot.
Now, what I want you to do is shut down this machine.
And this will give me an error message.
The system is going down.
Let's close this to.
Okay.
Let's close this.
Power of the machine.
And right here it says restore current snapshot to second snapshot.
So go ahead and click this one.
Okay.
Here's another thing to remember.
We created we we went to the settings and we added a network adapter.
Now it's unchecked.
The reason it's unchecked, it's because we revert back to our snapshot.
So go ahead and delete that snapshot.
Delete.
It's gone and go ahead and start your machine just to make sure you do have NPC three and it is active,
enabled and up and running.
Okay.
We just did if config and I notice the MP three is there MP 0s8 is gone and as three is has an IP address
and it's available up and running.
Beautiful.
I'll see you in the next lecture.