1 00:00:00,000 --> 00:00:01,709 [No audio] 2 00:00:01,709 --> 00:00:05,099 NIC information. What is the NIC? NIC 3 00:00:05,099 --> 00:00:08,669 stands for network interface card. That 4 00:00:08,669 --> 00:00:11,549 is something that is attached to your 5 00:00:11,549 --> 00:00:14,369 computer, your desktop or your laptop. 6 00:00:14,399 --> 00:00:16,979 If you look at the back of your laptop, 7 00:00:16,979 --> 00:00:18,539 you will see the little port where you 8 00:00:18,539 --> 00:00:21,809 connect the the Ethernet 5 or 6, 9 00:00:22,439 --> 00:00:25,739 cat 5 or 6 cable to it. That's the 10 00:00:25,739 --> 00:00:29,759 card installed in your computer, and the 11 00:00:29,759 --> 00:00:33,779 port that is associated or attached 12 00:00:33,779 --> 00:00:37,199 to the card, that port is called NIC. 13 00:00:37,709 --> 00:00:39,719 In Linux or in computer world, it's 14 00:00:39,719 --> 00:00:43,559 called NIC. An example to find the 15 00:00:43,559 --> 00:00:46,289 information about the NIC is that you 16 00:00:46,289 --> 00:00:49,559 run a command ethtool, followed by the 17 00:00:49,559 --> 00:00:52,739 name of your NIC. And how do you find 18 00:00:52,739 --> 00:00:56,849 out the name of your NIC? Think it, 19 00:00:56,969 --> 00:00:59,039 think about how do you find out the 20 00:00:59,039 --> 00:01:01,529 information about your NIC, you run the 21 00:01:01,529 --> 00:01:04,319 command ifconfig, that will give you all 22 00:01:04,319 --> 00:01:08,309 the interfaces of your computer. If you 23 00:01:08,309 --> 00:01:10,679 run ifconfig you will see other NICs as 24 00:01:10,679 --> 00:01:12,929 well, what are those? Well, there is one 25 00:01:12,929 --> 00:01:14,729 of the NIC that you will see that shows 26 00:01:14,729 --> 00:01:18,629 up is lo. lo stands for loopback device 27 00:01:18,659 --> 00:01:21,389 is a special interface that your 28 00:01:21,389 --> 00:01:23,849 computer uses to commnicate within 29 00:01:23,969 --> 00:01:27,209 itself. It works as a diagnostic and 30 00:01:27,209 --> 00:01:29,759 troubleshooting and to connect servers 31 00:01:29,759 --> 00:01:32,369 running on the local machine. So it's 32 00:01:32,369 --> 00:01:33,569 like you could say a private 33 00:01:33,569 --> 00:01:36,839 communication within itself. Then you 34 00:01:36,839 --> 00:01:38,879 have another NIC that you probably will 35 00:01:38,879 --> 00:01:41,999 see in your machine, if it's a virtual 36 00:01:41,999 --> 00:01:46,229 machine, it's virb0. This stands for 37 00:01:46,229 --> 00:01:49,799 Virtual Bridge 0 interface, is used 38 00:01:49,799 --> 00:01:52,799 for NAT, NAT stands for network address 39 00:01:52,799 --> 00:01:55,229 translation. The virtual environment 40 00:01:55,229 --> 00:01:57,749 sometimes use it to connect to outside 41 00:01:57,779 --> 00:02:01,409 network. So I don't want you to really 42 00:02:01,409 --> 00:02:06,869 focus on virb0, or even lo because 43 00:02:06,869 --> 00:02:08,699 you will be seeing this but there is not 44 00:02:08,729 --> 00:02:11,038 not main function of this. The only 45 00:02:11,339 --> 00:02:14,249 function of the interface that is used 46 00:02:14,369 --> 00:02:17,279 to communicate to other computers is a 47 00:02:17,279 --> 00:02:19,079 different the third interface, which is 48 00:02:19,079 --> 00:02:21,509 usually labeled as if it's Oracle 49 00:02:21,509 --> 00:02:24,209 Virtual, it's enp, or if it's a regular 50 00:02:24,209 --> 00:02:26,729 server, you're probably gonna see eth 51 00:02:26,789 --> 00:02:30,299 0, 1, 2, or so on. So we will run this 52 00:02:30,299 --> 00:02:33,059 command ethtool in our environment, and 53 00:02:33,059 --> 00:02:35,279 see how we could get the information 54 00:02:35,309 --> 00:02:38,459 about our interface. So we'll go into 55 00:02:38,489 --> 00:02:42,569 our Linux machine. And this time, I want 56 00:02:42,599 --> 00:02:47,249 to log into my system using our console. 57 00:02:47,579 --> 00:02:49,979 So the console or you could use PuTTY 58 00:02:49,979 --> 00:02:52,259 session to if you want to. So let's see 59 00:02:52,259 --> 00:02:56,459 if I have a PuTTY session. I'll just 60 00:02:56,639 --> 00:02:58,469 execute the PuTTY session right here. 61 00:02:59,099 --> 00:03:01,079 But in order for me to run PuTTY 62 00:03:01,079 --> 00:03:03,449 session, I need the IP address. How do I 63 00:03:03,449 --> 00:03:06,059 find the IP address? How do we find it? 64 00:03:07,349 --> 00:03:12,209 ifconfig. Now you should be comfortable 65 00:03:12,209 --> 00:03:14,609 enough to run this command all the time. 66 00:03:14,789 --> 00:03:17,729 ifconfig, I'll put more because if it's 67 00:03:18,239 --> 00:03:20,009 if it doesn't fit on the screen, it will 68 00:03:20,009 --> 00:03:22,769 give me one page at a time. And 69 00:03:22,769 --> 00:03:25,469 the IP address that I have for my 70 00:03:25,499 --> 00:03:32,796 interface is this 192.168.1.12. 71 00:03:32,796 --> 00:03:34,627 [No audio] 72 00:03:34,627 --> 00:03:39,539 I log in as myself, and in order for me to 73 00:03:39,539 --> 00:03:42,326 run the ethtool command I have to be root. 74 00:03:42,326 --> 00:03:44,445 [No audio] 75 00:03:44,445 --> 00:03:46,589 So I am root. Let's clear the 76 00:03:46,589 --> 00:03:51,299 screen. Let's get rid of this one. 77 00:03:51,329 --> 00:03:53,039 Minimize it since we already have the 78 00:03:53,039 --> 00:03:57,239 PuTTY. Let's make a little bigger, and 79 00:03:57,239 --> 00:03:59,459 now we'll talk about the interfaces. 80 00:03:59,909 --> 00:04:01,652 Again how do we check our interfaces? 81 00:04:01,652 --> 00:04:04,079 ifconfig, as you can see, we have the main 82 00:04:04,079 --> 00:04:07,319 interface right here, which is the one 83 00:04:07,319 --> 00:04:09,509 that is used to communicate to other 84 00:04:09,509 --> 00:04:11,879 computers or outside world, and it has 85 00:04:11,909 --> 00:04:16,108 ip assigned. The next one is lo which I have 86 00:04:16,139 --> 00:04:18,629 already explained. And the third one is 87 00:04:18,659 --> 00:04:22,439 virbr0 already explained in my 88 00:04:22,439 --> 00:04:27,935 slide. I want to get information of vrbr0, 89 00:04:27,935 --> 00:04:33,006 so let's say ethtool and virbr0, 90 00:04:33,006 --> 00:04:35,729 and it will say, Link detected: no, 91 00:04:35,759 --> 00:04:38,519 so forget that. Then next one we want to 92 00:04:38,519 --> 00:04:43,109 do is ethtool lo. Link detected: yes, 93 00:04:43,109 --> 00:04:45,059 but there's not much information that's 94 00:04:45,089 --> 00:04:47,849 out there because it's the system's its 95 00:04:47,879 --> 00:04:49,889 own interface so we don't have to worry 96 00:04:49,889 --> 00:04:52,649 about that. The one that we have to be 97 00:04:52,649 --> 00:04:58,614 concerned with is ethtool enp0s3. 98 00:04:58,614 --> 00:05:00,120 Where do I get that? 99 00:05:00,360 --> 00:05:02,580 Right from here. See this interface, 100 00:05:02,580 --> 00:05:04,860 this is the name of my interface. So I 101 00:05:04,860 --> 00:05:07,290 will run ethtool, followed by the name 102 00:05:07,290 --> 00:05:10,830 of my interface, and I'll hit enter. Once 103 00:05:10,830 --> 00:05:15,450 I hit Enter, I have right here my 104 00:05:15,480 --> 00:05:17,910 command output start from right here. 105 00:05:18,570 --> 00:05:20,460 This is what it's telling me that 106 00:05:20,460 --> 00:05:23,190 setting for interface, it's supported ports 107 00:05:23,190 --> 00:05:26,970 is TP, Supported link modes, it 108 00:05:26,970 --> 00:05:30,600 supports 10, which is 10 mg, 100 mg, 109 00:05:30,660 --> 00:05:33,360 and 1000 mg, what is 1000 mg, it's 110 00:05:33,360 --> 00:05:37,500 one gig. So my interface supports one 111 00:05:37,500 --> 00:05:40,440 gig of traffic. Nowadays, if you're 112 00:05:40,440 --> 00:05:43,530 running your computer on a very high 113 00:05:43,530 --> 00:05:46,950 speed network computer, you will see 10 114 00:05:46,950 --> 00:05:50,160 gig right here. So a few things that you 115 00:05:50,160 --> 00:05:54,097 do have to get out of this command ethtool 116 00:05:54,097 --> 00:05:57,180 is one, whether it's 117 00:05:57,930 --> 00:06:01,890 link mode is 1000 or 10,00. Second, you have 118 00:06:01,890 --> 00:06:04,530 to know of course the Speed is 1000 119 00:06:04,530 --> 00:06:06,300 megabytes, which is the same as this 120 00:06:06,300 --> 00:06:08,850 one, then you need to know it's Duplex 121 00:06:08,880 --> 00:06:11,700 is a Full, Half duplex. These are the 122 00:06:11,700 --> 00:06:13,860 things you have to provide to your 123 00:06:13,860 --> 00:06:16,740 network administrator because when your 124 00:06:16,740 --> 00:06:19,980 computer is connected to a switch, and 125 00:06:19,980 --> 00:06:22,800 switch has to be configured for your 126 00:06:22,800 --> 00:06:26,190 port to allow the traffic to come in and 127 00:06:26,190 --> 00:06:29,040 leave your server, your system your 128 00:06:29,040 --> 00:06:30,630 network administrator will ask you for 129 00:06:30,630 --> 00:06:33,450 that information. So be ready for that, 130 00:06:33,480 --> 00:06:36,420 and remember the command to find that 131 00:06:36,420 --> 00:06:39,870 information is ethtool, and the last 132 00:06:39,870 --> 00:06:43,290 one is Link detected, that your 133 00:06:43,290 --> 00:06:46,650 interface link is up, it's active, it's not 134 00:06:46,650 --> 00:06:48,690 down. If you are troubleshooting it, you 135 00:06:48,690 --> 00:06:51,090 can find it. If you see no here then it 136 00:06:51,090 --> 00:06:52,320 means there's something wrong with your 137 00:06:52,320 --> 00:06:54,690 network card. Alright, try these 138 00:06:54,690 --> 00:06:57,630 commands, run man command on ethtool, 139 00:06:57,810 --> 00:07:00,000 and try with different options that is 140 00:07:00,000 --> 00:07:02,610 given and see what are the options that gives 141 00:07:02,610 --> 00:07:04,874 you the exact information that you are looking for. 142 00:07:04,874 --> 00:07:06,710 [No audio]