1 00:00:06,613 --> 00:00:09,630 - In this video, we are going to talk about networking. 2 00:00:09,630 --> 00:00:13,260 So in the end, it's all about the internet, right? 3 00:00:13,260 --> 00:00:15,450 Let's say that this thing here, 4 00:00:15,450 --> 00:00:18,390 cloud-like shape is the internet. 5 00:00:18,390 --> 00:00:20,550 Everybody wants to go to the internet 6 00:00:20,550 --> 00:00:22,500 and in order to go to the internet, 7 00:00:22,500 --> 00:00:27,500 well, you need a router to be taking care of the connection. 8 00:00:29,250 --> 00:00:31,320 The router is a device 9 00:00:31,320 --> 00:00:34,020 in a network that exists on your local network 10 00:00:34,020 --> 00:00:36,540 and behind the router, there is your local network. 11 00:00:36,540 --> 00:00:39,690 Let me use a different color for the local network. 12 00:00:39,690 --> 00:00:43,320 And this local network, maybe a simple network, 13 00:00:43,320 --> 00:00:45,990 where your nodes are connected to directly. 14 00:00:45,990 --> 00:00:49,140 A node is any device that has an IP address 15 00:00:49,140 --> 00:00:50,610 and it can look like this. 16 00:00:50,610 --> 00:00:54,450 A local network might also be a little bit more complicated 17 00:00:54,450 --> 00:00:57,030 where another router is involved, 18 00:00:57,030 --> 00:01:01,090 and where another network is connecting 19 00:01:02,460 --> 00:01:05,641 with nodes by themselves as well. 20 00:01:05,641 --> 00:01:09,360 Now, on these nodes, you need your IP configuration. 21 00:01:09,360 --> 00:01:11,400 IP, the internet protocol. 22 00:01:11,400 --> 00:01:13,877 It's the default protocol that you are going to use 23 00:01:13,877 --> 00:01:15,690 to get to the network. 24 00:01:15,690 --> 00:01:17,163 Now, what exactly do we need? 25 00:01:17,163 --> 00:01:20,400 Well, let's say that we are configuring this node. 26 00:01:20,400 --> 00:01:24,090 And on this node you would need an IP address. 27 00:01:24,090 --> 00:01:25,230 The IP address would look 28 00:01:25,230 --> 00:01:30,230 like 192.168.1.12/24, for instance. 29 00:01:32,917 --> 00:01:36,060 The /24 in the IP address is an identifier 30 00:01:36,060 --> 00:01:40,230 of the part of the IP address that is used for the network. 31 00:01:40,230 --> 00:01:43,830 So /24 means that the first three digits 32 00:01:43,830 --> 00:01:45,960 of the IP address are used for the network. 33 00:01:45,960 --> 00:01:49,350 And that means that you can say that this node 34 00:01:49,350 --> 00:01:54,350 is on the network 192.168.1.0/24. 35 00:01:55,837 --> 00:02:00,030 And it would also mean that this node and this node 36 00:02:00,030 --> 00:02:05,030 have an IP address that starts also with 192.168.1, 37 00:02:05,430 --> 00:02:08,100 followed by anything. 38 00:02:08,100 --> 00:02:09,300 The next thing that you would need 39 00:02:09,300 --> 00:02:13,650 in your node configuration is the IP address of the router. 40 00:02:13,650 --> 00:02:18,650 So this router here is identified as well 192.168.1.254, 41 00:02:21,480 --> 00:02:24,120 for instance, very often the router 42 00:02:24,120 --> 00:02:26,662 is using the last IP address that is available 43 00:02:26,662 --> 00:02:30,480 in the byte, 254 is commonly used. 44 00:02:30,480 --> 00:02:33,240 You might see one as well, that's the default route 45 00:02:33,240 --> 00:02:36,060 or the default gateway that you need to configure. 46 00:02:36,060 --> 00:02:38,280 And the last part that plays a role 47 00:02:38,280 --> 00:02:40,443 is the DNS configuration. 48 00:02:41,340 --> 00:02:42,660 Now, what is DNS? 49 00:02:42,660 --> 00:02:45,750 DNS is about domain name resolution. 50 00:02:45,750 --> 00:02:48,960 It's about using names instead of IP addresses. 51 00:02:48,960 --> 00:02:50,850 And if you don't have a DNS server, 52 00:02:50,850 --> 00:02:53,550 you can still communicate to nodes on the internet 53 00:02:53,550 --> 00:02:57,000 but you would need to know the IP addresses of all of them. 54 00:02:57,000 --> 00:02:58,200 That's not doable. 55 00:02:58,200 --> 00:03:01,380 And that is why you would typically provide the IP address 56 00:03:01,380 --> 00:03:03,480 of a DNS name server as well. 57 00:03:03,480 --> 00:03:05,231 And if that is working successfully, 58 00:03:05,231 --> 00:03:09,063 you can get access to everybody on the entire internet.