---
# System prepended metadata

title: Lab 3.2
tags: [Lab]

---

# Lab 3.2

###### tags: `Lab`

![](https://i.imgur.com/XifS1MZ.png)

## L2-Switch VLAN
P1-8 : vlan 10
P9-16 : vlan 20
P17-23 : vlan 30
P24 : uplink

## VLAN
VLAN 10 ~ 192.168.10.0/24
VLAN 20 ~ 192.168.20.0/24
VLAN 30 ~ 192.168.30.0/24
VLAN100 ~ 192.168.100.0/24 = Mgt VLAN

## L2-Switch
```bla
ena
conf t

hostname l2-switch

vlan 10
name vlan10
int vlan10
no ip address
no shut

vlan 20
name vlan20
int vlan20
no ip address
no shut

vlan 30
name vlan30
int vlan30
no ip address
no shut

vlan 100
name mgnt
int vlan100
desc mgnt
ip address 192.168.100.2 255.255.255.0
no shut

vlan 999
name native
int vlan999
desc native
no ip addres
no shut

int range fa0/1-8
switchport mode access
switchport access vlan 10

int range fa0/9-16
switchport mode access
switchport access vlan 20

int range fa0/17-24
switchport mode access
switchport access vlan 30

int gi0/1
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10,20,30
```