Skip to content

Lab 2 — Enabling Features and Optimizing Network

Now that you've configured the basic network settings for your Meraki stack through the Dashboard, we will proceed to turn on features that will help customize how traffic and clients will be treated. This section of the lab will also include some instructions that help guide you through verification of these more advanced configurations.

Exercise A — Setting up Security Policies on the MX

  1. Select your Branch network from the Network drop-down menu in the top left corner of the page.

  2. On your Security & SD-WAN appliance, navigate to Configure > Firewall to create a Layer 7 firewall rule to completely block Peer-to-peer (P2P) traffic, specifically targeting BitTorrent.

  3. Navigate to Configure > SD-WAN & Traffic Shaping and take advantage of the MX's ability to traffic shape by enforcing a per-client bandwidth limit of 5 Mbps.

  4. Add a new traffic shaping rule for Netflix and Pandora. Choose a limit of 1 Mbps down, 500 Kbps up on this rule with a "Low" priority.

  5. Create a second (separate) traffic shaping rule for "All VoIP & video conferencing" traffic — ignore network bandwidth restrictions (unlimited) for this rule and ensure the applications are treated as "High" priority.

  6. Navigate to Configure > Content Filtering to enable content filtering for your MX by adding "Adult" and "Pornography" as website categories that will be blocked.

  7. Navigate to Configure > Threat Protection, enable Advanced Malware Protection, and set the Intrusion detection and prevention mode to Prevention with Balanced ruleset selected.

  8. Finally, to ensure the best audio and video call experience, bypass the AMP and IDS/IPS inspection by selecting Collaboration application category under Trusted Applications.

Exercise B — Auto VPN and Redundancy

As the organization's network architecture expands, we will roll out a scalable VPN deployment by leveraging the MX platform's Auto VPN ability in a hub-and-spoke topology.

  1. Navigate to your Datacenter network. From the Configure > Site-to-site VPN page, start by configuring your DC site as a "Hub".

  2. Enable VPN for only the Corp and AppServers networks/subnets by selecting "Enabled" from the drop-down menu of the "VPN mode" column.

  3. Switch to your Branch network and configure this site as a VPN "Spoke".

  4. Add Datacenter site as the hub and make sure a full tunnel VPN is established by checking the IPv4 default route box for the hub.

  5. Enable VPN for only the Corp and Voice networks/subnets by selecting "Enabled" from the drop-down menu of the "VPN mode" column.

    Note

    Allow a few minutes to pass before performing the verification pings in the following instructions. You must allow time for the MX appliance to update/synchronize its configurations with the Dashboard and allow the VPN information to be propagated to the cloud VPN registry.

VPN Configuration Verification

On your branch MX, verify that you now have connectivity to both subnets from datacenter with successful pings (choosing default as Source IP Address):

  • Corp subnet (10.20.10.0/24): 10.20.10.1
  • AppServers subnet (10.20.60.0/24): 10.20.60.1

What will happen to the above pings if you change the Source IP Address to VLAN 50? Can you explain why?

Hint

Navigate to the Tools tab of your Branch MX security appliance and use the ping tool.

Exercise C — Securing and Shaping Guest Wireless Access

We want to ensure that our wireless guest users cannot access any of the internal local network resources and restrict their overall network utilization.

  1. On your Branch network, begin by going Wireless > Configure > Firewall & Traffic Shaping and make sure you have selected the "Guest" SSID from the drop-down menu near the top.

  2. Edit the default outbound rules by adjusting the policy to "Deny" access to the Local LAN for all wireless clients that might try to access the LAN.

  3. Add three separate and unique Layer 7 firewall rules to block the following application and content categories: P2P (all types), File sharing (all types), and Gaming (all types).

  4. Limit the per-client bandwidth on this SSID to 1 Mbps (down/up) while still allowing unlimited bandwidth on a per-SSID basis (leave the other options as default).

Exercise D — Enable and Configure Routing on the Switch

In this exercise, you will connect your branch site to a shared private network through OSPF. Let's figure out which IP/subnet you should use to establish the OSPF neighboring.

  1. Navigate to the Branch network, select your switch on Switching > Switches page and navigate to the Ports tab.

    Note

    If the switch page is displayed in the new version, please switch to the old version by selecting "View old version" in the top right corner of the page.

  2. Select switch port #24 and you should see that the port is connected to an MS350 in the CDP/LLDP field.

  3. Select raw to review details of the remote port. Here, we are specifically interested in the "Port ID" field. You need to retrieve an offset, n, using the following equation: n = Port ID – 24.

    Hint

    If the Port ID is 25, then n is 1. If the value is 34, then n is 10. In the next step, you will use this number to determine the IP/subnet on your branch switch side.

    Important

    Please double-check that you interpret this correctly, as the n value is crucial to successfully establishing OSPF neighbors in the next few steps.

  4. Before we enable and configure OSPF routing on our network, we will first need to add some layer 3 interfaces. These will be created on the Configure > Routing & DHCP page of your switch. Create these interfaces using the following information:

    Interface: Corp

    Setting Value
    Switch (your switch)
    Name Corp
    VLAN 10
    Subnet 10.10.10.0/24
    Interface IP 10.10.10.201
    Default gateway 10.10.10.1
    Multicast routing Disabled
    Client addressing Do not respond to DHCP requests
    OSPF Area OSPF disabled

    Interface: Legacy

    Setting Value
    Switch (your switch)
    Name Legacy
    VLAN 150
    Subnet 10.10.150.0/24
    Interface IP 10.10.150.1
    Multicast routing Disabled
    Client addressing Run a DHCP server (use default settings)
    OSPF Area OSPF disabled

    Interface: OSPF

    Setting Value
    Switch (your switch)
    Name OSPF
    VLAN [100 + n]
    Subnet 192.168.[100 + n].0/24
    Interface IP 192.168.[100 + n].1
    Multicast routing Disabled
    Client addressing Do not respond to DHCP requests
    OSPF Area OSPF disabled

    Additional Reading

    To learn more about layer 3 routing capabilities on Meraki switches, reference the following knowledge base document: https://documentation.meraki.com/MS/Layer_3_Switching/MS_Layer_3_Switching_Overview

  5. Proceed by navigating to your Security & SD-WAN appliance's Configure > Addressing & VLANs page and create a static route to the "Legacy" subnet. This should have the following settings:

    • Enabled: Enabled
    • Name: Route to Legacy
    • IP version: IPv4
    • Subnet: 10.10.150.0/24
    • Next hop IP: 10.10.10.201
    • Active: Always
    • VPN mode: Enabled
  6. Go back to your switch and go to Monitor > Switch Ports to configure port 24 of your switch to be an access port in VLAN [100 + n].

  7. We are now ready to configure OSPF routing — start by navigating to Configure > OSPF Routing of your switch and enable OSPF. Once it has been turned on, proceed with the following configurations:

    • Add an area:
      • ID: 0
      • Name: Default Area
      • Type: Normal
    • Save. Then edit both the Legacy and OSPF interfaces (check the boxes of the respective rows in the table, then click the Edit button) with the following configurations:
      • Area: 0: Default Area
      • Cost: 1
      • Passive? No
    • Update interfaces
    • Edit the default static route with the following configurations:
      • Advertise via OSPF? No
      • Prefer over OSPF routes? Yes

Routing Configuration Verification

A. Verify that switch port 24 is now operational.

Hint

Go to your MS switch and use the Ping live tool to test the connectivity between the switch and remote IP address 192.168.[100 + n].254. Make sure to choose switch interface 192.168.[100 + n].1 as the source interface.

B. Verify that OSPF is functioning and that you are able to see your only neighbor (the data center switch) that should be listed as Router ID 10.0.250.1 on VLAN [100 + n]

Hint

You should be able to find a list of your OSPF neighbors on the tab named L3 Routing. This may take several minutes to populate.

C. Using the Ping tool (from the Tools tab of your switch) start a ping from the Legacy Source interface (10.10.150.1) to shared OSPF Infra (10.0.250.1) — this should be a series of successful pings

Exercise E — Configuring SD-WAN (Software-Defined WAN)

  1. SD-WAN offers many features that can be enabled out-of-the-box across all Meraki MX devices. On your Branch network, navigate to Configure > SD-WAN & Traffic Shaping and start by configuring different uplink bandwidths. Set WAN 1 to 10 Mb and WAN 2 to 5 Mb.

  2. Since we have two uplinks, we will also want to take advantage of those connections by enabling load balancing on our MX appliance. Enable this feature.

  3. Our first Flow Preference to configure is a rule for Internet traffic. SD-WAN allows you to set up "policy-based routing" of traffic quickly. Our networking team wants you to implement this by requiring all guest VLAN internet traffic to traverse outbound only across our ISP connection on WAN 2.

    Hint

    Any traffic (protocol) with a source IP address of 10.10.100.0/24 — which is our guest subnet — outbound to any destination (type in the word "any" without quotes) should prefer WAN 2 as the uplink.

  4. Proceed by creating a custom performance class named "Acceptable Delay" with a setting of 200 ms maximum latency. This custom performance class will help our MX decide how to dynamically direct (or redirect) traffic pending network conditions.

    Important

    After you have created this custom performance class, SAVE your change and refresh your Dashboard browser window before proceeding.

  5. Under SD-WAN policies, we will now create a few VPN traffic rules. The first rule will utilize the custom performance class that we created in the previous step. This rule will define how to treat outbound traffic destined for 8.8.8.8 (Google Public DNS) — which should prefer WAN 2 unless it is worse than "Acceptable Delay". When prompted, use Custom expressions for your filter that defines the following:

    Traffic Filter (Layer 3) Policy
    Protocol Any Preferred uplink WAN2
    Source Any (Src port: Any) Failover if Poor performance
    Destination 8.8.8.8/32 (Dst port: Any) Performance class Acceptable Delay

    Hint

    After defining the custom expression for your Traffic Filter, click the "Add expression" button to save and then proceed to define the Policy portion of your SD-WAN policy. Also, if you are not seeing the Acceptable Delay performance class, go back to Step 4 to make sure you have created & saved it.

  6. A second policy will also take advantage of the "Acceptable Delay" custom performance class but this time enforce that any traffic from the "Corp" subnet (10.10.10.0/24) should load balance on uplinks that meets the "Acceptable Delay" metrics:

    Traffic Filter (Layer 3) Policy
    Protocol Any Preferred uplink Load balance
    Source 10.10.10.0/24 (Src port: Any) On uplinks that meet performance class Acceptable Delay
    Destination Any (Dst port: Any)

    Hint

    If you are not able to select the Load Balance option, make sure you have enabled Load Balancing under the Global Preferences section.

  7. Finally, a third policy should enforce that any traffic from the "Voice" (10.10.30.0/24) subnet should use the best uplink for VoIP:

    Traffic Filter (Layer 3) Policy
    Protocol Any Preferred uplink Best for VoIP
    Source 10.10.30.0/24 (Src port: Any)
    Destination Any (Dst port: Any)

SD-WAN Configuration Verification

A. On your MS switch of branch network, select your Corp L3 interface (10.10.10.201) as the source and start a ping to 8.8.8.8. This should be a consistent series with reasonably low latency. Allow this ping to run for at least 15 seconds

B. Navigate to your branch MX security appliance Monitor > VPN status page and scroll down to the Uplink Decision section/table to verify that these packets destined for 8.8.8.8 is in fact, using WAN 2

C. In the same section/table, look for the "Uplink decision" column and click one of the links (should be either WAN 1 or WAN 2) and observe the average latency and MOS score between your branch and the Datacenter.

Exercise F — Camera Analytics, Quality and Retention

  1. Navigate to the Camera network by clicking on the network drop-down menu in the top left of the page.

  2. We want to gain insights into object detection using the Meraki smart camera in a specific area of interest. To do this, go to the camera's Analytics tab page.

  3. Try both Create Area and Create Line to define the area and line for object detection analytics using the following settings. Feel free to adjust the area and line as needed.

    Area Line
    Title: Area — Sidewalk Title: Line — Sidewalk
    Duration: 5 seconds

    Note

    The lab camera only supports People detection and insights are only available after the line or area was defined. Depending on sidewalk traffic, you may see zero detection. Feel free to check back after completing the entire lab.

    Additional Learning

    To learn more about video analytics and how to leverage Meraki API to integrate valuable video analytic data into your application, check out the free learning course Introducing Meraki Video Analytics and Integrations.

    Important

    If you are using your @cisco.com email address for lab access, it's expected that you see 'Video Access Denied' error when creating an area or line. You can skip drawing the area/line drawing but still save them.

  4. We want to better fine tune and adjust the amount of overall video footage that is retained on our MV security camera. To do this, go to the Settings tab where you should see several additional subtabs (i.e. Video Settings, Quality and Retention, Night Mode, and Motion Alerts).

  5. Select the Quality and retention subtab and you should then gain access to various settings that will affect the amount of video footage that can be stored before it starts being overwritten. Try adjusting these options and note how the "Motion-based retention" and "Video quality" settings change the "ESTIMATED RETENTION X days" that is seen at the right of the box.

    Additional Reading

    To learn more about video retention and how to maximize the integrated on-board SSD, reference the following knowledge base document: https://documentation.meraki.com/MV/Video_Quality_and_Retention/Video_Retention

Exercise G — Building a Video Wall

  1. Navigate to Monitor > Video Wall to start building a custom layout. Click the "Edit layouts" button followed by the "New layout" tab. This should create a new tab called "New layout 1" which you should rename to "Video Wall".

  2. You should see the available camera streams (you should have at least 1) on the bottom half of the page. Click on a camera to select it for your wall and you will then be able to resize and/or reposition the camera streams on your video wall layout grid.

    Note

    Remember to click "Save layouts" near the upper-right corner of the Dashboard window when you are finished to save this custom wall layout.

  3. When you're done, navigate back to your Branch network using the Network drop-down menu at the top left corner of the page.