enable 
configure terminal
hostname SW-CORE
username admin secret 123
enable secret 123
ip domain-name ccna.lab
crypto key generate rsa
1024
line vty 0 4
login local 
logging synchronous
transport input ssh
transport output ssh
exec-timeout 5 0
history size 20 
exit 
line console 0
login local
logging synchronous
exec-timeout 5 0
history size 20
exit 
ip routing
vlan 10
name LAN
vlan 20 
name VOIP
vlan 30 
name IPCAM
exit 
interface vlan 10 
ip address 192.168.10.254 255.255.255.0
ip helper-address 192.168.10.10
exit 
interface vlan 20 
ip address 192.168.20.254 255.255.255.0
ip helper-address 192.168.10.10
exit 
interface vlan 30 
ip address 192.168.30.254 255.255.255.0
ip helper-address 192.168.10.10
exit 
Interface GigabitEthernet1/0/1
description TRUNK-SW-LAN
switchport trunk encapsulation dot1q
switchport mode trunk
spanning-tree portfast
exit
Interface GigabitEthernet1/0/2
description TRUNK-SW-VOIP
switchport trunk encapsulation dot1q
switchport mode trunk
spanning-tree portfast
exit
Interface GigabitEthernet1/0/3
description TRUNK-SW-IPCAM
switchport trunk encapsulation dot1q
switchport mode trunk
spanning-tree portfast
exit
Interface GigabitEthernet1/0/4
description DHCP Server
switchport mode access
switchport access vlan 10
spanning-tree portfast
exit
------------------------------------------------------------------
enable 
configure terminal
hostname SW-LAN
username admin secret 123
enable secret 123
ip domain-name ccna.lab
crypto key generate rsa
1024
line vty 0 4
login local 
logging synchronous
transport input ssh
transport output ssh
exec-timeout 5 0
history size 20 
exit 
line console 0
login local
logging synchronous
exec-timeout 5 0
history size 20
exit 
vlan 10
name LAN
vlan 20 
name VOIP
vlan 30 
name IPCAM
exit 
interface fastethernet 0/1
description TRUNK-SW-CORE
switchport mode trunk
spanning-tree portfast
exit
interface range fastethernet 0/2-6
description access-vlan-10
switchport mode access
switchport access vlan 10
spanning-tree portfast
exit
------------------------------------------------------------------
enable 
configure terminal
hostname SW-VOIP
username admin secret 123
enable secret 123
ip domain-name ccna.lab
crypto key generate rsa
1024
line vty 0 4
login local 
logging synchronous
transport input ssh
transport output ssh
exec-timeout 5 0
history size 20 
exit 
line console 0
login local
logging synchronous
exec-timeout 5 0
history size 20
exit 
vlan 10
name LAN
vlan 20 
name VOIP
vlan 30 
name IPCAM
exit 
interface fastethernet 0/1
description TRUNK-SW-CORE
switchport mode trunk
spanning-tree portfast
exit
interface fastEthernet0/2
description IP Phone + PC
switchport mode access
switchport access vlan 10         
switchport voice vlan 20        
spanning-tree portfast
exit
------------------------------------------------------------------
enable 
configure terminal
hostname SW-IPCAM
username admin secret 123
enable secret 123
ip domain-name ccna.lab
crypto key generate rsa
1024
line vty 0 4
login local 
logging synchronous
transport input ssh
transport output ssh
exec-timeout 5 0
history size 20 
exit 
line console 0
login local
logging synchronous
exec-timeout 5 0
history size 20
exit 
vlan 10
name LAN
vlan 20 
name VOIP
vlan 30 
name IPCAM
exit 
interface fastEthernet0/1
description TRUNK-SW-CORE
switchport mode trunk
spanning-tree portfast
exit
------------------------------------------------------------------
DHCP-Server
IP Address: 192.168.10.10
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.10.254

Scope VLAN 10
Default Gateway: 192.168.10.254
Start IP: 192.168.10.100
End IP: 192.168.10.200
Subnet Mask: 255.255.255.0

Scope VLAN 20
Default Gateway: 192.168.20.254
Start IP: 192.168.20.100
End IP: 192.168.20.200
Subnet Mask: 255.255.255.0

Scope VLAN 30
Default Gateway: 192.168.30.254
Start IP: 192.168.30.100
End IP: 192.168.30.200
Subnet Mask: 255.255.255.0

























