×

VLAN10 Trunk Setup Guide: Router → Switch → Computer

Here’s a proper geek-friendly guide for configuring VLAN10 between a Router → Switch → Computer


Network Topology 🗺️

  • Router → E0/0 (the portal to the internet)
  • Switch → Trunk ports E0/0 and E0/1 (where packets party)
  • Computer → Access port in VLAN10 (your workstation of destiny)
  • VLAN10 → Because flat networks are boring

1. Switch Configuration 🖧

Trunk Ports Setup

interface e0/0
 switchport trunk encapsulation dot1q
 switchport mode trunk
 no shutdown
!
interface e0/1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 no shutdown

Trunks are like Hogwarts staircases

Access Port for Computer

interface e0/2
 switchport mode access
 switchport access vlan 10
 no shutdown

the VIP lounge for your computer packets.

VLAN10 Configuration (Fancy network vibes)

vlan 10
 name VLAN10

2. Router Configuration

Sub-Interface for VLAN10 (dot1Q wizardry)

interface e0/0.10
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
 no shutdown

Physical Interface (don’t skip, or chaos ensues. Always keep interfaces ENABLED!)

interface e0/0
 no shutdown

3. Computer Setup 🖥️

  • IP Address: 192.168.10.2
  • Subnet Mask: 255.255.255.0
  • Default Gateway: 192.168.10.1

4. Verification

  • Computer → Router:
ping 192.168.10.1
  • Router → Computer:
ping 192.168.10.2
  • Check VLANs on switch:
show vlan brief
  • Check trunk ports:
show interfaces trunk

If all pings succeed, you just leveled up IRL.


Conclusion

  • Trunk ports configured with dot1q encapsulation.
  • VLAN10 created for computer-router traffic.
  • Connectivity verified through pings and VLAN checks.

VLANs are like Hogwarts houses, pick the right one and your packets behave magically.

Now flex your VLAN10 skills, and maybe even explain dot1Q like