1
00:00:00,000 --> 00:00:17,640
Hey guys and welcome back. So the next thing that we have to understand for the purposes

2
00:00:17,640 --> 00:00:25,400
of the L-PIC 2 objectives is the general concept behind the Network Manager utility. Now quite

3
00:00:25,399 --> 00:00:32,320
honestly if you happen to be using a modern Linux based system chances are that the network

4
00:00:32,320 --> 00:00:39,159
configuration happens to be handled by this very utility Network Manager. So realistically we

5
00:00:39,159 --> 00:00:45,959
actually have a particular daemon and it is called well Network Manager all one word. Now what

6
00:00:45,959 --> 00:00:53,079
this daemon actually does it simplifies the process of network configuration. It allows things to be

7
00:00:53,079 --> 00:00:59,119
handled automatically but when you have to make a particular configuration change and that change

8
00:00:59,119 --> 00:01:05,280
may be related to maybe your Wi-Fi connection or your Ethernet connection you will be able to make

9
00:01:05,280 --> 00:01:12,519
this change like I say any simplified way without unnecessary complication. Now we can actually

10
00:01:12,519 --> 00:01:19,879
install a Network Manager. Let me show you how we just used to do it install network hyphen manager

11
00:01:19,879 --> 00:01:25,599
and we'll hit enter type in my password. There we go. I'll say yes. Now when we happen to have

12
00:01:25,599 --> 00:01:32,519
Network Manager installed we're going to have access to a particular tool called NMCLI the

13
00:01:32,519 --> 00:01:38,319
Network Manager command line interface and this is going to allow us to be able to easily inspect

14
00:01:38,319 --> 00:01:44,560
information relating to our networking devices as well as to make particular changes to those

15
00:01:44,600 --> 00:01:50,040
devices as well. So check this out. Let me show you some of the commands that we can use. We could

16
00:01:50,040 --> 00:01:58,760
say NMCLI and just say the word dev for device. If I hit enter we get this nice short truncated

17
00:01:58,760 --> 00:02:05,079
output relating to our networking interfaces. So we can see here on the left we see the device

18
00:02:05,079 --> 00:02:10,599
which in this case is my Ethernet interface. We can tell it is an Ethernet interface because the

19
00:02:10,639 --> 00:02:16,879
type tells us this right here. We know the state is connected and we actually have a connection

20
00:02:16,879 --> 00:02:23,879
name here wired connection one. We also can see that we have our L O device. This happens to be a

21
00:02:23,879 --> 00:02:30,919
look back interface and this is unmanaged. Now if we actually want to see more detailed information

22
00:02:30,919 --> 00:02:39,359
we could say NMCLI device show now if I hit enter we're getting a lot more information say for

23
00:02:39,360 --> 00:02:46,080
example here we have one block here this relates to my Ethernet connection and then the same type

24
00:02:46,080 --> 00:02:52,400
of information is available for the look back interface. So if we happen to look at this one

25
00:02:52,400 --> 00:02:57,000
here we can see the name of the interface. We can see the type. This is similar to what we just

26
00:02:57,000 --> 00:03:02,440
saw before but notice now we can also see the MAC address relating to this interface. We can see

27
00:03:02,439 --> 00:03:09,280
the MTU configuration. We can see the connection name as well as our IP address or actual gateway.

28
00:03:09,280 --> 00:03:15,319
We have our routing configuration such that we can see a default route i.e. if we do not have a

29
00:03:15,319 --> 00:03:24,039
particular route this will match all destinations and our next hop will be indeed 192.1680.1

30
00:03:24,039 --> 00:03:30,159
which happens to be our default gate. We simply put the root configuration is that for any routes

31
00:03:30,199 --> 00:03:36,680
we do not know what to do with just send it to the default gateway. We can also see we have DNS

32
00:03:36,680 --> 00:03:43,840
configuration here one server and below we have a second server as well as IPv6 information as well

33
00:03:43,840 --> 00:03:50,639
and if we look on down similar information is available for our look back interface. Now another

34
00:03:50,639 --> 00:03:56,960
command we can do is NMCLIcon. This is going to allow us to see our active Ethernet interface. We

35
00:03:56,960 --> 00:04:03,620
get the name but this also presents to us the UUID the universally unique identifier for this

36
00:04:03,620 --> 00:04:09,120
particular interface connection. Now the fact that we happen to see this name we can actually use

37
00:04:09,120 --> 00:04:16,280
this name and make changes to that particular interface. Say for example like I say we wanted

38
00:04:16,280 --> 00:04:22,000
to pull this interface down. What I could do is say sudo because we're going to make an actual

39
00:04:22,000 --> 00:04:29,120
change we need super user privileges I'll say NMCLI and then I will say con but as opposed to just

40
00:04:29,120 --> 00:04:35,959
hitting enter here instead what I'm going to do is I'm going to specify the command down to bring

41
00:04:35,959 --> 00:04:41,319
the particular interface down. Now what interface do I want to bring down? I want to bring down

42
00:04:41,319 --> 00:04:48,480
wired connection one which we can see right here. So within my inverted commas I will say wired

43
00:04:48,800 --> 00:04:55,200
connection one and if I hit enter what is going to happen is that this interface is going to drop

44
00:04:55,200 --> 00:05:02,840
and this is the interface to which I am connecting to over SSH. So now we can see here my SSH

45
00:05:02,840 --> 00:05:07,200
connection has been terminated. So what I'll do is I'll go to the actual machine open this up

46
00:05:07,200 --> 00:05:14,200
log in and I'll go directly to the terminal. So now what I'll do is I'll say sudo NMCLIcon up this

47
00:05:14,279 --> 00:05:21,120
time I'll type in the same name wired connection one and hit enter I'll have to type in my password

48
00:05:21,120 --> 00:05:26,560
of course there we go. Now we can see here on the right hand side the connection has been

49
00:05:26,560 --> 00:05:34,439
reestablished. So using the NMCLI tool will allow us to invoke network manager which can handle and

50
00:05:34,439 --> 00:05:40,879
simplify our network configurations. Now if we want to get hands-on and make manual changes we can go

51
00:05:41,000 --> 00:05:48,319
in using this tool and by using the NMCLI command we can easily display the status of our network

52
00:05:48,319 --> 00:05:54,199
interfaces or if we so choose we can make modifications quite easily using this tool via

53
00:05:54,199 --> 00:06:00,439
the command line and alter the state of our network connections. This may be our ethernet

54
00:06:00,439 --> 00:06:06,319
connection this may be be our Wi-Fi connection using the NMCLI tool we're going to be able to have

55
00:06:06,360 --> 00:06:12,519
full control over all of those type of connections. So really for the purposes of the LPIC2 examination

56
00:06:12,519 --> 00:06:18,199
we want to understand the existence of the network manager utility as well as its basic

57
00:06:18,199 --> 00:06:24,519
functionality and role in controlling or networking on our Linux devices. So I hope this has been

58
00:06:24,519 --> 00:06:27,000
informative for you and I'd like to thank you for viewing.

