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+.
In this repository8 other files it gives its agents.
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
- Very specific: line 15
Create VLANs explicitly with meaningful names (vlan 10 / name USERS) before assigning ports, especially when validating show vlan brief.
- Very specific: line 34
Keep native VLAN (switchport trunk native vlan <id>) and allowed VLAN list (switchport trunk allowed vlan ...) identical on both ends of …
- Distinctive: line 35
Never place user access ports or untagged management traffic inconsistently across trunk native VLAN mismatches.
- Very specific: line 40
Keep parent physical interface no shutdown with no IP address.
- Very specific: line 41
Create subinterfaces (interface GigabitEthernet0/0.10), set encapsulation dot1Q 10 (add native only if matching the switch's native VLAN), …
- Very specific: line 44
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.
- Very specific: line 49
Use spanning-tree mode rapid-pvst and deterministically anchor root primary (root primary / priority 4096) and secondary (root secondary / …
≈ “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.
Files
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 validatingshow 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
7960IP Phones sharing an access port with a PC, configureswitchport voice vlan <voice_vlan>alongsideswitchport access vlan <data_vlan>, and verify phone power via bridge auto-power orgui_attach_ip_phone_power. - L2 switch management (
2960-24TT,Switch-PT): assign management IP tointerface Vlan<mgmt_id>(no shutdown) and configure globalip default-gateway <gw_ip>(neverip routingon L2 switches).
2. 802.1Q Trunking Platform Matrix (Critical)
| Model | switchport trunk encapsulation dot1q | Required Order |
2960-24TT / Switch-PT | Rejected (% Invalid input) | Omit encap command; use switchport mode trunk directly |
3560-24PS / 3650-24PS | Required (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
- Router-on-a-Stick (ROAS) (
2911,1941,2811,4321,Router-PT):- Keep parent physical interface
no shutdownwith no IP address. - Create subinterfaces (
interface GigabitEthernet0/0.10), setencapsulation dot1Q 10(addnativeonly if matching the switch's native VLAN), thenip address <gw> <mask>.
- Keep parent physical interface
- 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 switchportbefore assigningip address.
- Enable global
4. STP & EtherChannel
- Use
spanning-tree mode rapid-pvstand deterministically anchor root primary (root primary/ priority4096) and secondary (root secondary/ priority8192) on core/distribution switches—never leave root bridge election to lowest MAC luck. - For EtherChannel, match channel-group mode (
active/passivefor LACP,desirable/autofor PAgP, oron), speed/duplex, trunk encapsulation, native VLAN, and allowed VLANs across all member ports, then apply trunk/access settings tointerface Port-channel<id>.
5. Verification Checklist
show vlan brief(orverify_labvlan_exists) -> VLANs active and ports mapped.show interfaces trunk-> operational modeon/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) orRU(Layer 3) andPflags on member ports.
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
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.

