As we learned in previous lecture, the IPP program is a multi-purpose network configuration tool that
makes use of the full range of networking features available in a Linux kernel, and it replaces the
earlier and now deprecated from the Ifconfig program.
So with IPP here we can examine a system's network interfaces and a routing table.
So in order to use that, for example, IPA here we will get this output here.
So in this example we see that our test system has here has two network interfaces, right?
The first called the L0, which is loopback interface.
Oops, sorry, let's actually run it again.
IP a and here the first called is loopback interface and visual interface that the system uses to talk
to itself.
And the second is Eth0 and this is called Ethernet interface.
So when performing a casual network diagnostics, the important things to look for are the presence
of the up in the first line for each interface and indicating that the network interface is enabled
and the presence of a valid IP address in the init field here.
As you can see in the init field on the third line.
So for system using dynamic host configuration protocol DHCP, a valid IP address in this field will
verify that the DHCP is working.
And as you can see in this case our DHCP is working and here we also have the netstat command netstat
here.
So this is our netstat command.
So the netstat program is used to examine a various network settings and statistics, and through the
use of its of its many options, we can look at a variety of features in our network setup and using
the netstat netstat e a options.
We can examine the network interfaces in our system like the ifconfig and IP command.
So here, using the R option, we will display the Kernel's network routing table and this shows how
the network is configured to send packets from network to another network here.
So in this simple example, we see a typical routing table for a client machine on a local area network
behind a here our default and our local IP address.
And here we have Jane Mask, Gateway and Interface zero Ethernet here and here.
We can also transfer the files over network.
Right?
So what a good is a network is unless we can move files across it.
Right.
We need to move files from the network.
There are many programs that move the data over networks, and we will cover two of them now and several
more in later lectures.
So the first is FTP.
So one of the two classic programs is FTP.
FTP gets its name from the protocol it uses is here.
FTP means FTP means the file transfer protocol.
So this FTP was once the most widely used method for downloading files over the internet and most,
if not all web browsers support it.
And you often use Uri's starting with the protocol FTP here ftp like this.
This is ftp URL.
So before we there are over web browsers, there was a FTP program and FTP used to communicate with
FTP servers, machines that contain files that can be uploaded and downloaded over a network.
So FTP in its original form, it's not secure because it sends account names and passwords in a clear
text, and this means they are not encrypted and anyone sniffing the network can see them.
Because of this, almost all FTP done over the internet is done by anonymous FTP servers and anonymous
FTP server allows anyone to log in using the login name.
Anonymous and mean and the meaningless password.
So in this example here we will write this here.
Actually let me write this like that.
Clear and here ftp my file server.
And as you can see here, we we need to connect to my file server here.
And actually let's instead of we can also use the file server.
You will connect to file server like this.
File server.
And here we will have the login name, the and actually the CD and make the commands will work like
here just better.
So here let's actually go to the get command widget command.
So another popular command line program for file downloading is WJ Vjet.
So it's useful for downloading content from both the web and FTP sites, Single files, multiple files
and even entire sites can be downloaded.
So to download the our Telekom, we will do vjet http s here oxley.com.
And here we download the index dot HTML and let's actually see here, as you can see here, this is
downloaded ox.com.
Maybe we will miss some JavaScript files, but it's okay.
We will see the plain text and the HTML files that we that every user see.
If download with here.
So as you can see, we are missing some Java files, but we are we are missing some JavaScript and CSS
files, but we are seeing all of the contents that the normal user will see here, as you can see here.
That's it.
So.
Uh, we we can also use the and also, I want to mention that the programs has many options to love.
WJ To recursively download and download files in the background allowing you to log off but continue
downloading and complete the download of partially downloaded file.
And these features are well documented in a better than average man pics man page here widget here.
Oops.
Uh man widget and here as you can see new widget is a free utility for non-interactive download of files
for on the web.
It supports HTTP, https and FTP protocols as well as retrieval through the HTTP proxies.
You can also read this widget in your own time and understand it better as actually widget is a pretty
useful and popular tool in Linux ecosystem.
So I'm waiting you in next lecture.