---
# System prepended metadata

title: Lab 2.2
tags: [Lab]

---

# Lab 2.2

###### tags: `Lab`

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


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


## BR

## L3 Switch
```bla
ena
conf t

ip routing

vlan 10
name vlan10
int vlan10
desc vlan10
ip address 192.168.10.1 255.255.255.0
no shut

vlan 20
name vlan20
int vlan20
desc vlan20
ip address 192.168.20.1 255.255.255.0
ip helper-address 192.168.10.2
no shut

vlan 30
name vlan30
int vlan30
desc vlan30
ip address 192.168.30.1 255.255.255.0
ip helper-address 192.168.10.2
no shut

vlan 40
name vlan40
int vlan40
desc vlan40
ip address 192.168.40.1 255.255.255.0
ip helper-address 192.168.10.2
no shut


vlan 100
name mgnt
int vlan100
desc mgnt
ip add 192.168.100.1 255.255.255.0
ip helper-address 192.168.10.2
no shut

vlan 999
name Native_trashcan
int vlan999
desc Native_trashcan
no ip address
no shut

ip route 0.0.0.0 0.0.0.0 192.168.20.254

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-23
switchport mode access
switchport access vlan 30

int fa0/24
switchport mode trunk
switchport trunk encap dot1q
switchport trunk allowed vlan 10,20,30,40,100
```


## L2 Switch
```blo
ena
conf t

vlan 10
name vlan10
int vlan10
no ip address
no shut

vlan 20
name vlan20
int vlan20
no ip address
no shut

vlan 40
name vlan40
int vlan40
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

ip default-gateway 192.168.100.1

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


int gi0/1
switchport mode trunk
switchport trunk allowed vlan 10,20,30,40,100


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-23
switchport mode access
switchport access vlan 40
```
