# Lab 8 - STP, Summarization,& DHCP

Shrimp Co.'s growing workforce requires streamlined network operations. Optimize STP for efficient redundancy, implement route summarization for scalability, and deploy DHCP for simplified device management.

Tip: Individual topology files are available in the diagrams folder on my Github

# Configuration Tasks

# Layer 2 Configuration

Verify port-channels, trunk links, and VLAN databases are configured from previous labs. Ensure VLANs 10, 20, and 99 have L2 reachability across the switching fabric.

# 1. Configure Spanning-Tree

Configure mstp on all switches:

  • Define MST region shrimp-co with instance 1 mapping VLANs 10 and 20
  • Set bridge priorities:
    • dsw1: priority 4096 (Root)
    • dsw2: priority 8192
spanning-tree mode mstp
spanning-tree mst configuration
 name shrimp-co
 revision 1
 instance 1 vlan 10,20
exit

spanning-tree mst 1 priority 4096  # On dsw1
spanning-tree mst 1 priority 8192  # On dsw2

Verify root bridge selection and port states using show spanning-tree mst.

# 2. Configure Route Summarization on Routers

Summarize access subnet advertisements from distribution switches. Use summary addresses on:

  • sea-mdf-r1 and sea-mdf-r2 to summarize 10.1.0.0/16
router ospf 1
 area 0.0.0.0 range 10.1.0.0 255.255.0.0

This reduces LSA size and keeps the OSPF database lean as the network grows.

# 3. Configure DHCP Server

Deploy a DHCP server on sea-mdf-dsw1 for VLAN 99:

ip dhcp excluded-address 10.1.99.1 10.1.99.10
ip dhcp pool VLAN99
 network 10.1.99.0 255.255.255.0
 default-router 10.1.99.1
 dns-server 8.8.8.8
 lease 0 4 0

Bind DHCP to the SVI and ensure it responds to client requests from the access layer.

Note: This DHCP configuration is for testing purposes. In production, DHCP is often centralized.

# 4. Verify Addressing

Ensure each host on VLAN 99 obtains an IP via DHCP. Validate with show ip dhcp binding on the DSW.

# Success Criteria

  • MSTP running with correct root bridge election
  • Summarized OSPF routes advertised from routers
  • VLAN 99 hosts receiving DHCP addresses
  • Observe MSTP failover by disabling a forwarding link
  • Deploy DHCP relay from an access switch to test forwarding
  • Run tcpdump on a switch and filter for DHCP

# Verification Commands

show spanning-tree mst
show spanning-tree mst configuration
show ip dhcp binding
show ip ospf database summary
show ip route ospf
ip a
ping 10.1.99.1