agentleFS
gg1igg1i/agenticnet/skills/switching-and-vlans/SKILL.md

switching-and-vlans

Skill1 starsChanged 17 days agoMITView on GitHub

Cisco Catalyst VLAN, 802.1Q trunking, Router-on-a-Stick vs L3 SVI routing, Rapid-PVST+ STP, EtherChannel, and L2 management configuration rules for Packet Tracer 8.2.2+.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create VLANs explicitly with meaningful names (vlan 10 / name USERS) before assigning ports, especially when validating show vlan brief.

    line 15
  2. Very specific:

    Keep native VLAN (switchport trunk native vlan <id>) and allowed VLAN list (switchport trunk allowed vlan ...) identical on both ends of …

    line 34
  3. Distinctive:

    Never place user access ports or untagged management traffic inconsistently across trunk native VLAN mismatches.

    line 35
  4. Very specific:

    Keep parent physical interface no shutdown with no IP address.

    line 40
  5. Very specific:

    Create subinterfaces (interface GigabitEthernet0/0.10), set encapsulation dot1Q 10 (add native only if matching the switch's native VLAN), …

    line 41
  6. Very specific:

    Ensure every SVI's VLAN exists in the VLAN database and at least one active access/trunk port forwards that VLAN so the SVI reaches up/up.

    line 44
  7. Very specific:

    Use spanning-tree mode rapid-pvst and deterministically anchor root primary (root primary / priority 4096) and secondary (root secondary / …

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Switching and VLANs

Design and configure deterministic Layer 2 and multilayer switching in Cisco Packet Tracer without platform syntax traps.

1. VLAN & Access Port Standards

  • Create VLANs explicitly with meaningful names (vlan 10 / name USERS) before assigning ports, especially when validating show vlan brief.
  • Configure host-facing ports explicitly as access ports:
    interface FastEthernet0/1
     switchport mode access
     switchport access vlan 10
     spanning-tree portfast
     no shutdown
  • For Cisco 7960 IP Phones sharing an access port with a PC, configure switchport voice vlan <voice_vlan> alongside switchport access vlan <data_vlan>, and verify phone power via bridge auto-power or gui_attach_ip_phone_power.
  • L2 switch management (2960-24TT, Switch-PT): assign management IP to interface Vlan<mgmt_id> (no shutdown) and configure global ip default-gateway <gw_ip> (never ip routing on L2 switches).

2. 802.1Q Trunking Platform Matrix (Critical)

Modelswitchport trunk encapsulation dot1qRequired Order
2960-24TT / Switch-PTRejected (% Invalid input)Omit encap command; use switchport mode trunk directly
3560-24PS / 3650-24PSRequired (TRUNK_ENCAP_DOT1Q)Run switchport trunk encapsulation dot1q before switchport mode trunk
  • Keep native VLAN (switchport trunk native vlan <id>) and allowed VLAN list (switchport trunk allowed vlan ...) identical on both ends of every trunk link.
  • Never place user access ports or untagged management traffic inconsistently across trunk native VLAN mismatches.

3. Inter-VLAN Routing Options

  1. Router-on-a-Stick (ROAS) (2911, 1941, 2811, 4321, Router-PT):
    • Keep parent physical interface no shutdown with no IP address.
    • Create subinterfaces (interface GigabitEthernet0/0.10), set encapsulation dot1Q 10 (add native only if matching the switch's native VLAN), then ip address <gw> <mask>.
  2. Multilayer L3 Switch (3560-24PS, 3650-24PS):
    • Enable global ip routing.
    • Ensure every SVI's VLAN exists in the VLAN database and at least one active access/trunk port forwards that VLAN so the SVI reaches up/up.
    • For routed point-to-point links to an upstream router, convert the switch port with no switchport before assigning ip address.

4. STP & EtherChannel

  • Use spanning-tree mode rapid-pvst and deterministically anchor root primary (root primary / priority 4096) and secondary (root secondary / priority 8192) on core/distribution switches—never leave root bridge election to lowest MAC luck.
  • For EtherChannel, match channel-group mode (active/passive for LACP, desirable/auto for PAgP, or on), speed/duplex, trunk encapsulation, native VLAN, and allowed VLANs across all member ports, then apply trunk/access settings to interface Port-channel<id>.

5. Verification Checklist

  • show vlan brief (or verify_lab vlan_exists) -> VLANs active and ports mapped.
  • show interfaces trunk -> operational mode on/trunking, 802.1q, matching native and allowed VLANs.
  • show spanning-tree summary / show spanning-tree vlan <id> -> expected root bridge.
  • show etherchannel summary -> SU (Layer 2) or RU (Layer 3) and P flags on member ports.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.