1 00:00:00,400 --> 00:00:06,430 As we learned in previous lecture, the IPP program is a multi-purpose network configuration tool that 2 00:00:06,430 --> 00:00:12,850 makes use of the full range of networking features available in a Linux kernel, and it replaces the 3 00:00:12,850 --> 00:00:17,760 earlier and now deprecated from the Ifconfig program. 4 00:00:17,830 --> 00:00:25,600 So with IPP here we can examine a system's network interfaces and a routing table. 5 00:00:25,600 --> 00:00:30,310 So in order to use that, for example, IPA here we will get this output here. 6 00:00:30,310 --> 00:00:37,450 So in this example we see that our test system has here has two network interfaces, right? 7 00:00:37,450 --> 00:00:41,710 The first called the L0, which is loopback interface. 8 00:00:41,710 --> 00:00:44,200 Oops, sorry, let's actually run it again. 9 00:00:45,220 --> 00:00:53,500 IP a and here the first called is loopback interface and visual interface that the system uses to talk 10 00:00:53,500 --> 00:00:54,220 to itself. 11 00:00:54,220 --> 00:01:00,220 And the second is Eth0 and this is called Ethernet interface. 12 00:01:00,220 --> 00:01:07,240 So when performing a casual network diagnostics, the important things to look for are the presence 13 00:01:07,240 --> 00:01:15,370 of the up in the first line for each interface and indicating that the network interface is enabled 14 00:01:15,370 --> 00:01:20,260 and the presence of a valid IP address in the init field here. 15 00:01:20,260 --> 00:01:24,460 As you can see in the init field on the third line. 16 00:01:24,460 --> 00:01:32,740 So for system using dynamic host configuration protocol DHCP, a valid IP address in this field will 17 00:01:32,740 --> 00:01:36,130 verify that the DHCP is working. 18 00:01:36,130 --> 00:01:44,020 And as you can see in this case our DHCP is working and here we also have the netstat command netstat 19 00:01:44,020 --> 00:01:44,620 here. 20 00:01:45,710 --> 00:01:48,410 So this is our netstat command. 21 00:01:48,530 --> 00:01:54,350 So the netstat program is used to examine a various network settings and statistics, and through the 22 00:01:54,350 --> 00:02:00,710 use of its of its many options, we can look at a variety of features in our network setup and using 23 00:02:00,710 --> 00:02:05,540 the netstat netstat e a options. 24 00:02:05,540 --> 00:02:13,080 We can examine the network interfaces in our system like the ifconfig and IP command. 25 00:02:13,100 --> 00:02:20,000 So here, using the R option, we will display the Kernel's network routing table and this shows how 26 00:02:20,000 --> 00:02:25,130 the network is configured to send packets from network to another network here. 27 00:02:25,130 --> 00:02:31,910 So in this simple example, we see a typical routing table for a client machine on a local area network 28 00:02:31,940 --> 00:02:38,150 behind a here our default and our local IP address. 29 00:02:38,150 --> 00:02:45,140 And here we have Jane Mask, Gateway and Interface zero Ethernet here and here. 30 00:02:45,940 --> 00:02:48,340 We can also transfer the files over network. 31 00:02:48,340 --> 00:02:48,790 Right? 32 00:02:48,790 --> 00:02:54,850 So what a good is a network is unless we can move files across it. 33 00:02:54,850 --> 00:02:55,260 Right. 34 00:02:55,270 --> 00:02:57,260 We need to move files from the network. 35 00:02:57,280 --> 00:03:03,220 There are many programs that move the data over networks, and we will cover two of them now and several 36 00:03:03,220 --> 00:03:04,900 more in later lectures. 37 00:03:04,900 --> 00:03:06,760 So the first is FTP. 38 00:03:06,940 --> 00:03:11,740 So one of the two classic programs is FTP. 39 00:03:12,280 --> 00:03:16,630 FTP gets its name from the protocol it uses is here. 40 00:03:16,810 --> 00:03:24,640 FTP means FTP means the file transfer protocol. 41 00:03:24,640 --> 00:03:31,480 So this FTP was once the most widely used method for downloading files over the internet and most, 42 00:03:32,050 --> 00:03:34,300 if not all web browsers support it. 43 00:03:34,300 --> 00:03:41,680 And you often use Uri's starting with the protocol FTP here ftp like this. 44 00:03:41,680 --> 00:03:43,260 This is ftp URL. 45 00:03:43,270 --> 00:03:50,720 So before we there are over web browsers, there was a FTP program and FTP used to communicate with 46 00:03:50,840 --> 00:03:58,580 FTP servers, machines that contain files that can be uploaded and downloaded over a network. 47 00:04:01,800 --> 00:04:07,410 So FTP in its original form, it's not secure because it sends account names and passwords in a clear 48 00:04:07,410 --> 00:04:12,960 text, and this means they are not encrypted and anyone sniffing the network can see them. 49 00:04:12,960 --> 00:04:20,070 Because of this, almost all FTP done over the internet is done by anonymous FTP servers and anonymous 50 00:04:20,190 --> 00:04:23,910 FTP server allows anyone to log in using the login name. 51 00:04:23,940 --> 00:04:26,610 Anonymous and mean and the meaningless password. 52 00:04:26,610 --> 00:04:30,420 So in this example here we will write this here. 53 00:04:30,480 --> 00:04:32,220 Actually let me write this like that. 54 00:04:37,850 --> 00:04:41,810 Clear and here ftp my file server. 55 00:04:41,930 --> 00:04:46,970 And as you can see here, we we need to connect to my file server here. 56 00:04:47,420 --> 00:04:52,160 And actually let's instead of we can also use the file server. 57 00:04:53,120 --> 00:04:55,570 You will connect to file server like this. 58 00:04:55,580 --> 00:04:56,810 File server. 59 00:04:58,050 --> 00:05:08,670 And here we will have the login name, the and actually the CD and make the commands will work like 60 00:05:08,670 --> 00:05:10,200 here just better. 61 00:05:10,200 --> 00:05:14,720 So here let's actually go to the get command widget command. 62 00:05:14,730 --> 00:05:21,570 So another popular command line program for file downloading is WJ Vjet. 63 00:05:21,570 --> 00:05:28,860 So it's useful for downloading content from both the web and FTP sites, Single files, multiple files 64 00:05:28,860 --> 00:05:31,560 and even entire sites can be downloaded. 65 00:05:31,560 --> 00:05:40,770 So to download the our Telekom, we will do vjet http s here oxley.com. 66 00:05:40,770 --> 00:05:49,230 And here we download the index dot HTML and let's actually see here, as you can see here, this is 67 00:05:49,230 --> 00:05:51,090 downloaded ox.com. 68 00:05:51,420 --> 00:05:54,780 Maybe we will miss some JavaScript files, but it's okay. 69 00:05:54,780 --> 00:05:59,500 We will see the plain text and the HTML files that we that every user see. 70 00:06:00,250 --> 00:06:02,800 If download with here. 71 00:06:02,800 --> 00:06:10,000 So as you can see, we are missing some Java files, but we are we are missing some JavaScript and CSS 72 00:06:10,000 --> 00:06:17,410 files, but we are seeing all of the contents that the normal user will see here, as you can see here. 73 00:06:19,140 --> 00:06:19,800 That's it. 74 00:06:20,660 --> 00:06:21,470 So. 75 00:06:22,350 --> 00:06:29,000 Uh, we we can also use the and also, I want to mention that the programs has many options to love. 76 00:06:29,010 --> 00:06:34,590 WJ To recursively download and download files in the background allowing you to log off but continue 77 00:06:34,590 --> 00:06:38,130 downloading and complete the download of partially downloaded file. 78 00:06:38,130 --> 00:06:45,510 And these features are well documented in a better than average man pics man page here widget here. 79 00:06:45,540 --> 00:06:45,900 Oops. 80 00:06:46,140 --> 00:06:53,100 Uh man widget and here as you can see new widget is a free utility for non-interactive download of files 81 00:06:53,100 --> 00:06:53,730 for on the web. 82 00:06:53,730 --> 00:06:59,790 It supports HTTP, https and FTP protocols as well as retrieval through the HTTP proxies. 83 00:06:59,790 --> 00:07:07,200 You can also read this widget in your own time and understand it better as actually widget is a pretty 84 00:07:07,200 --> 00:07:10,500 useful and popular tool in Linux ecosystem. 85 00:07:10,500 --> 00:07:12,060 So I'm waiting you in next lecture.