Creating and Configuring a Network Load Balancer in AWS

1.25 hours
  • 2 Learning Objectives

About this Hands-on Lab

In the learning activity, the student will learn about Network Load Balancers. The lesson will take a deeper dive into the Network Load Balancer, presenting its features and use case, and highlighting comparisons between the Network Load Balancer and the Application Load Balancer. The student will walk through preparing the AWS environment for the Network Load Balancer (configuring subnets, network ACL, and EC2 instances). When the preparation is complete, the student will create and configure a Network Load Balancer. After configuration of the Load Balancer, the student will work from the CLI to run a small test on the Load Balancer and view the results in the CloudWatch Monitor.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create one subnet.
  • From the AWS Management Console, select VPC
  • Select Subnets
  • You will see one subnet already created. To create a second subnet, click Subnets
  • Click Create Subnets
  • Name the subnet
  • Select the VPC provided
  • Select two AZs for which you will create and launch two EC2 instances into (later in the Learning Activity)
  • Enter a CIDR block which will not overlap with the CIDR block of the existing subnet
Create one Network Load Balancer.
  • From the AWS Management Console, select EC2
  • Select Load Balancers
  • Select Create Load Balancer
  • Under Network Load Balancer, click Create
  • Name the Load Balancer
  • Select the 2 Availability Zones for which your subnets are linked to
  • Click Next: Configure Routing
  • Name the Target Group and click Next: Register Targets
  • Select the 2 instances you created and click Add to registered
  • Click Next: Review
  • Click Create

Additional Resources

  1. Please log in to the live environment with the cloud_user credentials provided, but do NOT attempt to SSH or log into the Cloud Server.
    • Make sure you are using us-east-1 as your region throughout the learning activity.
    • The next 4 commands will configure the EC2 instances as web servers and ensure that the web server will be started on boot up:
    • sudo yum update -y
    • sudo yum install -y httpd
    • sudo service httpd start
    • sudo chkconfig httpd on
    • At the end of the learning activity, you will test the Network Load Balancer by sending a large amount of requests to it in a short time period. The following group of commands will create an endless loop which continually makes a request to the Network Load Balancer. When typing these commands, you only need to type the letters. The > characters are provided by the OS, so do not type that character:
      while true;
      > do
      > wget "paste in the DNS of the Load Balancer" &
      >

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!