vlan-config

vlan-config is a skill for Claude Code, Codex from nanxiaoyao/network-huawei-skills. It costs 124 tokens per session (2,061 once invoked), scanned A, original, MIT.

A guide for configuring VLANs on Huawei CloudEngine and S-series switches. A VLAN is a way to divide one physical network into separate logical networks, and VLANIF provides routing between them.

In plain words
What is it for?
Use it to create VLANs, configure switch ports, set up inter-VLAN routing, voice or management VLANs, isolate traffic, and troubleshoot trunk or cross-VLAN connectivity.
Why use it?
It reduces mistakes when separating users, connecting switches, or diagnosing devices that cannot communicate across network segments. It explains the differences between access, trunk, and hybrid ports.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create VLANs, configure switch ports, set up inter-VLAN routing, voice or management VLANs, isolate traffic, and troubleshoot trunk or cross-VLAN connectivity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nanxiaoyao/network-huawei-skills/vlan-config
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nanxiaoyao/network-huawei-skills --skill vlan-config
Clone the repo
git clone --depth 1 https://github.com/nanxiaoyao/network-huawei-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vlan-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/nanxiaoyao/network-huawei-skills/vlan-config/github.svg)](https://agentmods.dev/skills/nanxiaoyao/network-huawei-skills/vlan-config)
Your own site
<a href="https://agentmods.dev/skills/nanxiaoyao/network-huawei-skills/vlan-config"><img src="https://agentmods.dev/badge/skills/nanxiaoyao/network-huawei-skills/vlan-config/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vlan-config

Your own site · 80×15
<a href="https://agentmods.dev/skills/nanxiaoyao/network-huawei-skills/vlan-config"><img src="https://agentmods.dev/badge/skills/nanxiaoyao/network-huawei-skills/vlan-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,061 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00124 $0.02061
Opus 5 $0.00062 $0.01030
Sonnet 5 $0.00025 $0.00412
Haiku 4.5 $0.00012 $0.00206

Measured 11d ago against content hash 4e0adb95651f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

vlan-config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vlan-config/SKILL.md · 230 lines

How it starts

The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.

华为交换机 VLAN 配置技能 (vlan-config)

适用平台 S1720/S2700/S5700/S6720 V200R011C10+ | CloudEngine 5800-9800 V200R022C00+ 文档来源 华为 S 系列与 CloudEngine 系列产品文档 (dc_cfg_vlan_*)

VLAN 是交换机最基础也是最高频的配置 划分广播域 隔离用户 简化网络管理

触发场景

  • 新建 VLAN 划分网段
  • 配置 Access/Trunk/Hybrid 接口
  • 配置 VLANIF 实现 VLAN 间互访
  • 终端 PC 跨 VLAN 不通
  • 配置 voice VLAN(语音 IP 电话)
  • 管理 VLAN(telnet/SSH 登录用)
  • VLAN 内/间隔离
  • Trunk 链路两端不通
  • 配置 Super-VLAN / MUX-VLAN

接口类型对比(最常错点)

类型 用途 收报文 发报文
Access 接终端 PC/打印机 收 untag 打 PVID 剥 PVID 后 untag 出
Trunk 交换机互联 收 tag 透传 收 untag 打 PVID 等于 PVID 时剥 tag 出 其他 tag 出
Hybrid 混合(兼容场景) 灵活控制 tagged/untagged 可指定哪些 VLAN tagged 哪些 untagged

记忆口诀:Access 接终端 Trunk 接交换机 Hybrid 当救火

配置六步走

1 创建 VLAN

system-view
vlan batch 10 20 30           # 批量创建
vlan 10                       # 单个创建并进入
 description Sales            # 描述
 quit

2 接口配 Access(接终端)

interface GigabitEthernet 0/0/1
 port link-type access
 port default vlan 10

3 接口配 Trunk(交换机互联)

interface GigabitEthernet 0/0/24
 port link-type trunk
 port trunk allow-pass vlan 10 20 30    # 放通哪些 VLAN
 port trunk pvid vlan 1                  # PVID 默认 1 不动也行

⚠️ 不要写 port trunk allow-pass vlan all 除非真的要全放通 容易引入广播风暴

4 接口配 Hybrid(灵活控制)

interface GigabitEthernet 0/0/2
 port link-type hybrid
 port hybrid pvid vlan 10
 port hybrid untagged vlan 10 20         # 这些 VLAN 出去时剥 tag
 port hybrid tagged vlan 30              # 这个 VLAN 出去保留 tag

5 VLANIF 三层互访

interface Vlanif 10
 ip address 10.10.10.1 24
interface Vlanif 20
 ip address 10.10.20.1 24

终端网关指向 VLANIF 的 IP 即可实现 VLAN 间路由

6 验证

display vlan
display vlan summary
display port vlan
display interface Vlanif 10

常用命令速查

VLAN 管理

vlan batch <start> [ to <end> ]          # 批量创建
display vlan
display vlan <vid>
display vlan summary

接口模式

port link-type { access | trunk | hybrid }
port default vlan <vid>                   # access
port trunk allow-pass vlan { <list> | all }
port trunk pvid vlan <vid>
port hybrid pvid vlan <vid>
port hybrid untagged vlan <list>
port hybrid tagged vlan <list>

Read the full file on GitHub · 230 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 230 lines · 124 tokens per session scan A 4e0adb95651f

Subscribe to this mod's changes

vlan-config is a skill published in the GitHub repository nanxiaoyao/network-huawei-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 124 tokens to every session and 2,061 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

percepxion-oob

Manage Lantronix out-of-band (OOB) infrastructure via Percepxion central management platform: device inventory, serial port inspection via SLC CLI, firmware compliance, config management, security auditing, and closed-loop incident remediation. Use during outages, maintenance windows, compliance cycles, and…

automateyournetwork/netclaw · 70 tokens

meraki-security-appliance

Cisco Meraki MX security appliance (read-only) — L3/L7 firewall rules, content filtering, IDS/IPS and AMP settings, site-to-site VPN, traffic shaping via Cisco's official Meraki MCP. Use when auditing Meraki firewall rules, reviewing content filtering, or inspecting MX VPN configuration.

automateyournetwork/netclaw · 66 tokens

unifi-wifi

Use when UniFi Wi-Fi is slow, unstable, or being tuned: "my wifi is slow but speedtest on the router is fast", "great signal, terrible speed", "should I use 80MHz or 40MHz", "channel planning", "co-channel interference", "DFS channels", "my APs keep picking the same channel", "audit my SSIDs", "hidden SSID", or…

t3chnaztea/unifi-skills · 202 tokens

unifi-connect

Use when connecting an agent to a UniFi gateway (UDM Pro, UDM SE, Cloud Gateway) for the first time, or when API calls to one are failing: empty response bodies, curl returning HTTP 000, 401 on a key that works elsewhere, "how do I get a UniFi API key", "SSH is closed on my UDM", "connect to UniFi", "talk to my UniFi…

t3chnaztea/unifi-skills · 190 tokens

unifi-clients

Use when operating on UniFi clients, devices, switch ports, or DHCP: "block a device", "kick a client off wifi", "restart an access point", "power cycle a PoE port", "move a device to a different VLAN", "my device is on the wrong subnet after I changed the port", "set a DHCP reservation", "change DHCP DNS servers"…

t3chnaztea/unifi-skills · 152 tokens

unifi-context-map

Use when an agent keeps guessing wrong about a UniFi network, when starting recurring agent work against a gateway, or when asked to "map my network", "document my UniFi setup", "build a network inventory", "what's on my network", "why does the agent keep using the wrong AP", or "audit my reservations against…

t3chnaztea/unifi-skills · 155 tokens