Skip to content

Latest commit

 

History

History
187 lines (147 loc) · 3.5 KB

File metadata and controls

187 lines (147 loc) · 3.5 KB

Commands Reference — TechNova Campus Network Lab 1

📋 VLAN Table

VLAN Name Subnet Purpose
10 SALES 192.168.10.0/24 Sales PCs
20 IT 192.168.20.0/24 IT PCs
30 MANAGEMENT 192.168.30.0/24 Mgmt PCs
40 VOICE 192.168.40.0/24 IP Phones
50 WIFI 192.168.50.0/24 APs
99 MGMT-SW 192.168.99.0/24 Switch mgmt
100 SERVERS 192.168.100.0/24 Servers
999 BLACKHOLE Unused

📋 Switch Management IPs

Switch Role IP
CORE-SW Core 192.168.99.1/24
DSW1 Distribution 192.168.99.2/24
DSW2 Distribution 192.168.99.3/24
ASW1 Access 192.168.99.4/24
ASW2 Access 192.168.99.5/24
ASW3 Access 192.168.99.6/24
ASW4 Access 192.168.99.7/24

---

🔍 Show Commands

VLANs

show vlan brief
show vlan id 10
show interfaces switchport

EtherChannel

show etherchannel summary
show etherchannel detail
show etherchannel port
show interfaces port-channel 1
show lacp neighbor
show lacp counters

Trunks

show interfaces trunk
show interfaces Gi0/0 trunk
show interfaces Gi0/0 switchport

STP

show spanning-tree
show spanning-tree vlan 10
show spanning-tree summary
show spanning-tree detail
show spanning-tree interface Gi0/0 detail

Port Security

show port-security
show port-security interface Gi0/1
show port-security address

DHCP Snooping

show ip dhcp snooping
show ip dhcp snooping binding
show ip dhcp snooping statistics

Management

show interfaces vlan 99
show ssh
show users

---

🎯 Verification One-Liners

What to verify Command
EtherChannel up show etherchannel summary (SU + P)
VLANs active show vlan brief
Trunks passing VLANs show interfaces trunk
Correct root bridge show spanning-tree vlan 10
Access port VLAN show interfaces Gi0/1 switchport
Port security show port-security interface
DHCP snooping show ip dhcp snooping binding
Switch reachable ping 192.168.99.x

---

📊 EtherChannel Mode Compatibility

╔═══════════╦════════╦═════════╦════╗
║           ║ active ║ passive ║ on ║
╠═══════════╬════════╬═════════╬════╣
║ active    ║  YES ✅ ║  YES ✅  ║ NO ║
║ passive   ║  YES ✅ ║  NO  ❌  ║ NO ║
║ on        ║  NO  ❌ ║  NO  ❌  ║YES ║
╚═══════════╩════════╩═════════╩════╝

---

📊 STP Priority Values

Lower priority = preferred root bridge

4096   → CORE-SW (primary root) ✅
8192   → DSW1 (secondary root)
12288  → DSW2 (tertiary)
32768  → default (all other switches)

---

📝 Quick Config Templates

Create all VLANs (paste on every switch)

vlan 10
 name SALES
vlan 20
 name IT
vlan 30
 name MANAGEMENT
vlan 40
 name VOICE
vlan 50
 name WIFI
vlan 99
 name MGMT-SW
vlan 100
 name SERVERS
vlan 999
 name BLACKHOLE

EtherChannel template

interface range Gi0/0 - 1
 channel-group 1 mode active
interface Port-channel1
 switchport mode trunk
 switchport trunk allowed vlan 10,20,30,40,50,99,100
 switchport trunk native vlan 999

Secure access port template

interface Gi0/1
 switchport mode access
 switchport access vlan \[VLAN-ID]
 spanning-tree portfast
 spanning-tree bpduguard enable
 switchport port-security
 switchport port-security maximum 2
 switchport port-security violation restrict
 switchport port-security mac-address sticky
 no shutdown