Implement Custom Network Routes in Azure Virtual Network

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this hands-on lab, you are working as an Azure network engineer for Street Wise, a company that produces high-tech GPS applications. You’ve been asked to create a custom network route in order to route traffic heading for the server through a virtual appliance for inspection. To do so, you’ll use custom routes to direct traffic bound for the server’s virtual machine to a virtual appliance first, and then onward to the server.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Route Table and a Route

Create a route that specifies that traffic bound for the server virtual machine’s subnet should first hop to the virtual appliance’s IP address.

Make sure you create the route table in the same region as the other resources.

Associate the Route Table to a Subnet

Associate the route table to the user virtual machine’s subnet.

Enable IP Forwarding on the Virtual Appliance

On the NIC of the virtual appliance virtual machine, enable IP forwarding.

Test That Routing Is Working

Log in to the user virtual machine via remote desktop with the credentials provided on the lab page and use the tracert command to test if traffic is hopping to the virtual appliance first before heading to the server virtual machine’s IP address.

Additional Resources

Lab Setup

Log in to the Azure portal using the credentials provided on the lab page. Be sure to use an incognito or private browser window to ensure you're using the lab account, rather than your own.

Connect to the user-vm virtual machine via remote desktop (either through the Remote Desktop client available on Windows machines or through the Microsoft Remote Desktop application available for Mac machines) using the public IP address and credentials provided on the lab page.

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.

Sign In
Welcome Back!

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

Get Started
Who’s going to be learning?