title
Linux Network Configuration

description
Follow Eli on the Vlog Channel: https://www.youtube.com/user/EliComputerGuyLive Info Level: Intermediate Presenter: Eli the Computer Guy Date Created: September 16, 2010 Length of Class: 51 Mintues Tracks Linux Prerequisites Introduction to Linux Installing Linux Basic Linux Tasks VIM for File Editing Navigation in Linux Purpose of Class This class teaches students how to configure their Linux servers networking. Topics Covered ifconfig Command DHCP Releae and Renew Restarting the Network Service Editing the interfaces File to Setup a Static IP Address Editing the resolv.conf File for DNS Changing the Serves Hostname' Ping for Troubleshooting UFW Firewall Configuration Class Notes Basic Tasks To Show Current IP Addresses and Network Configuration = sudo ifconfi To Release and Renew IP Address = sudo dhclient To Restart the Networking Service = sudo /etc/init.d/networking restart Always Restart the Networking Service After Changing Network Configurations Network Config file To Edit the Network Adapter Configurations = sudo vim /etc/network/interfaces auto eth0 = Auto Negotiate Speed for Ethernet Card 0 iface eth0 inet static /dhcp = Ethernet Card 0 Either Static or DHCP Address. If DHCP Don't Go Further. address 192.168.1.100 = Static IP Address netmask 255.255.255.0 = Subnet Mssk network 192.168.1.0 = Network (Generally Your IP Address Siply with a 0 in the Last Octet)) broadcast 192.168.1.255 = Broadcast Address (The Last Address in Your Subnet. Generally Your IP Address with a 255 in the Last Octet.) gateway 192.168.1.1 = Default Gateway. Generally Your ISP Modem or Router To Edit the DNS Resolution File = sudo vim /etc/resolv.conf To See Current Hostname = sudo /bin/hostname To Change Hostname = sudo /bin/hostname newhostname Ping To Determine if You Can See an IP Address = ping IP Address To Determine DNS is Working = ping domainname UFW firewall To Chaneg Default Handling of Ports When UFW is Enabled = sudo ufw default allow/deny To Turn UFW on or Off = sudo ufw enable/disable To Open or Close Ports for Everyone = sudo ufw allow/deny port# To Delete a UFW Rule = sudo ufw delete allow/deny port# To Allow Access to All Ports from a Specific IP Address = sudo ufw allow from IP Address To Allow Access to a Specific Port from a Specific IP Address = sudo ufw allow from IP Address to any port port# Final Thoughts Drivers Should Work Out of the Box... Wireless Networking is Its own Topic

detail
{'title': 'Linux Network Configuration', 'heatmap': [{'end': 531.567, 'start': 492.744, 'weight': 0.803}, {'end': 1296.194, 'start': 1261.461, 'weight': 0.778}, {'end': 1570.991, 'start': 1505.342, 'weight': 1}], 'summary': "'linux network configuration' covers various aspects including linux network basics, configuring network interfaces, static ip address setup with vim, dns, hostname, ufw firewall, and ip address management, emphasizing specific commands and key configuration components, such as dhcp, subnet mask, and default gateway.", 'chapters': [{'end': 330.682, 'segs': [{'end': 66.47, 'src': 'embed', 'start': 27.449, 'weight': 0, 'content': [{'end': 34.493, 'text': 'Again, as with everything else in Linux, this is not too complicated if you just take it slow and you understand some very specific commands.', 'start': 27.449, 'duration': 7.044}, {'end': 42.038, 'text': "So this class will teach you those commands, we'll bring you through so that you can get your Linux server onto the network and onto the internet.", 'start': 34.834, 'duration': 7.204}, {'end': 48.802, 'text': 'So give me a second to put a few things together and then we will get into the class Linux Network Configuration.', 'start': 42.418, 'duration': 6.384}, {'end': 58.864, 'text': 'So, before we delve deeply into the whole Linux network configuration,', 'start': 54.741, 'duration': 4.123}, {'end': 66.47, 'text': "we need to talk about a few tasks that you're going to be able to need to perform once you start configuring the networking for your Linux server.", 'start': 58.864, 'duration': 7.606}], 'summary': 'Learning specific commands to configure linux network for internet connectivity.', 'duration': 39.021, 'max_score': 27.449, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ27449.jpg'}, {'end': 120.576, 'src': 'embed', 'start': 93.503, 'weight': 1, 'content': [{'end': 103.462, 'text': 'If you run sudo, ifconfig, this will give you all the information about the network cards that are on your system.', 'start': 93.503, 'duration': 9.959}, {'end': 111.61, 'text': "So it'll say, you know, F0, whether it's DHCP, whether it has an IP address or not, etc.", 'start': 103.782, 'duration': 7.828}, {'end': 119.415, 'text': "So, just like ifconfig in the Windows world, it'll say you know network card 1, network card 2, network card 3, gives you the MAC address,", 'start': 111.69, 'duration': 7.725}, {'end': 120.576, 'text': 'gives you all the information.', 'start': 119.415, 'duration': 1.161}], 'summary': "Running 'sudo ifconfig' provides information on network cards, including mac address and ip status.", 'duration': 27.073, 'max_score': 93.503, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ93503.jpg'}, {'end': 221.543, 'src': 'embed', 'start': 177.864, 'weight': 2, 'content': [{'end': 182.588, 'text': 'just run sudo dhclient and this will release and renew your IP address.', 'start': 177.864, 'duration': 4.724}, {'end': 183.59, 'text': "It's pretty simple.", 'start': 182.649, 'duration': 0.941}, {'end': 193.072, 'text': "Now. finally, whenever you're messing with configuration files and such for any services on a Linux computer,", 'start': 184.23, 'duration': 8.842}, {'end': 198.973, 'text': 'you need to restart the services once you are done playing with the configuration files.', 'start': 193.072, 'duration': 5.901}, {'end': 200.514, 'text': 'Networking is the same way.', 'start': 199.174, 'duration': 1.34}, {'end': 205.115, 'text': "So when you go in, we'll be talking about in a moment, changing your network configuration files.", 'start': 200.594, 'duration': 4.521}, {'end': 212.278, 'text': 'Once you get done changing those configuration files, you need to restart the service so that those configuration files load.', 'start': 205.635, 'duration': 6.643}, {'end': 218.862, 'text': 'Again, we talked about way back a couple of classes ago how to start and restart and stop services.', 'start': 212.779, 'duration': 6.083}, {'end': 221.543, 'text': "With networking, again, it's pretty simple.", 'start': 219.462, 'duration': 2.081}], 'summary': "Running 'sudo dhclient' renews ip. after changing network config files, restart services.", 'duration': 43.679, 'max_score': 177.864, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ177864.jpg'}], 'start': 5.663, 'title': 'Linux network configuration and basics', 'summary': 'Covers linux network configuration, teaching specific commands to connect a linux server to the network and internet, emphasizing that it is not too complicated if approached slowly and with understanding. additionally, it explains how to use ifconfig to view network card information, dhclient to release and renew ip addresses, and how to restart the networking service in linux.', 'chapters': [{'end': 66.47, 'start': 5.663, 'title': 'Linux network configuration', 'summary': 'Covers linux network configuration, teaching specific commands to connect a linux server to the network and internet, emphasizing that it is not too complicated if approached slowly and with understanding.', 'duration': 60.807, 'highlights': ['The class will teach specific commands to connect a Linux server to the network and internet.', 'It emphasizes that Linux network configuration is not too complicated if approached slowly and with understanding.', 'The chapter mentions the need to perform tasks when configuring the networking for a Linux server.']}, {'end': 330.682, 'start': 66.99, 'title': 'Linux networking basics', 'summary': 'Explains how to use ifconfig to view network card information, dhclient to release and renew ip addresses, and how to restart the networking service in linux.', 'duration': 263.692, 'highlights': ["The ifconfig command provides information about network cards such as DHCP status and IP addresses. Running 'sudo ifconfig' in Linux displays details about network cards, including DHCP status and assigned IP addresses.", "Using dhclient allows for the release and renewal of IP addresses, useful for troubleshooting network issues. Executing 'sudo dhclient' in Linux releases and renews the IP address, helpful for resolving network problems.", "Restarting the networking service using '/etc/init.d/networking restart' is necessary after modifying network configuration files. After making changes to network configuration files in Linux, the networking service needs to be restarted using '/etc/init.d/networking restart' to apply the new configurations."]}], 'duration': 325.019, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ5663.jpg', 'highlights': ['The class will teach specific commands to connect a Linux server to the network and internet.', 'The ifconfig command provides information about network cards such as DHCP status and IP addresses.', 'Using dhclient allows for the release and renewal of IP addresses, useful for troubleshooting network issues.', 'It emphasizes that Linux network configuration is not too complicated if approached slowly and with understanding.', "Restarting the networking service using '/etc/init.d/networking restart' is necessary after modifying network configuration files.", 'The chapter mentions the need to perform tasks when configuring the networking for a Linux server.']}, {'end': 642.326, 'segs': [{'end': 394.339, 'src': 'embed', 'start': 330.722, 'weight': 0, 'content': [{'end': 334.564, 'text': 'So this is what gives us information about our network cards.', 'start': 330.722, 'duration': 3.842}, {'end': 341.054, 'text': 'Now on this computer, it does receive its IP address from a DHCP server.', 'start': 335.191, 'duration': 5.863}, {'end': 348.378, 'text': 'So in order to release and renew an IP address, you simply use the command dhclient.', 'start': 341.555, 'duration': 6.823}, {'end': 354.722, 'text': 'So you do sudo dhclient.', 'start': 348.438, 'duration': 6.284}, {'end': 360.045, 'text': "Enter And that's all it had to do.", 'start': 355.742, 'duration': 4.303}, {'end': 364.087, 'text': 'pretty quick, so it released 10.0.', 'start': 361.636, 'duration': 2.451}, {'end': 367.119, 'text': '2.15 and it looks like it got it back.', 'start': 364.087, 'duration': 3.032}, {'end': 375.804, 'text': 'So, depending on how fast your DHCP server is and how everything talks to each other, this can be a rather quick process,', 'start': 367.58, 'duration': 8.224}, {'end': 378.326, 'text': 'or it could take 30 or 40 seconds to do.', 'start': 375.804, 'duration': 2.522}, {'end': 382.949, 'text': "But that's all you do to release and renew your IP address.", 'start': 378.446, 'duration': 4.503}, {'end': 387.415, 'text': "Like I say, we're going to go into changing configuration files.", 'start': 383.953, 'duration': 3.462}, {'end': 394.339, 'text': 'So when you change your network configuration files, you need to remember to restart the service.', 'start': 388.796, 'duration': 5.543}], 'summary': 'Using dhclient command to release and renew ip address, which took 30-40 seconds in this case.', 'duration': 63.617, 'max_score': 330.722, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ330722.jpg'}, {'end': 454.268, 'src': 'embed', 'start': 430.345, 'weight': 4, 'content': [{'end': 437.531, 'text': 'Well, the reason is because you did not restart the service, and therefore those new configuration files never got uploaded into the system.', 'start': 430.345, 'duration': 7.186}, {'end': 440.293, 'text': "So it's still using the old configuration files.", 'start': 437.571, 'duration': 2.722}, {'end': 441.52, 'text': 'So just remember this.', 'start': 440.7, 'duration': 0.82}, {'end': 451.366, 'text': "Whenever you change configurations for anything, whether it's networking, Apache, PHP, whatever, make sure to restart the corresponding service.", 'start': 442.101, 'duration': 9.265}, {'end': 454.268, 'text': "So with networking, it's the networking service.", 'start': 451.486, 'duration': 2.782}], 'summary': 'Failure to restart service led to use of old config files.', 'duration': 23.923, 'max_score': 430.345, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ430345.jpg'}, {'end': 531.567, 'src': 'heatmap', 'start': 492.744, 'weight': 0.803, 'content': [{'end': 496.786, 'text': 'D H client is what releases and renews your IP address.', 'start': 492.744, 'duration': 4.042}, {'end': 497.827, 'text': 'And then the pseudo.', 'start': 497.047, 'duration': 0.78}, {'end': 501.728, 'text': 'ptcini.d forward slash networking.', 'start': 498.302, 'duration': 3.426}, {'end': 505.254, 'text': "That is a service that you're going to have to restart once you change configurations.", 'start': 502.008, 'duration': 3.246}, {'end': 510.242, 'text': "Since you've got that down, let's go and talk about the actual network configuration file.", 'start': 506.195, 'duration': 4.047}, {'end': 520.679, 'text': "So I think you'll agree those tasks are pretty simple to do.", 'start': 517.577, 'duration': 3.102}, {'end': 531.567, 'text': 'So now we need to talk about the configuration files for networking on your computer, your Linux server.', 'start': 521.2, 'duration': 10.367}], 'summary': 'Dhclient releases and renews ip addresses, ptcini.d/networking service needs restart after configuration changes. simple tasks to configure networking on linux server.', 'duration': 38.823, 'max_score': 492.744, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ492744.jpg'}, {'end': 531.567, 'src': 'embed', 'start': 502.008, 'weight': 2, 'content': [{'end': 505.254, 'text': "That is a service that you're going to have to restart once you change configurations.", 'start': 502.008, 'duration': 3.246}, {'end': 510.242, 'text': "Since you've got that down, let's go and talk about the actual network configuration file.", 'start': 506.195, 'duration': 4.047}, {'end': 520.679, 'text': "So I think you'll agree those tasks are pretty simple to do.", 'start': 517.577, 'duration': 3.102}, {'end': 531.567, 'text': 'So now we need to talk about the configuration files for networking on your computer, your Linux server.', 'start': 521.2, 'duration': 10.367}], 'summary': 'Restart service after configuration changes. discuss network configuration files for linux server.', 'duration': 29.559, 'max_score': 502.008, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ502008.jpg'}, {'end': 646.827, 'src': 'embed', 'start': 618.38, 'weight': 3, 'content': [{'end': 621.541, 'text': 'Auto, what this is, this states the speed.', 'start': 618.38, 'duration': 3.161}, {'end': 623.801, 'text': 'So auto is auto negotiate.', 'start': 621.661, 'duration': 2.14}, {'end': 629.763, 'text': 'So, you know, most network cards nowadays are 10-100 or 10-100 gig cards.', 'start': 624.201, 'duration': 5.562}, {'end': 637.725, 'text': 'All this auto means is that it will auto decide what speed it should go and whether it should be half duplex or full duplex.', 'start': 630.343, 'duration': 7.382}, {'end': 642.326, 'text': "Unless you're doing something really special, you just leave that auto there.", 'start': 638.405, 'duration': 3.921}, {'end': 644.846, 'text': "You can change it, but there's not a whole lot to it.", 'start': 642.366, 'duration': 2.48}, {'end': 646.827, 'text': "Under that, you'll see iFace.", 'start': 645.447, 'duration': 1.38}], 'summary': 'Auto negotiation determines network card speed and duplex mode.', 'duration': 28.447, 'max_score': 618.38, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ618380.jpg'}], 'start': 330.722, 'title': 'Linux networking configurations', 'summary': "Provides an overview of obtaining network card information and renewing an ip address using the 'dhclient' command, which can take 30 or 40 seconds depending on the dhcp server's speed. it also emphasizes the importance of restarting services after making configuration changes to ensure the new settings are applied, and provides instructions for restarting the networking service and editing the network interfaces file in ubuntu linux.", 'chapters': [{'end': 394.339, 'start': 330.722, 'title': 'Network card information and ip address renewal', 'summary': "Provides an overview of obtaining network card information and renewing an ip address using the 'dhclient' command, which can take 30 or 40 seconds depending on the dhcp server's speed.", 'duration': 63.617, 'highlights': ["Renewing an IP address using the 'dhclient' command can take 30 or 40 seconds depending on the DHCP server's speed.", "To release and renew an IP address, the command 'sudo dhclient' is used, which released 10.0.2.15 and successfully obtained it back."]}, {'end': 642.326, 'start': 394.399, 'title': 'Linux networking configurations', 'summary': 'Emphasizes the importance of restarting services after making configuration changes to ensure the new settings are applied, and provides instructions for restarting the networking service and editing the network interfaces file in ubuntu linux.', 'duration': 247.927, 'highlights': ['It emphasizes the importance of restarting services after making configuration changes to ensure the new settings are applied. Emphasizes the need to restart services after making configuration changes to avoid issues and ensure new settings are applied.', 'Provides instructions for restarting the networking service and editing the network interfaces file in Ubuntu Linux. Gives instructions for restarting the networking service and editing the network interfaces file in Ubuntu Linux, including the specific commands and file locations.', "Explains the significance of auto in the network interfaces file, indicating it represents auto negotiation for speed and duplex settings. Clarifies the meaning of 'auto' in the network interfaces file, signifying its role in auto negotiation for speed and duplex settings for network cards."]}], 'duration': 311.604, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ330722.jpg', 'highlights': ["To release and renew an IP address, the command 'sudo dhclient' is used, which released 10.0.2.15 and successfully obtained it back.", "Renewing an IP address using the 'dhclient' command can take 30 or 40 seconds depending on the DHCP server's speed.", 'Provides instructions for restarting the networking service and editing the network interfaces file in Ubuntu Linux, including the specific commands and file locations.', 'Explains the significance of auto in the network interfaces file, indicating it represents auto negotiation for speed and duplex settings.', 'It emphasizes the importance of restarting services after making configuration changes to ensure the new settings are applied. Emphasizes the need to restart services after making configuration changes to avoid issues and ensure new settings are applied.']}, {'end': 1228.234, 'segs': [{'end': 768.191, 'src': 'embed', 'start': 739.958, 'weight': 1, 'content': [{'end': 742.258, 'text': '10.255 is the broadcast address.', 'start': 739.958, 'duration': 2.3}, {'end': 746.84, 'text': "Again, if you don't know what the broadcast address is, it's kind of a different class, do a Google search on it.", 'start': 742.298, 'duration': 4.542}, {'end': 757.004, 'text': "Basically, the broadcast address is what is the address that I can send out on and every single computer that's part of this address range will hear.", 'start': 746.92, 'duration': 10.084}, {'end': 761.987, 'text': 'And then finally, underneath this is the gateway.', 'start': 758.304, 'duration': 3.683}, {'end': 766.069, 'text': 'The gateway is of course the default gateway.', 'start': 762.967, 'duration': 3.102}, {'end': 768.191, 'text': "So normally that's the .", 'start': 766.189, 'duration': 2.002}], 'summary': 'Broadcast address 10.255, gateway explained.', 'duration': 28.233, 'max_score': 739.958, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ739958.jpg'}, {'end': 849.43, 'src': 'embed', 'start': 820.018, 'weight': 0, 'content': [{'end': 823.86, 'text': 'Under that, you say address, space, and then you put the IP address.', 'start': 820.018, 'duration': 3.842}, {'end': 825.521, 'text': 'Under that, the net mask.', 'start': 824.3, 'duration': 1.221}, {'end': 828.483, 'text': 'This is a subnet mask, space, whatever the subnet mask is.', 'start': 825.561, 'duration': 2.922}, {'end': 836.672, 'text': "Under that, the network, again, Normally it's whatever the first three digits are, so it's 10.1.", 'start': 828.923, 'duration': 7.749}, {'end': 837.022, 'text': '10.0, 10.1.', 'start': 836.672, 'duration': 0.35}, {'end': 840.801, 'text': "10.0, basically it just says what network they're on.", 'start': 837.022, 'duration': 3.779}, {'end': 842.903, 'text': 'Broadcast again.', 'start': 841.362, 'duration': 1.541}, {'end': 849.43, 'text': "we'll have a class on all this, but the broadcast address is if this computer needs to talk to everybody out there on the network,", 'start': 842.903, 'duration': 6.527}], 'summary': 'The transcript discusses setting up ip address, subnet mask, network, and broadcast address.', 'duration': 29.412, 'max_score': 820.018, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ820018.jpg'}, {'end': 1014.666, 'src': 'embed', 'start': 989.461, 'weight': 3, 'content': [{'end': 994.265, 'text': "That's the file that you're going to edit to edit the DNS information.", 'start': 989.461, 'duration': 4.804}, {'end': 999.13, 'text': 'So basically, sudo vim slash etc slash resolve.conf.', 'start': 994.305, 'duration': 4.825}, {'end': 1002.873, 'text': 'When that opens up, all you do is you plug in the IP addresses.', 'start': 999.39, 'duration': 3.483}, {'end': 1010.151, 'text': "So it'll open up and then you can plug in, you know, I want my first DNS address to be 10.1.", 'start': 1003.194, 'duration': 6.957}, {'end': 1012.984, 'text': '10.1, and then you go enter, and I want my second DNS to be 10.1.', 'start': 1010.151, 'duration': 2.833}, {'end': 1014.666, 'text': '10.2, then I want my third to be 207.88.', 'start': 1012.984, 'duration': 1.682}], 'summary': 'Edit dns information in resolve.conf by adding ip addresses: 10.1.10.1, 10.1.10.2, 207.88', 'duration': 25.205, 'max_score': 989.461, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ989461.jpg'}, {'end': 1119.93, 'src': 'embed', 'start': 1089.162, 'weight': 4, 'content': [{'end': 1094.083, 'text': 'So, you know, you put in sudo bin hostname and it will come back as server.', 'start': 1089.162, 'duration': 4.921}, {'end': 1096.564, 'text': "So it'll just tell you what the hostname is.", 'start': 1094.643, 'duration': 1.921}, {'end': 1097.444, 'text': 'Pretty simple.', 'start': 1096.944, 'duration': 0.5}, {'end': 1104.426, 'text': 'Now what if you need to change the hostname? Again, it is rather dirt simple, like almost all these Linux tasks are.', 'start': 1097.824, 'duration': 6.602}, {'end': 1115.349, 'text': 'All you do is you do sudo, the same command, bin, hostname, And then you do space name.', 'start': 1104.586, 'duration': 10.763}, {'end': 1119.93, 'text': "That's all you have to do to rename your computer.", 'start': 1116.769, 'duration': 3.161}], 'summary': "Using 'sudo bin hostname' displays the hostname as 'server'. to rename the computer, use 'sudo bin hostname name'.", 'duration': 30.768, 'max_score': 1089.162, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1089162.jpg'}, {'end': 1191.926, 'src': 'embed', 'start': 1167.289, 'weight': 2, 'content': [{'end': 1178.057, 'text': "The main thing to remember is it's the ETC network interfaces file that contains all the information for your networking, for the NICs,", 'start': 1167.289, 'duration': 10.768}, {'end': 1179.558, 'text': 'the network cards that are on your system.', 'start': 1178.057, 'duration': 1.501}, {'end': 1184, 'text': 'Remember, like I say, in the Linux world, they work on the ordinal system.', 'start': 1179.998, 'duration': 4.002}, {'end': 1186.702, 'text': 'Zero is the first number, not one.', 'start': 1184.221, 'duration': 2.481}, {'end': 1191.926, 'text': "So if you're dealing with your first Ethernet card, you're dealing with eth zero.", 'start': 1187.102, 'duration': 4.824}], 'summary': 'Etc network interfaces file contains networking info for nics. in linux, ordinal system starts with zero.', 'duration': 24.637, 'max_score': 1167.289, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1167289.jpg'}], 'start': 642.366, 'title': 'Configuring network interfaces in linux', 'summary': 'Provides a comprehensive guide to configuring network interfaces in linux, covering static ip address setup, subnet mask, network, broadcast address, default gateway, dns configuration, dhcp, and hostnames, emphasizing key components and important configuration files.', 'chapters': [{'end': 865.441, 'start': 642.366, 'title': 'Configuring network interfaces', 'summary': 'Explains how to configure network interfaces in linux, covering static ip address setup, subnet mask, network, broadcast address, and default gateway, emphasizing the simplicity and key components of the process.', 'duration': 223.075, 'highlights': ['Configuring a static IP address The chapter explains the process of setting up a static IP address, demonstrating how to locate the IP address, subnet mask, network, broadcast address, and default gateway, providing a clear understanding of the key components.', 'Network configuration simplicity Emphasizes the simplicity of network configuration in Linux, highlighting the straightforward process of configuring network interfaces and the components involved, making it accessible for users.', 'Understanding broadcast address Provides an explanation of the broadcast address and its significance in allowing communication with all devices within the network, with a specific example of how the broadcast address is derived from the IP address and subnet mask.']}, {'end': 1228.234, 'start': 865.441, 'title': 'Linux networking configuration', 'summary': 'Discusses configuring network interfaces, dns, dhcp, and hostnames in linux, emphasizing the importance of the etc network interfaces file and resolving dns issues by editing the resolve.conf file.', 'duration': 362.793, 'highlights': ['The ETC network interfaces file contains configuration for the networking NICs, and it does not include the hostname or DNS addresses. The ETC network interfaces file is the main configuration file for networking NICs and does not contain the hostname or DNS addresses, impacting the ability to access websites or perform updates.', 'Editing the resolve.conf file with DNS addresses is crucial for proper DNS configuration in Linux, allowing the addition of multiple DNS addresses and emphasizing the need to restart networking services after making changes. The resolve.conf file is edited to input DNS addresses, allowing the addition of multiple DNS addresses and emphasizing the need to restart networking services for the changes to take effect.', "The process of changing the hostname in Linux is simple, involving the use of the 'sudo /bin/hostname' command, and it also requires restarting the networking services. Changing the hostname in Linux is a straightforward process involving the 'sudo /bin/hostname' command and requires restarting the networking services for the changes to be applied."]}], 'duration': 585.868, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ642366.jpg', 'highlights': ['Configuring a static IP address The chapter explains the process of setting up a static IP address, demonstrating how to locate the IP address, subnet mask, network, broadcast address, and default gateway, providing a clear understanding of the key components.', 'Understanding broadcast address Provides an explanation of the broadcast address and its significance in allowing communication with all devices within the network, with a specific example of how the broadcast address is derived from the IP address and subnet mask.', 'Network configuration simplicity Emphasizes the simplicity of network configuration in Linux, highlighting the straightforward process of configuring network interfaces and the components involved, making it accessible for users.', 'Editing the resolve.conf file with DNS addresses is crucial for proper DNS configuration in Linux, allowing the addition of multiple DNS addresses and emphasizing the need to restart networking services after making changes. The resolve.conf file is edited to input DNS addresses, allowing the addition of multiple DNS addresses and emphasizing the need to restart networking services for the changes to take effect.', "The process of changing the hostname in Linux is simple, involving the use of the 'sudo /bin/hostname' command, and it also requires restarting the networking services. Changing the hostname in Linux is a straightforward process involving the 'sudo /bin/hostname' command and requires restarting the networking services for the changes to be applied.", 'The ETC network interfaces file contains configuration for the networking NICs, and it does not include the hostname or DNS addresses. The ETC network interfaces file is the main configuration file for networking NICs and does not contain the hostname or DNS addresses, impacting the ability to access websites or perform updates.']}, {'end': 1486.958, 'segs': [{'end': 1305.789, 'src': 'heatmap', 'start': 1261.461, 'weight': 0, 'content': [{'end': 1262.542, 'text': 'And give it my password.', 'start': 1261.461, 'duration': 1.081}, {'end': 1267.427, 'text': 'So this is the interfaces file.', 'start': 1265.006, 'duration': 2.421}, {'end': 1269.488, 'text': 'And like I say, you open it up with Vim.', 'start': 1267.547, 'duration': 1.941}, {'end': 1271.929, 'text': 'You just open it up with a normal text editor.', 'start': 1269.528, 'duration': 2.401}, {'end': 1276.991, 'text': "If you go in, see this information about the looped back address at this point, don't really worry about it.", 'start': 1272.309, 'duration': 4.682}, {'end': 1280.433, 'text': 'And then as you scroll down, it says the primary network interface.', 'start': 1277.411, 'duration': 3.022}, {'end': 1283.174, 'text': 'So as I told you, you see auto F0.', 'start': 1280.533, 'duration': 2.641}, {'end': 1289.297, 'text': "So that means the first network card, it only has one network card, which is F0, and it's auto negotiate.", 'start': 1283.234, 'duration': 6.063}, {'end': 1296.194, 'text': 'That means The computer itself decides whether it will be 100 megabits per second, 10 megabits per second, a gig per second,', 'start': 1289.377, 'duration': 6.817}, {'end': 1298.759, 'text': 'and whether it will be half duplex or full duplex.', 'start': 1296.194, 'duration': 2.565}, {'end': 1301.464, 'text': "Again, that's a whole bunch of stuff for another class.", 'start': 1298.799, 'duration': 2.665}, {'end': 1305.789, 'text': 'Now if you go down to the next line, you say iface eth0.', 'start': 1301.966, 'duration': 3.823}], 'summary': 'Configuring network interfaces with vim: first network card is f0, auto-negotiating speed and duplex.', 'duration': 77.555, 'max_score': 1261.461, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1261461.jpg'}, {'end': 1394.041, 'src': 'embed', 'start': 1362.771, 'weight': 3, 'content': [{'end': 1366.772, 'text': 'And by and large, you will most likely always be putting in a Class C subnet mask.', 'start': 1362.771, 'duration': 4.001}, {'end': 1371.493, 'text': "So it's asking for the network.", 'start': 1367.212, 'duration': 4.281}, {'end': 1378.834, 'text': 'And this generally is the IP address, but with that last number being 0, so 10.1.', 'start': 1374.133, 'duration': 4.701}, {'end': 1379.754, 'text': '10.0 generally.', 'start': 1378.834, 'duration': 0.92}, {'end': 1385.85, 'text': 'Then you have the broadcast address.', 'start': 1384.028, 'duration': 1.822}, {'end': 1394.041, 'text': "The broadcast address, again, it's the last address in the subnet mask.", 'start': 1387.573, 'duration': 6.468}], 'summary': 'Mostly use class c subnet mask for network, with ip address like 10.1.10.0, and broadcast address as the last address.', 'duration': 31.27, 'max_score': 1362.771, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1362771.jpg'}, {'end': 1468.156, 'src': 'embed', 'start': 1440.382, 'weight': 1, 'content': [{'end': 1445.167, 'text': 'So this is the IP address of the router or whatever will get you off the local network.', 'start': 1440.382, 'duration': 4.785}, {'end': 1448.06, 'text': "And so for us here, it's 10.1.", 'start': 1445.628, 'duration': 2.432}, {'end': 1451.111, 'text': '10.1 And so that is all you do.', 'start': 1448.06, 'duration': 3.051}, {'end': 1455.793, 'text': 'I have now inserted all the information to give this computer a static IP address.', 'start': 1451.272, 'duration': 4.521}, {'end': 1459.003, 'text': 'It now has an address of 10.1.', 'start': 1455.833, 'duration': 3.17}, {'end': 1462.414, 'text': '10.54, a subnet mask or a net mask of 255.255.', 'start': 1459.003, 'duration': 3.411}, {'end': 1468.156, 'text': '255.0 A network is, like I say, just take the IP address and put a zero at the end.', 'start': 1462.414, 'duration': 5.742}], 'summary': 'Assigned static ip address 10.1.10.54 with subnet mask 255.255.255.0', 'duration': 27.774, 'max_score': 1440.382, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1440382.jpg'}], 'start': 1228.234, 'title': 'Configuring static ip address with vim', 'summary': 'Demonstrates how to configure a static ip address using vim, specifying the address as 10.1.10.54, subnet mask as 255.255.255.0, network as 10.1.10.0, broadcast address as 10.1.10.255, and default gateway as 10.1.10.1.', 'chapters': [{'end': 1305.789, 'start': 1228.234, 'title': 'Configuring static ip address', 'summary': 'Demonstrates how to configure a static ip address for the computer using vim, starting with opening the interfaces file and modifying the network settings, including specifying the network interface and its negotiation speed.', 'duration': 77.555, 'highlights': ["The chapter demonstrates how to open and edit the interfaces file using vim to give the computer a static IP address, relying on the 'sudo vim /etc/network/interfaces' command.", "It explains the significance of 'auto F0' indicating the first network card and its auto-negotiation capability, which determines the network speed and duplex mode.", "The chapter provides insights into the 'iface eth0' line, indicating the network interface to be configured."]}, {'end': 1486.958, 'start': 1305.929, 'title': 'Configuring static ip address with vim', 'summary': 'Demonstrates how to configure a static ip address using vim, specifying the address as 10.1.10.54, subnet mask as 255.255.255.0, network as 10.1.10.0, broadcast address as 10.1.10.255, and default gateway as 10.1.10.1.', 'duration': 181.029, 'highlights': ['The process of configuring a static IP address using Vim is demonstrated, with the specific address being 10.1.10.54, subnet mask as 255.255.255.0, network as 10.1.10.0, broadcast address as 10.1.10.255, and default gateway as 10.1.10.1.', 'Explanation of the components of a static IP address, including address, subnet mask, network, broadcast address, and default gateway, is provided, with emphasis on their significance and usage within a network environment.']}], 'duration': 258.724, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1228234.jpg', 'highlights': ["The chapter demonstrates how to open and edit the interfaces file using vim to give the computer a static IP address, relying on the 'sudo vim /etc/network/interfaces' command.", 'The process of configuring a static IP address using Vim is demonstrated, with the specific address being 10.1.10.54, subnet mask as 255.255.255.0, network as 10.1.10.0, broadcast address as 10.1.10.255, and default gateway as 10.1.10.1.', "It explains the significance of 'auto F0' indicating the first network card and its auto-negotiation capability, which determines the network speed and duplex mode.", 'Explanation of the components of a static IP address, including address, subnet mask, network, broadcast address, and default gateway, is provided, with emphasis on their significance and usage within a network environment.', "The chapter provides insights into the 'iface eth0' line, indicating the network interface to be configured."]}, {'end': 1974.578, 'segs': [{'end': 1570.991, 'src': 'heatmap', 'start': 1505.342, 'weight': 1, 'content': [{'end': 1510.886, 'text': 'Of course you know the web browsers or everything is basically based off DNS addresses.', 'start': 1505.342, 'duration': 5.544}, {'end': 1518.412, 'text': 'So you have to put in a DNS address into the resolve.conf file so that the computer can resolve the DNS address.', 'start': 1511.447, 'duration': 6.965}, {'end': 1522.095, 'text': 'So you do sudo vim utc resolv.conf.', 'start': 1518.913, 'duration': 3.182}, {'end': 1531.545, 'text': 'and then hit enter.', 'start': 1530.905, 'duration': 0.64}, {'end': 1536.486, 'text': 'So, when we open it up, it has here nameserver 10.1.', 'start': 1532.465, 'duration': 4.021}, {'end': 1538.447, 'text': '10.1, so it was already in here.', 'start': 1536.486, 'duration': 1.961}, {'end': 1542.748, 'text': 'If it was not in here, we would hit A again, and we would actually insert it.', 'start': 1538.927, 'duration': 3.821}, {'end': 1544.629, 'text': "But it's already in here, so we can just quit.", 'start': 1542.788, 'duration': 1.841}, {'end': 1550.911, 'text': "Now that we've done that, the next thing is the hostname.", 'start': 1547.19, 'duration': 3.721}, {'end': 1558.303, 'text': 'So to see what the hostname of the computer is, you run sudo forward slash bin forward slash hostname.', 'start': 1551.251, 'duration': 7.052}, {'end': 1563.626, 'text': 'So sudo space forward slash bin forward slash hostname.', 'start': 1558.323, 'duration': 5.303}, {'end': 1570.991, 'text': 'And this says that the hostname of this computer is server.', 'start': 1566.748, 'duration': 4.243}], 'summary': "Configure dns address in resolve.conf; hostname is 'server'.", 'duration': 65.649, 'max_score': 1505.342, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1505342.jpg'}, {'end': 1544.629, 'src': 'embed', 'start': 1511.447, 'weight': 1, 'content': [{'end': 1518.412, 'text': 'So you have to put in a DNS address into the resolve.conf file so that the computer can resolve the DNS address.', 'start': 1511.447, 'duration': 6.965}, {'end': 1522.095, 'text': 'So you do sudo vim utc resolv.conf.', 'start': 1518.913, 'duration': 3.182}, {'end': 1531.545, 'text': 'and then hit enter.', 'start': 1530.905, 'duration': 0.64}, {'end': 1536.486, 'text': 'So, when we open it up, it has here nameserver 10.1.', 'start': 1532.465, 'duration': 4.021}, {'end': 1538.447, 'text': '10.1, so it was already in here.', 'start': 1536.486, 'duration': 1.961}, {'end': 1542.748, 'text': 'If it was not in here, we would hit A again, and we would actually insert it.', 'start': 1538.927, 'duration': 3.821}, {'end': 1544.629, 'text': "But it's already in here, so we can just quit.", 'start': 1542.788, 'duration': 1.841}], 'summary': 'Add dns address to resolve.conf file for dns resolution.', 'duration': 33.182, 'max_score': 1511.447, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1511447.jpg'}, {'end': 1608.953, 'src': 'embed', 'start': 1574.973, 'weight': 0, 'content': [{'end': 1591.28, 'text': 'So we do sudo again space forward slash bin forward slash host name, space, and then new server, new server, and then enter.', 'start': 1574.973, 'duration': 16.307}, {'end': 1595.503, 'text': "And that's all you have to do to change the host name.", 'start': 1591.52, 'duration': 3.983}, {'end': 1601.808, 'text': 'Now if we run the host name command again, we will see that the computer is now called new server.', 'start': 1595.583, 'duration': 6.225}, {'end': 1608.953, 'text': 'So that is all you have to do to configure the IP address on your Linux server.', 'start': 1602.368, 'duration': 6.585}], 'summary': "Changing host name to 'new server' on linux server.", 'duration': 33.98, 'max_score': 1574.973, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1574973.jpg'}, {'end': 1684.888, 'src': 'embed', 'start': 1657.46, 'weight': 3, 'content': [{'end': 1660.061, 'text': 'the ping command can be absolutely invaluable.', 'start': 1657.46, 'duration': 2.601}, {'end': 1665.663, 'text': "This tells you whether or not your computer is talking to anything else on the network, or how far out on the network it's talking.", 'start': 1660.441, 'duration': 5.222}, {'end': 1673.865, 'text': "So basically, if you're trying to see if your computer can reach, can contact, let's say the router.", 'start': 1666.223, 'duration': 7.642}, {'end': 1677.386, 'text': 'So your modem or your router that goes to the outside world.', 'start': 1674.125, 'duration': 3.261}, {'end': 1680.677, 'text': "Let's imagine that that router, the IP address is 10.1.", 'start': 1677.746, 'duration': 2.931}, {'end': 1684.888, 'text': '10.1 So this is a pretty normal IP address for routers.', 'start': 1680.677, 'duration': 4.211}], 'summary': 'Using the ping command can help determine network connectivity and reachability, such as contacting the router with the ip address 10.1.', 'duration': 27.428, 'max_score': 1657.46, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1657460.jpg'}, {'end': 1805.487, 'src': 'embed', 'start': 1772.104, 'weight': 4, 'content': [{'end': 1776.787, 'text': "So the ping command, like I say, works in Windows, works in Linux, and it's absolutely wonderful.", 'start': 1772.104, 'duration': 4.683}, {'end': 1783.851, 'text': "The one thing with Linux that's kind of a little weird, different than Windows, I suppose, is that it doesn't automatically stop.", 'start': 1777.107, 'duration': 6.744}, {'end': 1789.375, 'text': "In the Windows world, if you do ping everymanit.com, it'll do it four times and then it'll stop.", 'start': 1783.911, 'duration': 5.464}, {'end': 1795.559, 'text': "In Linux, it'll just keep going and going and going and going and going forever.", 'start': 1789.395, 'duration': 6.164}, {'end': 1805.487, 'text': 'So the main thing, I think we talked about in one of our other classes, in order to break out of a routine in Linux is you put hold control C.', 'start': 1796.239, 'duration': 9.248}], 'summary': "The ping command works in windows and linux, but in linux it doesn't automatically stop like in windows; it keeps going indefinitely.", 'duration': 33.383, 'max_score': 1772.104, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1772104.jpg'}, {'end': 1892.832, 'src': 'embed', 'start': 1862.562, 'weight': 2, 'content': [{'end': 1864.063, 'text': 'And that will stop the ping command.', 'start': 1862.562, 'duration': 1.501}, {'end': 1869.365, 'text': "Now, let's say I want to make sure that my DNS is working, so things are resolving properly.", 'start': 1864.643, 'duration': 4.722}, {'end': 1870.886, 'text': 'So I would do ping again.', 'start': 1869.425, 'duration': 1.461}, {'end': 1877.068, 'text': 'Then I would do www.everymanit.com.', 'start': 1871.606, 'duration': 5.462}, {'end': 1885.497, 'text': 'So this is going to ping my website and make sure it can resolve, or this computer can resolve, a domain name to an IP address.', 'start': 1877.549, 'duration': 7.948}, {'end': 1888.94, 'text': 'So if I hit that, so it says ping everymanit.', 'start': 1885.697, 'duration': 3.243}, {'end': 1892.832, 'text': 'It shows the actual IP address, 207.114.', 'start': 1889.361, 'duration': 3.471}], 'summary': 'Testing dns by pinging www.everymanit.com and verifying resolution to ip address 207.114.', 'duration': 30.27, 'max_score': 1862.562, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1862562.jpg'}], 'start': 1487.098, 'title': 'Dns, hostname, and ping', 'summary': 'Covers configuring dns and hostname on a linux server, including modifying resolve.conf file and changing hostname. it also discusses using ping command for troubleshooting network connectivity issues in linux and windows, emphasizing its importance.', 'chapters': [{'end': 1629.807, 'start': 1487.098, 'title': 'Configuring dns and hostname on linux server', 'summary': 'Explains how to configure the dns address and hostname on a linux server, including modifying the resolve.conf file with a dns address and changing the hostname using command line, emphasizing the importance of these configurations for web browsing and server identification.', 'duration': 142.709, 'highlights': ["The importance of adding a DNS address to the resolve.conf file to enable the computer to resolve DNS addresses is emphasized, with the specific command 'sudo vim utc resolv.conf' and the requirement of adding the DNS address if not present.", "The process of changing the hostname of the computer is demonstrated using the command 'sudo /bin/hostname new_server', highlighting the ease of the process and the ability to verify the change with the 'hostname' command."]}, {'end': 1974.578, 'start': 1630.527, 'title': 'Using ping for troubleshooting', 'summary': 'Discusses the use of the ping command for troubleshooting network connectivity issues, highlighting its importance in determining network reachability, diagnosing dns issues, and stopping the command in linux. it emphasizes the ability to use ping in both linux and windows for troubleshooting.', 'duration': 344.051, 'highlights': ["The Ping command is invaluable for troubleshooting network connectivity, as it determines whether the computer can communicate with other devices on the network and how far out on the network it can communicate. The Ping command provides valuable information about the computer's ability to communicate with other devices on the network and assesses the extent of network reachability.", 'It is crucial for diagnosing DNS issues by using the Ping command to check if a domain name can be resolved to an IP address, ensuring proper DNS functionality. The Ping command can be used to diagnose DNS issues by verifying if a domain name can be resolved to an IP address, indicating the proper functionality of DNS.', 'In Linux, the Ping command does not automatically stop and can be terminated by holding down the control key and pressing C, unlike in Windows where it stops after a specific number of attempts. The Ping command in Linux requires manual termination using the control key and C, unlike Windows where it automatically stops after a set number of attempts.']}], 'duration': 487.48, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1487098.jpg', 'highlights': ["The process of changing the hostname of the computer is demonstrated using the command 'sudo /bin/hostname new_server', highlighting the ease of the process and the ability to verify the change with the 'hostname' command.", "The importance of adding a DNS address to the resolve.conf file to enable the computer to resolve DNS addresses is emphasized, with the specific command 'sudo vim utc resolv.conf' and the requirement of adding the DNS address if not present.", 'It is crucial for diagnosing DNS issues by using the Ping command to check if a domain name can be resolved to an IP address, ensuring proper DNS functionality.', 'The Ping command is invaluable for troubleshooting network connectivity, as it determines whether the computer can communicate with other devices on the network and how far out on the network it can communicate.', 'In Linux, the Ping command does not automatically stop and can be terminated by holding down the control key and pressing C, unlike in Windows where it stops after a specific number of attempts.']}, {'end': 2450.179, 'segs': [{'end': 2026.556, 'src': 'embed', 'start': 1998.403, 'weight': 4, 'content': [{'end': 2009.832, 'text': "ubuntu, linux comes with a built-in firewall and it's called u, f, w and by and large it is very secure, very robust and and easy to use it,", 'start': 1998.403, 'duration': 11.429}, {'end': 2011.353, 'text': 'as long as you know the commands.', 'start': 2009.832, 'duration': 1.521}, {'end': 2017.077, 'text': 'so the first command that you should learn is called sudo ufw status.', 'start': 2011.353, 'duration': 5.724}, {'end': 2026.556, 'text': 'so sudo, This will show you the status of the firewall.', 'start': 2017.077, 'duration': 9.479}], 'summary': "Ubuntu's built-in firewall, ufw, is secure, robust, and easy to use. the command 'sudo ufw status' displays firewall status.", 'duration': 28.153, 'max_score': 1998.403, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1998403.jpg'}, {'end': 2133.519, 'src': 'embed', 'start': 2101.613, 'weight': 0, 'content': [{'end': 2105.295, 'text': "Again, as we've talked about, this is a security decision on your part.", 'start': 2101.613, 'duration': 3.682}, {'end': 2106.915, 'text': 'I can only tell you how to do it.', 'start': 2105.915, 'duration': 1}, {'end': 2109.016, 'text': "I can't tell you why you should or shouldn't do it.", 'start': 2107.015, 'duration': 2.001}, {'end': 2114.138, 'text': "So, that's the status and that's the default setting.", 'start': 2109.737, 'duration': 4.401}, {'end': 2115.219, 'text': 'Pretty simple.', 'start': 2114.659, 'duration': 0.56}, {'end': 2127.374, 'text': 'Now, to turn on UFW, all you do is you do sudo ufw and then you either do enable or disable.', 'start': 2115.619, 'duration': 11.755}, {'end': 2133.519, 'text': 'So, if you want to turn on your firewall, sudo ufw enable.', 'start': 2128.895, 'duration': 4.624}], 'summary': "Enabling ufw involves using 'sudo ufw enable' to turn on the firewall.", 'duration': 31.906, 'max_score': 2101.613, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ2101613.jpg'}, {'end': 2409.215, 'src': 'embed', 'start': 2369.083, 'weight': 1, 'content': [{'end': 2372.947, 'text': "This allows you to use that IP range to connect to whatever system it is you're connecting to.", 'start': 2369.083, 'duration': 3.864}, {'end': 2381.029, 'text': 'So this sudo ufw allow from, this says, again, from any specific IP address.', 'start': 2373.487, 'duration': 7.542}, {'end': 2389.472, 'text': 'Then, if you want to tighten that down, you can say from whatever specific IP address to a specific port number.', 'start': 2381.91, 'duration': 7.562}, {'end': 2403.052, 'text': "So again, so you'd say sudo ufw allow, let's say from, 207.88.", 'start': 2389.492, 'duration': 13.56}, {'end': 2409.215, 'text': "1.40 to let's say 22, I think 22 is SSH.", 'start': 2403.052, 'duration': 6.163}], 'summary': 'Configuring ip range for system connection via sudo ufw allow command.', 'duration': 40.132, 'max_score': 2369.083, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ2369083.jpg'}, {'end': 2460.368, 'src': 'embed', 'start': 2432.063, 'weight': 2, 'content': [{'end': 2433.944, 'text': "So it's going to be connected directly to the internet.", 'start': 2432.063, 'duration': 1.881}, {'end': 2439.269, 'text': 'So, being able to put in these rules basically makes your server a whole hell of a lot more secure.', 'start': 2434.344, 'duration': 4.925}, {'end': 2446.576, 'text': 'So, like I say, with me and the web servers, I make it so my home static IP address and my business static IP address can get in.', 'start': 2439.649, 'duration': 6.927}, {'end': 2447.997, 'text': 'Nobody else can get in.', 'start': 2446.996, 'duration': 1.001}, {'end': 2450.179, 'text': 'Like I say, makes things more secure.', 'start': 2448.017, 'duration': 2.162}, {'end': 2460.368, 'text': "For that, sudo ufw allow or deny, if there's a reason to deny it, from IP address to that particular port number.", 'start': 2450.339, 'duration': 10.029}], 'summary': 'Configuring server rules increases security by restricting access to specific ip addresses and port numbers.', 'duration': 28.305, 'max_score': 2432.063, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ2432063.jpg'}], 'start': 1974.578, 'title': 'Ufw firewall and ip address management', 'summary': 'Covers ufw firewall basics, including commands for status checking, default parameter setting, and allowing/denying specific ports, emphasizing security decisions. it also explains ip address blocking and allowing using sudo ufw command, enhancing server security.', 'chapters': [{'end': 2283.702, 'start': 1974.578, 'title': 'Ufw firewall basics', 'summary': 'Explains the basics of the ufw firewall, including commands for checking status, setting default parameters, enabling/disabling, allowing/denying specific ports, and deleting rules, emphasizing the importance of making security decisions for server protection.', 'duration': 309.124, 'highlights': ['The chapter explains the basics of the UFW firewall, including commands for checking status, setting default parameters, enabling/disabling, allowing/denying specific ports, and deleting rules, emphasizing the importance of making security decisions for server protection.', "The first command to learn is 'sudo ufw status' which shows the status of the firewall and its rules.", "Setting the default parameters for the firewall involves using 'sudo ufw default' followed by 'allow' or 'deny' to define whether the firewall should allow or deny all traffic by default.", "Enabling and disabling the UFW firewall is achieved using 'sudo ufw enable' and 'sudo ufw disable' respectively.", "Allowing or denying specific ports on the firewall is done using 'sudo ufw allow' or 'sudo ufw deny', followed by the port number, to control incoming traffic.", "To delete a specific rule from the firewall, the command 'sudo ufw delete' followed by 'allow' or 'deny', and the port number, is used to remove the rule."]}, {'end': 2450.179, 'start': 2286.924, 'title': 'Ip address blocking and allowing', 'summary': 'Explains how to block and allow access by ip addresses using sudo ufw command, including the use of wildcards and specific port numbers, making servers more secure.', 'duration': 163.255, 'highlights': ['The sudo ufw command allows blocking or allowing access by specific IP addresses, with the option to use wildcards like 207.10.star.star for broader access.', 'In an enterprise environment, using IP ranges for connecting to systems can be facilitated by the sudo ufw allow from command, making it easier to manage access.', 'Using sudo ufw allow from command with specific port numbers, such as 22 for SSH, allows precise control over which IP addresses are allowed to access specific ports, enhancing server security.', 'The primary reason for using Linux servers is to have a powerful and secure server facing the internet, and implementing these rules significantly enhances server security.', 'By configuring the server to only allow access from specific static IP addresses, the overall security of the server is greatly improved.']}], 'duration': 475.601, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ1974578.jpg', 'highlights': ['The chapter explains the basics of the UFW firewall, including commands for checking status, setting default parameters, enabling/disabling, allowing/denying specific ports, and deleting rules, emphasizing the importance of making security decisions for server protection.', 'Using sudo ufw allow from command with specific port numbers, such as 22 for SSH, allows precise control over which IP addresses are allowed to access specific ports, enhancing server security.', 'By configuring the server to only allow access from specific static IP addresses, the overall security of the server is greatly improved.', 'In an enterprise environment, using IP ranges for connecting to systems can be facilitated by the sudo ufw allow from command, making it easier to manage access.', "The first command to learn is 'sudo ufw status' which shows the status of the firewall and its rules."]}, {'end': 3073.053, 'segs': [{'end': 2550.533, 'src': 'embed', 'start': 2500.832, 'weight': 0, 'content': [{'end': 2505.254, 'text': 'Because if the default is to allow everything when the firewall is on, that kind of defeats the purpose.', 'start': 2500.832, 'duration': 4.422}, {'end': 2516.414, 'text': 'So the command to make sure that the default is to deny everything is sudo ufw default space deny.', 'start': 2505.754, 'duration': 10.66}, {'end': 2520.915, 'text': 'And this will make sure that when you turn the firewall on that everything is blocked.', 'start': 2517.154, 'duration': 3.761}, {'end': 2523.076, 'text': 'So we hit enter.', 'start': 2521.956, 'duration': 1.12}, {'end': 2525.437, 'text': 'Default incoming policy changed to deny.', 'start': 2523.116, 'duration': 2.321}, {'end': 2535.04, 'text': 'Now, in order to turn the firewall on, we do sudo space ufw space enable.', 'start': 2526.137, 'duration': 8.903}, {'end': 2540.484, 'text': 'Enter And now that has turned the firewall on.', 'start': 2536.861, 'duration': 3.623}, {'end': 2546.389, 'text': 'Since the firewall is now on, we should check to see what the status of the rules are.', 'start': 2541.144, 'duration': 5.245}, {'end': 2550.533, 'text': 'So when you check the status and the firewall is off, you just see status inactive.', 'start': 2546.509, 'duration': 4.024}], 'summary': 'Setting default deny for firewall to block all traffic.', 'duration': 49.701, 'max_score': 2500.832, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ2500832.jpg'}, {'end': 2656.91, 'src': 'embed', 'start': 2627.334, 'weight': 3, 'content': [{'end': 2636.844, 'text': "Now that that's happened, let's say that we want to delete a So let's say we wanted to not allow people to get to port 80.", 'start': 2627.334, 'duration': 9.51}, {'end': 2638.505, 'text': 'That, again, is just very simple.', 'start': 2636.844, 'duration': 1.661}, {'end': 2649.768, 'text': 'You just sudo ufw all you say is delete the rule that you want to delete.', 'start': 2638.805, 'duration': 10.963}, {'end': 2653.589, 'text': 'So our rule that we wanted was allow 80.', 'start': 2649.848, 'duration': 3.741}, {'end': 2656.91, 'text': 'So if we allowed 80, that means people can get in through the web service.', 'start': 2653.589, 'duration': 3.321}], 'summary': "Using sudo ufw to delete rule 'allow 80' prevents access on port 80.", 'duration': 29.576, 'max_score': 2627.334, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ2627334.jpg'}, {'end': 2716.424, 'src': 'embed', 'start': 2682.121, 'weight': 4, 'content': [{'end': 2686.066, 'text': 'It just needs to be able to do whatever it wants to do on this server.', 'start': 2682.121, 'duration': 3.945}, {'end': 2692.235, 'text': 'To open up all the ports on the server for a specific IP address.', 'start': 2686.146, 'duration': 6.089}, {'end': 2707.664, 'text': "all you do is you do sudo space, ufw space, allow space from and let's say a local computer, so 10.1..", 'start': 2692.235, 'duration': 15.429}, {'end': 2713.27, 'text': '10.65 So by running this rule, it means that the computer at IP address 10.1.', 'start': 2707.664, 'duration': 5.606}, {'end': 2716.424, 'text': '10.65 will be able to access all the ports on the server.', 'start': 2713.27, 'duration': 3.154}], 'summary': 'Open all server ports for ip 10.1.10.65 using sudo ufw allow command.', 'duration': 34.303, 'max_score': 2682.121, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ2682121.jpg'}, {'end': 2870.789, 'src': 'embed', 'start': 2842.847, 'weight': 7, 'content': [{'end': 2845.488, 'text': "But that's all there is to UFW.", 'start': 2842.847, 'duration': 2.641}, {'end': 2847.828, 'text': 'It does take a little bit of playing around with.', 'start': 2846.028, 'duration': 1.8}, {'end': 2851.129, 'text': "But overall, it's a very simple firewall system.", 'start': 2847.908, 'duration': 3.221}, {'end': 2854.45, 'text': 'Basically, again, as long as you know the commands.', 'start': 2852.11, 'duration': 2.34}, {'end': 2856.811, 'text': "So let's go back out to the real world and have some final thoughts.", 'start': 2854.51, 'duration': 2.301}, {'end': 2867.306, 'text': "So that's basically all you need to know for Linux server and network configurations.", 'start': 2862.543, 'duration': 4.763}, {'end': 2869.468, 'text': 'I showed you the configuration file.', 'start': 2867.387, 'duration': 2.081}, {'end': 2870.789, 'text': 'I showed you how that works.', 'start': 2869.468, 'duration': 1.321}], 'summary': 'Ufw is a simple firewall system for linux, requiring familiarity with commands.', 'duration': 27.942, 'max_score': 2842.847, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ2842847.jpg'}, {'end': 2942.49, 'src': 'embed', 'start': 2891.789, 'weight': 6, 'content': [{'end': 2900.174, 'text': 'The drivers it has out of the box almost always work, I mean like 99.9% of the time, especially for things like networking.', 'start': 2891.789, 'duration': 8.385}, {'end': 2904.736, 'text': "It just works, and it just works well, and you normally don't have to worry about it.", 'start': 2900.554, 'duration': 4.182}, {'end': 2912.34, 'text': "So if you have one of the random computers that you actually need to worry about the network card drivers, that's kind of just an advanced topic,", 'start': 2905.096, 'duration': 7.244}, {'end': 2915.322, 'text': 'because it just happens so unusually.', 'start': 2912.34, 'duration': 2.982}, {'end': 2924.744, 'text': 'Also, we did not go out for wireless configurations in this class, because again, talking to you guys, this is mainly about servers.', 'start': 2916.002, 'duration': 8.742}, {'end': 2929.326, 'text': 'Usually servers are not actually connected using wireless networking.', 'start': 2925.165, 'duration': 4.161}, {'end': 2937.328, 'text': "Again, you can connect your Ubuntu server using wireless networking, but it's its own little kettle of fish.", 'start': 2929.846, 'duration': 7.482}, {'end': 2940.829, 'text': 'It takes its own little class to understand.', 'start': 2937.548, 'duration': 3.281}, {'end': 2942.49, 'text': 'We may have a class on it later.', 'start': 2941.049, 'duration': 1.441}], 'summary': 'Ubuntu drivers work 99.9% of the time, especially for networking. servers are not usually connected using wireless networking.', 'duration': 50.701, 'max_score': 2891.789, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ2891789.jpg'}, {'end': 2986.24, 'src': 'embed', 'start': 2958.841, 'weight': 8, 'content': [{'end': 2966.386, 'text': 'The main thing I need you to remember with all of this is again, when you change the interfaces file or any network configurations,', 'start': 2958.841, 'duration': 7.545}, {'end': 2968.167, 'text': 'make sure to restart the service.', 'start': 2966.386, 'duration': 1.781}, {'end': 2974.191, 'text': "If you do not restart the networking service, you're going to have all kinds of problems and you're not going to understand what's going on.", 'start': 2968.287, 'duration': 5.904}, {'end': 2979.255, 'text': "And the only reason you're having the problems is because the server has not reloaded all those configurations.", 'start': 2974.311, 'duration': 4.944}, {'end': 2986.24, 'text': "The other thing is, remember the DNS and the host name are not in the interface's file.", 'start': 2979.735, 'duration': 6.505}], 'summary': 'Restart networking service after changing interfaces file to avoid problems.', 'duration': 27.399, 'max_score': 2958.841, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ2958841.jpg'}, {'end': 3052.814, 'src': 'embed', 'start': 3021.786, 'weight': 10, 'content': [{'end': 3023.207, 'text': 'you know, ping will keep running.', 'start': 3021.786, 'duration': 1.421}, {'end': 3025.529, 'text': "It's not like Windows where it shuts off after four attempts.", 'start': 3023.287, 'duration': 2.242}, {'end': 3031.655, 'text': 'So we just hit the control C to break out of the little ping command.', 'start': 3025.93, 'duration': 5.725}, {'end': 3032.315, 'text': 'You should be good.', 'start': 3031.715, 'duration': 0.6}, {'end': 3038.181, 'text': "And also, like I said, if you're trying to find information about your network cards, you know, IP addresses, etc.", 'start': 3032.736, 'duration': 5.445}, {'end': 3041.103, 'text': ', the ifconfig command will show you that.', 'start': 3038.181, 'duration': 2.922}, {'end': 3045.487, 'text': "So it'll say f0, this is the MAC address, this is the IP address, whatever.", 'start': 3041.123, 'duration': 4.364}, {'end': 3048.33, 'text': 'You know, f1, this is the MAC address, da-da-da.', 'start': 3045.848, 'duration': 2.482}, {'end': 3052.814, 'text': "So, you know, really, that's all there is to Linux networking.", 'start': 3048.79, 'duration': 4.024}], 'summary': 'In linux, ping runs continuously unlike windows. use ifconfig to find network information.', 'duration': 31.028, 'max_score': 3021.786, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ3021786.jpg'}], 'start': 2450.339, 'title': 'Configuring ufw and linux networking basics', 'summary': "Demonstrates configuring ufw firewall on ubuntu server, including setting default deny policy, enabling firewall, and managing ports. it also covers linux networking basics, including ufw simplicity, linux drivers' effectiveness, wireless configurations omission, and the importance of restarting the networking service after making changes to the interfaces file.", 'chapters': [{'end': 2571.637, 'start': 2450.339, 'title': 'Configuring ufw firewall on ubuntu server', 'summary': 'Demonstrates how to configure the ufw firewall on an ubuntu server, including setting the default policy to deny, enabling the firewall, and checking the status and rules.', 'duration': 121.298, 'highlights': ['The command to make sure that the default is to deny everything is sudo ufw default deny, ensuring that all traffic is blocked by default.', 'Enabling the firewall with sudo ufw enable turns on the firewall, while checking the status and rules allows monitoring of the current configuration.', 'The status of UFW can be checked with sudo UFW status, and the default policy can be set using sudo ufw default deny.']}, {'end': 2842.487, 'start': 2572.377, 'title': 'Configuring and managing ports with ufw', 'summary': 'Explains how to manage ports using ufw, including opening and deleting rules, allowing specific ip addresses to access all ports, and permitting external ip addresses to access specific ports, such as ssh, with practical examples.', 'duration': 270.11, 'highlights': ["To open a port for everyone, use 'sudo ufw allow 80' to allow access to port 80, and to delete the rule, use 'sudo ufw delete allow 80'. Opening and deleting rules for port 80, allowing or denying access to the web server.", "To allow a specific IP address to access all ports on the server, use 'sudo ufw allow from '. Granting a specific IP address access to all ports on the server.", "To allow an external IP address to access a specific port, use 'sudo ufw allow from to any port '. Granting an external IP address access to a specific port, such as SSH."]}, {'end': 3073.053, 'start': 2842.847, 'title': 'Linux networking basics', 'summary': 'Covered basic linux networking configurations, including the simplicity of ufw firewall system, the effectiveness of linux drivers (working 99.9% of the time), the omission of wireless configurations for server setups, and the importance of restarting the networking service after making changes to the interfaces file.', 'duration': 230.206, 'highlights': ['The effectiveness of Linux drivers out of the box, working almost 99.9% of the time, especially for networking, simplifying the configuration process.', 'The simplicity of UFW (Uncomplicated Firewall) system, which is easy to use once the commands are known, making it a straightforward firewall system for Linux.', 'Emphasizing the importance of restarting the networking service after making changes to the interfaces file to avoid problems and ensure that the server reloads all configurations.', 'The omission of wireless configurations in the class, as it mainly focuses on server setups, where wireless networking is rarely used and considered an advanced topic that may be covered in a future class.', 'The recommendation to use the ping command for basic network troubleshooting in Linux, with the ability to keep it running until manually stopped, unlike Windows where it stops after four attempts.', "The ifconfig command's functionality in displaying network card information, including MAC addresses and IP addresses, providing a simple way to retrieve network card details."]}], 'duration': 622.714, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/PEa1xopeufQ/pics/PEa1xopeufQ2450339.jpg', 'highlights': ['The command to make sure that the default is to deny everything is sudo ufw default deny, ensuring that all traffic is blocked by default.', 'Enabling the firewall with sudo ufw enable turns on the firewall, while checking the status and rules allows monitoring of the current configuration.', 'The status of UFW can be checked with sudo UFW status, and the default policy can be set using sudo ufw default deny.', "To open a port for everyone, use 'sudo ufw allow 80' to allow access to port 80, and to delete the rule, use 'sudo ufw delete allow 80'. Opening and deleting rules for port 80, allowing or denying access to the web server.", "To allow a specific IP address to access all ports on the server, use 'sudo ufw allow from '. Granting a specific IP address access to all ports on the server.", "To allow an external IP address to access a specific port, use 'sudo ufw allow from to any port '. Granting an external IP address access to a specific port, such as SSH.", 'The effectiveness of Linux drivers out of the box, working almost 99.9% of the time, especially for networking, simplifying the configuration process.', 'The simplicity of UFW (Uncomplicated Firewall) system, which is easy to use once the commands are known, making it a straightforward firewall system for Linux.', 'Emphasizing the importance of restarting the networking service after making changes to the interfaces file to avoid problems and ensure that the server reloads all configurations.', 'The omission of wireless configurations in the class, as it mainly focuses on server setups, where wireless networking is rarely used and considered an advanced topic that may be covered in a future class.', 'The recommendation to use the ping command for basic network troubleshooting in Linux, with the ability to keep it running until manually stopped, unlike Windows where it stops after four attempts.', "The ifconfig command's functionality in displaying network card information, including MAC addresses and IP addresses, providing a simple way to retrieve network card details."]}], 'highlights': ['The class will teach specific commands to connect a Linux server to the network and internet.', 'Using dhclient allows for the release and renewal of IP addresses, useful for troubleshooting network issues.', "The process of changing the hostname in Linux is simple, involving the use of the 'sudo /bin/hostname' command, and it also requires restarting the networking services.", 'The chapter explains the basics of the UFW firewall, including commands for checking status, setting default parameters, enabling/disabling, allowing/denying specific ports, and deleting rules, emphasizing the importance of making security decisions for server protection.', 'The process of configuring a static IP address using Vim is demonstrated, with the specific address being 10.1.10.54, subnet mask as 255.255.255.0, network as 10.1.10.0, broadcast address as 10.1.10.255, and default gateway as 10.1.10.1.', "The process of changing the hostname of the computer is demonstrated using the command 'sudo /bin/hostname new_server', highlighting the ease of the process and the ability to verify the change with the 'hostname' command.", "The chapter provides insights into the 'iface eth0' line, indicating the network interface to be configured.", "The chapter explains the significance of 'auto F0' indicating the first network card and its auto-negotiation capability, which determines the network speed and duplex mode.", "The chapter demonstrates how to open and edit the interfaces file using vim to give the computer a static IP address, relying on the 'sudo vim /etc/network/interfaces' command.", 'The process of configuring a static IP address The chapter explains the process of setting up a static IP address, demonstrating how to locate the IP address, subnet mask, network, broadcast address, and default gateway, providing a clear understanding of the key components.']}