Network Connection Management Tools (Demo)

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
21 hours 25 minutes
Difficulty
Intermediate
CEU/CPE
21
Video Transcription
00:00
>> Hello Cybrarians, and welcome back to
00:00
the Linux Plus course here at Cybrary.
00:00
I'm your instructor Rob Giles.
00:00
In today's lesson,
00:00
we're going to discuss
00:00
network connection management tools.
00:00
Upon completion of today's lesson,
00:00
you're going to be able to use the nmcli command
00:00
as well as the nmtui command,
00:00
and you'll understand when to use one over the other.
00:00
Let's get to it with some demo time.
00:00
In today's lesson, we are going to be
00:00
hearing CentOS again.
00:00
Now let's talk a little bit about network manager.
00:00
Most modern Linux distributions use network manager.
00:00
We saw that in [inaudible] where a lot of
00:00
the network configuration was
00:00
actually stored in network manager,
00:00
and it's used for the detection and
00:00
management of network connections.
00:00
Now, the nmcli command
00:00
is used as a command line tool
00:00
to configure and work with network manager.
00:00
Nmcli can be used to manage network connections,
00:00
specify devices, work with
00:00
specific devices or enable
00:00
and disable network monitoring.
00:00
One thing we can do right of that is just do
00:00
an nmcli connection show.
00:00
This will show us the connections
00:00
that we have setup on the system.
00:00
We can do an nmcli device show.
00:00
In fact, nmcli uses tab completion so we can just hit
00:00
dev tab and then we'll complete the command for us.
00:00
We'll use nmcli device show.
00:00
Now, you can see all of
00:00
the device statistics about
00:00
each of the devices on the system.
00:00
The other thing we could do with nmcli is something
00:00
called nmcli device status.
00:00
Same as we did before.
00:00
We can see nmcli device status.
00:00
Just type in St and hit Tab.
00:00
Nmcli uses tab completion.
00:00
If you get lost,
00:00
just hit Tab a few times and
00:00
see all the options. Here we go.
00:00
This is the status of our connections,
00:00
and what we have on the system,
00:00
and whether they're up or connected, unmanaged, etc.
00:00
Let's move on to our next command for
00:00
today's lesson and that is the nmtui command.
00:00
Now, nmtui as you can see is a text-based interface.
00:00
A text-based interfaces used
00:00
for configuring network manager.
00:00
It's somewhere between a command line interface
00:00
and a full-blown GUI.
00:00
You navigate using the keyboard,
00:00
so we can just go up and down from here.
00:00
We could say change
00:00
the system host name from CentOS 8 to CentOS.
00:00
I could do that and I click Cancel.
00:00
But that's what we could do with that.
00:00
You can configure network settings in
00:00
the same way as you can with nmcli.
00:00
However, as we just saw,
00:00
you have to step through a menu.
00:00
If we want to edit connection,
00:00
we go to specify the connection,
00:00
then we got to specify that we want it to be IPV4,
00:00
do want to go to IPV6.
00:00
It's a little more
00:00
intuitive to do this if
00:00
you can't remember nmcli commands,
00:00
but it does take longer.
00:00
I used nmtui when I took
00:00
the Red Hat Certified System Administrator exam
00:00
because I had forgotten how to
00:00
configure something at nmcli.
00:00
Nmtui is really good and it helped
00:00
me on the RHCSA exam when I forgot to
00:00
configure something or how to configure something using
00:00
nmcli and that's what
00:00
I would recommend it for everyone else.
00:00
Well, let's get out of here.
00:00
Back and quit.
00:00
There we are. We are back at our command line window.
00:00
Which is better, nmcli or nmtui?
00:00
Well, neither command is better than the other command.
00:00
For speed purposes,
00:00
if you are able to memorize nmcli commands,
00:00
it will be faster, will be easier.
00:00
But if you cannot recall how to do something from
00:00
nmcli and you don't want to keep
00:00
guessing by hitting Tab and doing tab completion,
00:00
nmtui may be a better bit.
00:00
Both commands are mentioned in the Linux plus objectives.
00:00
Make sure you know what they are and when they would be
00:00
used and know some common nmcli commands,
00:00
they'll definitely come in handy.
00:00
But with that, we've reached the end of today's lesson.
00:00
In this lesson, we covered
00:00
the nmcli and nmtui commands,
00:00
and we talked about the benefits and
00:00
downsides of using each command.
00:00
Thanks so much for being here.
00:00
I look forward to seeing you in the next lesson.
Up Next