WEBVTT

00:00.400 --> 00:06.430
As we learned in previous lecture, the IPP program is a multi-purpose network configuration tool that

00:06.430 --> 00:12.850
makes use of the full range of networking features available in a Linux kernel, and it replaces the

00:12.850 --> 00:17.760
earlier and now deprecated from the Ifconfig program.

00:17.830 --> 00:25.600
So with IPP here we can examine a system's network interfaces and a routing table.

00:25.600 --> 00:30.310
So in order to use that, for example, IPA here we will get this output here.

00:30.310 --> 00:37.450
So in this example we see that our test system has here has two network interfaces, right?

00:37.450 --> 00:41.710
The first called the L0, which is loopback interface.

00:41.710 --> 00:44.200
Oops, sorry, let's actually run it again.

00:45.220 --> 00:53.500
IP a and here the first called is loopback interface and visual interface that the system uses to talk

00:53.500 --> 00:54.220
to itself.

00:54.220 --> 01:00.220
And the second is Eth0 and this is called Ethernet interface.

01:00.220 --> 01:07.240
So when performing a casual network diagnostics, the important things to look for are the presence

01:07.240 --> 01:15.370
of the up in the first line for each interface and indicating that the network interface is enabled

01:15.370 --> 01:20.260
and the presence of a valid IP address in the init field here.

01:20.260 --> 01:24.460
As you can see in the init field on the third line.

01:24.460 --> 01:32.740
So for system using dynamic host configuration protocol DHCP, a valid IP address in this field will

01:32.740 --> 01:36.130
verify that the DHCP is working.

01:36.130 --> 01:44.020
And as you can see in this case our DHCP is working and here we also have the netstat command netstat

01:44.020 --> 01:44.620
here.

01:45.710 --> 01:48.410
So this is our netstat command.

01:48.530 --> 01:54.350
So the netstat program is used to examine a various network settings and statistics, and through the

01:54.350 --> 02:00.710
use of its of its many options, we can look at a variety of features in our network setup and using

02:00.710 --> 02:05.540
the netstat netstat e a options.

02:05.540 --> 02:13.080
We can examine the network interfaces in our system like the ifconfig and IP command.

02:13.100 --> 02:20.000
So here, using the R option, we will display the Kernel's network routing table and this shows how

02:20.000 --> 02:25.130
the network is configured to send packets from network to another network here.

02:25.130 --> 02:31.910
So in this simple example, we see a typical routing table for a client machine on a local area network

02:31.940 --> 02:38.150
behind a here our default and our local IP address.

02:38.150 --> 02:45.140
And here we have Jane Mask, Gateway and Interface zero Ethernet here and here.

02:45.940 --> 02:48.340
We can also transfer the files over network.

02:48.340 --> 02:48.790
Right?

02:48.790 --> 02:54.850
So what a good is a network is unless we can move files across it.

02:54.850 --> 02:55.260
Right.

02:55.270 --> 02:57.260
We need to move files from the network.

02:57.280 --> 03:03.220
There are many programs that move the data over networks, and we will cover two of them now and several

03:03.220 --> 03:04.900
more in later lectures.

03:04.900 --> 03:06.760
So the first is FTP.

03:06.940 --> 03:11.740
So one of the two classic programs is FTP.

03:12.280 --> 03:16.630
FTP gets its name from the protocol it uses is here.

03:16.810 --> 03:24.640
FTP means FTP means the file transfer protocol.

03:24.640 --> 03:31.480
So this FTP was once the most widely used method for downloading files over the internet and most,

03:32.050 --> 03:34.300
if not all web browsers support it.

03:34.300 --> 03:41.680
And you often use Uri's starting with the protocol FTP here ftp like this.

03:41.680 --> 03:43.260
This is ftp URL.

03:43.270 --> 03:50.720
So before we there are over web browsers, there was a FTP program and FTP used to communicate with

03:50.840 --> 03:58.580
FTP servers, machines that contain files that can be uploaded and downloaded over a network.

04:01.800 --> 04:07.410
So FTP in its original form, it's not secure because it sends account names and passwords in a clear

04:07.410 --> 04:12.960
text, and this means they are not encrypted and anyone sniffing the network can see them.

04:12.960 --> 04:20.070
Because of this, almost all FTP done over the internet is done by anonymous FTP servers and anonymous

04:20.190 --> 04:23.910
FTP server allows anyone to log in using the login name.

04:23.940 --> 04:26.610
Anonymous and mean and the meaningless password.

04:26.610 --> 04:30.420
So in this example here we will write this here.

04:30.480 --> 04:32.220
Actually let me write this like that.

04:37.850 --> 04:41.810
Clear and here ftp my file server.

04:41.930 --> 04:46.970
And as you can see here, we we need to connect to my file server here.

04:47.420 --> 04:52.160
And actually let's instead of we can also use the file server.

04:53.120 --> 04:55.570
You will connect to file server like this.

04:55.580 --> 04:56.810
File server.

04:58.050 --> 05:08.670
And here we will have the login name, the and actually the CD and make the commands will work like

05:08.670 --> 05:10.200
here just better.

05:10.200 --> 05:14.720
So here let's actually go to the get command widget command.

05:14.730 --> 05:21.570
So another popular command line program for file downloading is WJ Vjet.

05:21.570 --> 05:28.860
So it's useful for downloading content from both the web and FTP sites, Single files, multiple files

05:28.860 --> 05:31.560
and even entire sites can be downloaded.

05:31.560 --> 05:40.770
So to download the our Telekom, we will do vjet http s here oxley.com.

05:40.770 --> 05:49.230
And here we download the index dot HTML and let's actually see here, as you can see here, this is

05:49.230 --> 05:51.090
downloaded ox.com.

05:51.420 --> 05:54.780
Maybe we will miss some JavaScript files, but it's okay.

05:54.780 --> 05:59.500
We will see the plain text and the HTML files that we that every user see.

06:00.250 --> 06:02.800
If download with here.

06:02.800 --> 06:10.000
So as you can see, we are missing some Java files, but we are we are missing some JavaScript and CSS

06:10.000 --> 06:17.410
files, but we are seeing all of the contents that the normal user will see here, as you can see here.

06:19.140 --> 06:19.800
That's it.

06:20.660 --> 06:21.470
So.

06:22.350 --> 06:29.000
Uh, we we can also use the and also, I want to mention that the programs has many options to love.

06:29.010 --> 06:34.590
WJ To recursively download and download files in the background allowing you to log off but continue

06:34.590 --> 06:38.130
downloading and complete the download of partially downloaded file.

06:38.130 --> 06:45.510
And these features are well documented in a better than average man pics man page here widget here.

06:45.540 --> 06:45.900
Oops.

06:46.140 --> 06:53.100
Uh man widget and here as you can see new widget is a free utility for non-interactive download of files

06:53.100 --> 06:53.730
for on the web.

06:53.730 --> 06:59.790
It supports HTTP, https and FTP protocols as well as retrieval through the HTTP proxies.

06:59.790 --> 07:07.200
You can also read this widget in your own time and understand it better as actually widget is a pretty

07:07.200 --> 07:10.500
useful and popular tool in Linux ecosystem.

07:10.500 --> 07:12.060
So I'm waiting you in next lecture.
