Loopback Cert Guide
Lab 5.7Layer 2 security

Attack the switch, then lock it down.

One access switch, the real gateway, two PCs and an attacker's laptop. Launch a rogue DHCP server, a fake ARP and a MAC flood, then turn on DHCP snooping, dynamic ARP inspection and port security and watch which attack each one stops.

  • 5.7Configure and verify Layer 2 security features (DHCP snooping, dynamic ARP inspection, and port security)
01Live network

Every port is a way in.

Switch ports show S for port security and T for trusted. Click ATK to attack, a PC to renew or re-ARP, SW1 or a port to turn features on. The overview says whose traffic reaches the real gateway and whose is intercepted.

Live network · Layer 2 security · simulated
  • Port security
  • Trusted
  • Nothing on
  • Err-disabled

Simulated: the switch, router, PCs, MAC addresses, attacks and console output are Loopback's simulation of an IOS access switch. The attacks are modelled, not real tools. Everyone is in VLAN 10 (10.1.10.0/24, private space).

02Tasks

Solve the task and the network checks your work.

Each task loads its own starting point onto the network. Solve it from the console or with clicks; the checks tick live, and you see one model answer when you're done.

    03What happens if

    Predict the result, then watch it happen.

    Eight Layer 2 traps: a rogue server that wins the race, snooping with nothing trusted, DAI dropping the router, each violation mode, a port that refuses port security, a static host under DAI. Pick what happens, then load it.

      04Drills

      A new question every round, so nothing is memorized.

      Violation modes, which port to trust, the commands and which feature stops which attack. Build a streak.

      05Recall sheet

      The whole topic on one sheet.

      The numbers, orders and commands the network runs on. Cover a column and say it before you look.

      Violation modes

      Drops the frameLogCounterPort
      protectYesNoNoStays up
      restrictYesYesYesStays up
      shutdownYesYesYeserr-disabled (default)

      Port security

      • Needs switchport mode access (or trunk). A dynamic port is rejected.
      • Defaults: maximum 1, violation shutdown.
      • mac-address sticky writes learned MACs into the running config.
      • Recover err-disabled: shutdown then no shutdown, or errdisable recovery cause psecure-violation.

      DHCP snooping

      • Global ip dhcp snooping plus ip dhcp snooping vlan 10.
      • All ports start untrusted. Trust the path to the real server.
      • Untrusted ports may send Discover and Request, never Offer or Ack.
      • Builds the binding table: MAC, IP, VLAN, port.

      Dynamic ARP inspection

      • ip arp inspection vlan 10; trust the uplink with ip arp inspection trust.
      • On untrusted ports every ARP's sender IP and MAC must match a snooping binding (or an ARP ACL).
      • Static-IP hosts have no binding and get dropped.

      Which stops which

      Rogue DHCP server
      DHCP snooping
      ARP spoofing
      Dynamic ARP inspection
      MAC flooding, extra devices
      Port security

      Commands

      Port security

      interface fa0/1
       switchport mode access
       switchport port-security
       switchport port-security maximum 2
       switchport port-security violation restrict
       switchport port-security mac-address sticky

      Snooping and DAI

      ip dhcp snooping
      ip dhcp snooping vlan 10
      ip arp inspection vlan 10
      interface gi0/1
       ip dhcp snooping trust
       ip arp inspection trust

      Verify

      show port-security
      show port-security interface fa0/3
      show port-security address
      show ip dhcp snooping binding
      show ip arp inspection
      show interfaces status

      All of these work in SW1's console, along with ?, Tab and do.

      Jump to a page

      1. Gi0/1HomeconnectedHow the exam works and a sample of every station
      2. Gi0/2Practice Testsconnected18 tests by domain, every answer explained
      3. Gi0/3Flashcardsconnected401 cards on every objective, plus your own
      4. Gi0/4CLI LabconnectedCommand drills and config tasks, checked like IOS
      5. Gi0/5Concept LabsconnectedYou're in Lab 5.7 Layer 2 security. All labs.
      6. Gi0/6Study PlanconnectedAll 53 objectives, graded from your progress