मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी35k · #7762

configuring-network-segmentation-with-vlans

यह क्या करती है

यह आपके कंप्यूटर नेटवर्क को छोटे, अधिक सुरक्षित समूहों में बाँटने में मदद करता है, जैसे अलग-अलग "कमरे"। हर समूह (VLAN) तभी दूसरे समूहों से बात कर सकता है जब आप उसकी अनुमति दें।

कब इस्तेमाल करें

  • ✓जब आप कर्मचारियों के नेटवर्क को गेस्ट नेटवर्क से अलग करना चाहते हैं।
  • ✓संवेदनशील डेटा, जैसे पेमेंट या मेडिकल जानकारी, को सुरक्षित रखने के लिए।
  • ✓जब किसी एक डिवाइस की समस्या नेटवर्क के बाकी डिवाइसों तक न फैले।

Skill का लिंक

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/configuring-network-segmentation-with-vlans/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/configuring-network-segmentation-with-vlans/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे नेटवर्क को कर्मचारियों, गेस्ट और सर्वर के ट्रैफ़िक को अलग-अलग रखने के लिए सेट अप करो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI आपके नेटवर्क उपकरण (switches) पर वर्चुअल "कमरे" (VLANs) बनाता है। वह तय करता है कि कौन से डिवाइस किन दूसरे डिवाइसों से बात कर सकते हैं, और इस तरह सुरक्षा की दीवारें बनाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Configuring Network Segmentation with VLANs

When to Use

  • Segmenting an enterprise network into isolated security zones (corporate, servers, DMZ, guest, IoT)
  • Meeting compliance requirements (PCI-DSS, HIPAA, SOC 2) that mandate network isolation for sensitive data
  • Reducing blast radius of security incidents by preventing lateral movement between network segments
  • Isolating high-risk devices (IoT, BYOD, legacy systems) from critical infrastructure
  • Implementing defense-in-depth by combining VLANs with firewall rules and access control lists

Do not use VLANs as the sole security control without Layer 3 filtering, for isolating networks that require air-gapping, or without proper switch hardening against VLAN hopping attacks.

Prerequisites

  • Managed switches supporting 802.1Q VLAN trunking (Cisco Catalyst, HP Aruba, Juniper EX, etc.)
  • Layer 3 switch or firewall for inter-VLAN routing and access control
  • Network design document specifying VLAN assignments, IP subnets, and traffic flow requirements
  • Console or SSH access to switches with privileged configuration mode
  • Understanding of 802.1Q trunking, STP, and inter-VLAN routing concepts

Workflow

Step 1: Design the VLAN Architecture

# Define VLANs based on security zones and function

VLAN Plan:
  VLAN 10  - CORPORATE    (10.10.10.0/24)  - Employee workstations
  VLAN 20  - SERVERS      (10.10.20.0/24)  - Internal servers
  VLAN 30  - DMZ          (10.10.30.0/24)  - Internet-facing servers
  VLAN 40  - GUEST        (10.10.40.0/24)  - Guest WiFi
  VLAN 50  - IOT          (10.10.50.0/24)  - IoT/OT devices
  VLAN 60  - VOIP         (10.10.60.0/24)  - VoIP phones
  VLAN 100 - MANAGEMENT   (10.10.100.0/24) - Switch/AP management
  VLAN 999 - QUARANTINE   (10.10.99.0/24)  - Isolated/compromised hosts
  VLAN 998 - NATIVE_UNUSED                  - Native VLAN (no traffic)

# Traffic flow matrix:
# CORPORATE -> SERVERS: Allowed (specific ports)
# CORPORATE -> DMZ: Allowed (HTTP/HTTPS only)
# CORPORATE -> GUEST: Denied
# CORPORATE -> IOT: Denied
# GUEST -> Any Internal: Denied
# IOT -> SERVERS: Allowed (specific ports to specific hosts only)
# DMZ -> SERVERS: Allowed (database ports only)
# MANAGEMENT -> All: Allowed (from management stations only)

Step 2: Configure VLANs on Cisco Catalyst Switch

! Enter configuration mode
enable
configure terminal

! Create VLANs
vlan 10
  name CORPORATE
  exit
vlan 20
  name SERVERS
  exit
vlan 30
  name DMZ
  exit
vlan 40
  name GUEST
  exit
vlan 50
  name IOT
  exit
vlan 60
  name VOIP
  exit
vlan 100
  name MANAGEMENT
  exit
vlan 998
  name NATIVE_UNUSED
  exit
vlan 999
  name QUARANTINE
  exit

! Configure access ports for workstations (VLAN 10)
interface range GigabitEthernet1/0/1-24
  switchport mode access
  switchport access vlan 10
  switchport nonegotiate
  spanning-tree portfast
  spanning-tree bpduguard enable
  no shutdown
  exit

! Configure access ports for servers (VLAN 20)
interface range GigabitEthernet1/0/25-36
  switchport mode access
  switchport access vlan 20
  switchport nonegotiate
  spanning-tree portfast
  spanning-tree bpduguard enable
  no shutdown
  exit

! Configure trunk ports to other switches
interface GigabitEthernet1/0/48
  switchport mode trunk
  switchport trunk encapsulation dot1q
  switchport trunk native vlan 998
  switchport trunk allowed vlan 10,20,30,40,50,60,100
  switchport nonegotiate
  no shutdown
  exit

! Configure trunk to firewall/router
interface GigabitEthernet1/0/47
  switchport mode trunk
  switchport trunk encapsulation dot1q
  switchport trunk native vlan 998
  switchport trunk allowed vlan 10,20,30,40,50,60,100
  switchport nonegotiate
  no shutdown
  exit

! Shutdown unused ports
interface range GigabitEthernet1/0/37-46
  shutdown
  switchport mode access
  switchport access vlan 999
  exit

Step 3: Harden Switch Against VLAN Hopping

! Disable DTP on all ports (prevents switch spoofing)
interface range GigabitEthernet1/0/1-46
  switchport nonegotiate
  exit

! Set native VLAN to unused VLAN on all trunks
interface range GigabitEthernet1/0/47-48
  switchport trunk native vlan 998
  exit

! Enable DHCP Snooping
ip dhcp snooping
ip dhcp snooping vlan 10,20,30,40,50,60
interface GigabitEthernet1/0/47
  ip dhcp snooping trust
  exit

! Enable Dynamic ARP Inspection
ip arp inspection vlan 10,20,30,40,50,60
interface GigabitEthernet1/0/47
  ip arp inspection trust
  exit

! Enable IP Source Guard (prevents IP spoofing)

…
अक्सर पूछे जाने वाले सवाल

VLAN क्या है?

VLAN का मतलब है Virtual Local Area Network। यह आपके कंप्यूटर नेटवर्क के अंदर भाग बनाने जैसा है, ताकि वे ज़्यादा व्यवस्थित और सुरक्षित तरीके से बात कर सकें।

क्या मुझे खास उपकरणों की ज़रूरत है?

हाँ, आपको ऐसे नेटवर्क switches चाहिए जो VLAN तकनीक (जिसे 802.1Q कहते हैं) सपोर्ट करते हों, और VLANs के बीच संचार संभालने के लिए एक डिवाइस (router या दूसरा switch) भी चाहिए।

क्या यह antivirus सॉफ़्टवेयर की जगह ले सकता है?

नहीं, VLAN नेटवर्क सुरक्षा की एक परत है। यह डिवाइसों को अलग रखने में मदद करता है, लेकिन कंप्यूटरों को वायरस या malware से सीधे सुरक्षा नहीं देता।

जानकारी

लेखक का मूल विवरण

Designs and implements VLAN-based (802.1Q) network segmentation on managed switches to isolate zones such as corporate, servers, DMZ, guest, and IoT, and to limit lateral movement paths. Use when segmenting an enterprise network into isolated security zones, meeting compliance mandates (PCI-DSS, HIPAA, SOC 2) for network isolation, or reducing blast radius from a security incident. '

repo: mukul975/Anthropic-Cybersecurity-Skills

लोकप्रियता

GitHub स्टार
35k
रैंकिंग में स्थान
#7762
लाइसेंस
Apache-2.0
अपडेट की गई
31/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills